Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pyusb on windows - no backend available

I'm trying to have my Python application interface with an NFC device via USB. The best option seems to be PyUSB, but I can't get it to connect to the libusb backend. I keep getting

ValueError: No backend available

I've looked at the stack trace, and found that usb/backend/libusb10.py (which is part of pyusb) is trying to load libusb-1.0.dll to use as the backend, but it can't find it. It's not that it's not in my path, it's not on my computer at all!

I have installed libusb-win32, but the resulting directory only seems to include libusb0.dll. Where is libusb-1.0.dll???!

I would love to know either where to get that dll, or even a different suggestion to get PyUSB to work on Windows 7.

like image 737
user634340 Avatar asked Dec 08 '12 00:12

user634340


People also ask

Does PyUSB work on Windows?

Requirements and platform support. PyUSB is primarily developed and tested on Linux and Windows, but it should also work fine on any platform running Python >= 3.7, ctypes and at least one of the built-in backends. PyUSB supports libusb 1.0, libusb 0.1 and OpenUSB.

How do I install Libusb win32 on Windows 7?

Click Restart. Select 7. OK, the win10 disable driver signature enforcement in temporary. Now we can download the libusb in this link: https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/ Page 8 The filename is libusb-win32-bin-1.2.


1 Answers

Download and install libusb-win32-devel-filter-1.2.6.0.exe. It should work.

like image 57
beebek Avatar answered Sep 18 '22 15:09

beebek