No Backend Available - Path Directly Specified #484
-
I have troubleshooted for days with no luck, I hope someone here can help please? There's lots of discussions about this online all with roughly the same answer so I won't go to much into depth. Here are my system specs for all that I know needs installing.
I have downloaded and added the libusb-1.0.dll file to C:\Windows\System32\libusb-1.0.dll but I still receive the error that No Backend is available. I have checked and the file is definitely there, I copied it over myself of course. Here is the simplified code to test for the backend but I will add the full code of my app lower down.
The result in the terminal is: Traceback (most recent call last): I am pulling my hair out trying to understand why this is still not working, I have directly specified the PATH where the file is and yet it still doesn't find it or am I missing something? I have also added the 32 bit library in SysWOW64 just in case but from what I understood, I'm pretty sure the interpreter isn't searching there. I am still new to this so apologies if I don't understand the obvious but does anyone know what could be causing this? Any help is much appreciated, cheers. Here is the full code as it stands but it's practically the same:
**Additionally I have checked the .spec file that is created and again if I understood correctly, it should be finding the libusb-1.0.dd file. I have also tried adding the .dll file to pyinstallers build directory using this line:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay I found a solution that worked for me, hopefully it will do the same for someone else. The solution was chopped together from these answers:
Pyusb on windows - no backend available
If you try to the run executable, you are likely to face the No Backend Available error in the terminal
You can run the same line every time even after you edit the script, this just tells pyinstaller what the build specifications are. Hope this makes sense. |
Beta Was this translation helpful? Give feedback.
Okay I found a solution that worked for me, hopefully it will do the same for someone else.
The solution was chopped together from these answers:
pyusb
fails to findlibusb
when usingpyinstaller
Pyusb on windows - no backend available
pyinstaller --onefile isControllerConnected.py
If you try to the run executable, you are likely to face the No Backend Available error in the terminal
Once the build is complete, you should see a .spec file created in the same directory with your file's name ([YOUR_FILE_NAME].spec).
Open the .spec file with whatever code editor you want.
Edit …