vpelletier / python-libusb1

Python ctype-based wrapper around libusb1
GNU Lesser General Public License v2.1
168 stars 65 forks source link

libusb has no hotplug support #43

Closed Nic2012 closed 5 years ago

Nic2012 commented 5 years ago

On a fresh Win10 Build 1809 x64 I have installed Python2.7 and put the latest version libusb-1.0.22 dll into the example directory, run the example hotplug.py and got the result: Hotplug support is missing. Please update your libusb version.

I am bit confused because y mentioned libusb as the dependencies, but this does not include hotplugging? If there is any other workaround existing?

Regards, Nic

vpelletier commented 5 years ago

Hello,

That message is a result of python-libusb1 querying libusb's capabilities, and libusb responding that it does not have hotplug support, despite it being a newer version than hotplug API introduction (1.0.16). The reason is platform (lack of) support for hotplug, which I see is marked as a 1.0.23 milestone: libusb/libusb#86 (but also that it was planned for 1.0.21, then 1.0.22... so maybe they could use some help to get it done).

About workarounds, there is not much python-libusb1 can do without exceeding its scope. Some partial solutions are mentionned in the bug report at above link.

So overall, this is a libusb issue, not actually a python-libusb1 one.

Regards, Vincent Pelletier