Pyusb Error "usberror: [errno 2] Entity Not Found" Using Libusb0 Driver (windows 10)
Solution 1:
Solution #1: If your USB bulk device appears as libusb-win32 in the device manager. You need to change the libusb-win32 driver which uses libusb0 (v1.0.6.0)
To libusbK USB device which uses libusbK driver (in my case v3.0.7.0). This will actually install libusbK driver and change the driver. This seamlessly can be done with Zadig free software
This will solve the problem with the error code
USBError: [Errno 2] Entity not found
Solution 2:
There are 2 problems in this scnerio
1.the pyusb libusb library searching problem,the pyUSB will try to search any libusb1 dll in Windows PATH instead of prefering the libusb0 installed by zadig in system32 path,you can find this problem out through setting the PYUSB_DEBUG
flag
To enable PyUSB logging, you define the environment variable PYUSB_DEBUG with one of the following logging level values:
critical - only log critical errors
error - only log critical errors and errors
warning - log warnings, errors, and critical errors
info - log info, warnings, errors, and critical errors
debug - log everything including debug messages
But it has problem sometime that outputs nothing ,you have to redirect the output into local file to find its behaviour that trying to use the libusb1 dll it found in any related PATH program folder
Bydefault, logged messages are sent to sys.stderr. You can redirect log messages to a file by defining the PYUSB_LOG_FILENAME environment variable to a string that is a valid file path and all logged messages will be written to the file rather than being sent to sys.stderr.
2.the libusb1 compat problem,neither the libusb1 dll from the libusb or libusb-win32 on sourceforge provides the required function exports that required by some specific python program,it may come out as such way
Entity not found + Not implemented on this platform
Permission denied
Both result from the incomplete implementation of libusb1.0 API on Windows platform
Just remove any libusb1 dll from your log above and makes the pyUSB trying to use the libusb0 instead.
Post a Comment for "Pyusb Error "usberror: [errno 2] Entity Not Found" Using Libusb0 Driver (windows 10)"