On Tue, Aug 11, 2015 at 10:52 AM, Bomin Nie wrote: > Sorry, ignore my first question about "import usb.core" does not work. I > named my py file as usb.py, and after I renamed it, it's working now. > > 2015-08-11 16:46 GMT+08:00 Bomin Nie: >> Since I got the "import usb.core" working, I then try to find devices. >> And, I got "NoBackendError". I then >> - downloaded the windows binary from "http://libusb.info/" >> - copy "MS64\dll\libusb-1.0.dll" to my >> "c:\Windows\SysWOW64\libusb-1.0.dll". My win7 is 64 bit.
This can seem confusing, however when you are on 64-bit Windows, MS64\dll\libusb-1.0.dll must be copied into C:\Windows\System32 and (for running 32-bit applications that use libusb) MS32\dll\libusb-1.0.dll must be copied into C:\Windows\SysWOW64 Which one will be used depends on whether the python that runs is 32 or 64 bit. If you just run python in a command window it will list on the first line if it is 32 bit, example: C:\>python Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32 Note that the above example was run on 64-bit Windows 7, it is just that the 32-bit python sees a 32-bit emulator environment and therefore reports "on win32". >> >> It still gives me the same error... What am I supposed to do more? >> If the above is not enough, you might find some useful information here: https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows Regards, Tormod ------------------------------------------------------------------------------ _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users