Rexeh / joystick-diagrams

Automatically output your tool/game HID configs into printable diagrams with all your binds.
https://joystick-diagrams.com
GNU General Public License v2.0
149 stars 23 forks source link

cx_Freeze #72

Closed kkernan closed 2 years ago

kkernan commented 2 years ago

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'

Rexeh commented 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.

kkernan commented 2 years ago

@Rexeh, I have python 3.10.7, what version do I need to use?