SynthesiaKontrol icon indicating copy to clipboard operation
SynthesiaKontrol copied to clipboard

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

Open CEAC33 opened this issue 4 years ago • 3 comments

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.

CEAC33 avatar Feb 23 '21 05:02 CEAC33

@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?

ojacques avatar Mar 02 '21 06:03 ojacques

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

CEAC33 avatar Mar 10 '21 06:03 CEAC33

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:

  • You seem to have an S61 MK2 (like mine), do you confirm?
  • Do you have Komplete Kontrol opened? If yes, close it and try again.
  • Just making sure: your KK keyboard is plugged in (USB) to your computer, and when you open Komplete Kontrol, it works normally, right?
  • Are you on Windows, or going some sort of a mix between Mac/Windows VM?

ojacques avatar Mar 10 '21 06:03 ojacques