ojacques / SynthesiaKontrol

:musical_keyboard: Use Native Instruments Komplete Kontrol mk2 light guide in Synthesia
MIT License
110 stars 20 forks source link

Exe file not working on Windows, seems that the paths to dependencies are hardcoded #29

Open CEAC33 opened 3 years ago

CEAC33 commented 3 years ago

C:\Users\Hackintosh X99\Documents\SynthesiaKontrol.v1.1\SynthesiaKontrol.v1.1>SynthesiaKontrol.exe Select your keyboard (*1,2,3,4): 1-Komplete Kontrol S61 MK2 2-Komplete Kontrol S88 MK2 3-Komplete Kontrol S61 MK1 4-Komplete Kontrol S88 MK1 3 Connecting to Komplete Kontrol Keyboard Opening Keyboard device... Turn off lights for all notes Connected to Komplete Kontrol! Turn off lights for all notes Opening LoopBe input port Traceback (most recent call last): File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\cx_Freeze\initscripts__startup__.py", line 14, in run File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run File "SynthesiaKontrol.py", line 206, in File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\mido\backends\backend.py", line 169, in get_input_names File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\mido\backends\backend.py", line 162, in _get_devices File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\mido\backends\backend.py", line 42, in module File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\mido\backends\backend.py", line 58, in load File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\importlib__init.py", line 127, in import_module File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\mido\backends\rtmidi.py", line 8, in File "C:\Users\jacqu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\rtmidi\init__.py", line 4, in ImportError: DLL load failed: No se puede encontrar el módulo especificado.

ojacques commented 3 years ago

@CEAC33, the paths you see are because of the packaging of the application. It seems you use 1.1. Could I ask you to try one of the latest release?

CEAC33 commented 3 years ago

Using the last version I'm getting this error

PS C:\Users\Hackintosh X99\Documents\SynthesiaKontrol.v1.3\SynthesiaKontrol.v1.3> .\SynthesiaKontrol.exe
Select your keyboard (1,2,3,...):
  1-Komplete Kontrol S61 MK2
  2-Komplete Kontrol S88 MK2
  3-Komplete Kontrol S49 MK2
  4-Komplete Kontrol S61 MK1
  5-Komplete Kontrol S88 MK1
  6-Komplete Kontrol S49 MK1
  7-Komplete Kontrol S25 MK1
1
Connecting to Komplete Kontrol Keyboard
Opening Keyboard device...
Error: open failed
Traceback (most recent call last):
  File "SynthesiaKontrol.py", line 26, in init
  File "hid.pyx", line 66, in hid.device.open
OSError: open failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\jacqu\AppData\Local\Programs\Python\Python38\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 40, in run
  File "C:\Users\jacqu\AppData\Local\Programs\Python\Python38\lib\site-packages\cx_Freeze\initscripts\Console.py", line 37, in run
  File "SynthesiaKontrol.py", line 224, in <module>
  File "SynthesiaKontrol.py", line 29, in init
NameError: name 'quit' is not defined
ojacques commented 3 years ago

Interesting:

Opening Keyboard device...
Error: open failed
Traceback (most recent call last):
  File "SynthesiaKontrol.py", line 26, in init
  File "hid.pyx", line 66, in hid.device.open
OSError: open failed

Few questions for you: