Reputation: 11
I'm working on Windows 11 system connected to a device through libusbwin32 driver. I have installed pyusb and libusb, and libusb path is added to Windows environment as:
\venv\Lib\site-packages\libusb\_platform\_windows\x64
and
\venv\Lib\site-packages\libusb\_platform\_windows\x32
I could run the python script from PyCharm IDE and access the device and display its output. However, when I converted my Python script to exe file using auto-py-to-exe, and then run this exe file, it shows below error: File "usb\core.py", line 1297, in find usb.core.NoBackendError: No backend available
I have also tried to change Windows environment to C:Windows\...
.
Still this problem persists.
Also I have referred this pyusb-backend-not-accessible this script works before exe conversion, after that I get error. What is it I'm missing while I'm converting my python script to exe using auto-py-to-exe?
Upvotes: 0
Views: 167
Reputation: 11
We have found the solution, we need to manually enter the libusb dlls in Advanced--> add binary and libusb folder paths in Advanced-->paths. auto-py-to-exe app will not automatically access libusb package. So based on your system you need to enter parameters with correct locations. You can see in the image
Upvotes: 1