Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CEAC33 opened this issue Feb 23, 2021 · 3 comments

Comments

@CEAC33
Copy link

CEAC33 commented Feb 23, 2021

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
Copy link
Owner

ojacques commented Mar 2, 2021

@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
Copy link
Author

CEAC33 commented Mar 10, 2021

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
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants