On Thu, May 15, 2014 at 6:11 AM, Walker Inman <win...@mit.edu> wrote: > We've been using pyusb with the libusb-1.0 backend on linux and > everything works well. > > We're now testing on two windows 7 machines and are running into some > issues. On one machine with libusb-win32 (i.e. libusb-0.1 backend) > installed, pyusb works up until a point (we run into some timeout issues > during reads -- but we think its probably a libusb-0.1 issue that won't > be fixed). We are also only able to find our device, and only when we > use a libusb0.1 driver. After upgrading our backend to libusb-1.0 by > installing the WinUSB-libusb driver, we can't get pyusb to detect any > devices e.g.: > > >>> usb.core.find(find_all=True) > returns []
Did you have libusb-1.0.dll in a directory where Python can find? Unlike libusb-win32, libusb (or Zadig) does not have an installer which install libusb-1.0.dll to the system directory. You have to do that by yourself. > On a different windows 7 machine: > >>> usb.core.find(find_all=True) > > returns a number of devices (usb hubs, etc -- including our device > regardless if we use a CDC driver or the libusb driver). In this machine, probably you have libusb-1.0.dll in the right place. That is one difference between libusb-win32 and libusb. For libusb-win32, you can only find the device with the right driver (libusb0.sys or libusbk.sys), libusb is different, you can find all the USB device, but you can not do much with those device without a supported driver (WinUSB, or libusb0.sys/libusbk.sys through libusbK.dll). Take note libusb Windows backend's support of libusb0.sys is not good and should be avoided. > Anyone know what's going on? We're using pyusb > v1.0.0b2 on both machines. -- Xiaofan ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users