apmorton / pyhidapi

hidapi bindings in ctypes
MIT License
112 stars 42 forks source link

Support hid_get_input_report #53

Closed geneccx closed 2 years ago

geneccx commented 2 years ago

Closes #45

fauxpark commented 2 years ago

This causes issues for some distros - for example the latest Linux Mint versions are still based on Ubuntu Focal, which only have libhidapi-hidraw0 0.9.0: https://packages.ubuntu.com/search?keywords=libhidapi-hidraw0&searchon=names&suite=all&section=all

So trying to use this library results in AttributeError: /lib/x86_64-linux-gnu/libhidapi-hidraw0.so: undefined symbol: hid_get_input_report.

apmorton commented 2 years ago

Does this exception get thrown when importing the library or when calling hid_get_input_report?

fauxpark commented 2 years ago

On import. Here's the traceback that was reported: image

apmorton commented 2 years ago

As a workaround you can try downloading this package from 1.0.5 to 1.0.4

I will address this in a future release.