Closed kkernan closed 2 years ago
This is related to python version, you shouldn't need to use CX freeze unless you're packaging exe for distribution.
If you're trying to build an exe for your own use, try a python 3.7.x version.
This is handled by my CI pipeline.
@Rexeh, I have python 3.10.7, what version do I need to use?
I get this error running on a new windows 11 machine.
cx_Freeze: Python error in main script
Traceback (most recent call last): File "C:\Users\RCox\AppData\Local\pypoetry\Cache\virtualenvs\joystick-diagrams-Gl6OzfeB-py3.10\Lib\site-packages\cx_Freeze\initscripts__startup__.py", line 113, in run File "C:\Users\RCox\AppData\Local\pypoetry\Cache\virtualenvs\joystick-diagrams-Gl6OzfeB-py3.10\Lib\site-packages\cx_Freeze\initscripts\Console.py", line 15, in run File "src\joystick_diagrams.py", line 5, in
File "C:\Users\RCox\Documents\GitHub\joystick-diagrams-2\src\adaptors\dcs_world.py", line 4, in
File "C:\Users\RCox\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 14, in
ModuleNotFoundError: No module named 'urllib'