I did the conversion of the file tucha.py to exe following the instructions and with the following setup.py:
from cx_Freeze import setup, Executable
setup(
name="tucha EXECUTABLE",
version = "1.0.0",
description = ".py to .exe",
executables = [Executable("tucha.py")])
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\vinic\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 12, in <module>
__import__(name + "__init__")
File "C:\Users\vinic\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cx_Freeze\initscripts\Console.py", line 21, in <module>
scriptModule = __import__(moduleName)
File "tucha.py", line 1, in <module>
File "C:\Users\vinic\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\__init__.py", line 63, in <module>
from . import utils
File "C:\Users\vinic\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\utils.py", line 24, in <module>
from ._internal_utils import to_native_string
File "C:\Users\vinic\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\_internal_utils.py", line 11, in <module>
from .compat import is_py2, builtin_str, str
File "C:\Users\vinic\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\compat.py", line 11, in <module>
from .packages import chardet
File "C:\Users\vinic\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\packages\__init__.py", line 29, in <module>
import urllib3
ImportError: No module named 'urllib3'
To be honest I did not understand very well what is happening, I already looked for in google, but the cases that appear did not solve the problem.