So I installed Pyusb 1.0.0-alpha-1
Under Windows, I cannot get any handles to usb devices.
>>> import usb.core
>>> print usb.core.find()
None
I do have 1 usb device plugged in(idVendor=0x04d8, idProduct=0x0042), and I tried usb.core.find(idVendor=0x04d8, idProduct=0x0042)
but that failed too.
Under Ubuntu, with the same versions of pyusb and python (2.6), I am able to successfully find my device with that code, and communicate with it.
So how can I get pyusb to find usb devices on Windows 7?
See Turbo J's answer. To install the USB driver libusb
for your device I found two options:
Use libusb-win32's inf-wizard.exe
to create the INF file and then use install-filter-win.exe
to install libusb as driver for your device.
Use zadig (simpler)
libusb-win32
as driver to be installedIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With