FS#67103 - [python-hidapi] hid_get_input_report not present in hidapi (dependency mismatch)
Attached to Project:
Community Packages
Opened by Richard Steinmetz (str) - Thursday, 25 June 2020, 09:25 GMT
Last edited by Morten Linderud (Foxboron) - Monday, 06 July 2020, 10:55 GMT
Opened by Richard Steinmetz (str) - Thursday, 25 June 2020, 09:25 GMT
Last edited by Morten Linderud (Foxboron) - Monday, 06 July 2020, 10:55 GMT
|
Details
Description:
This package has an incorrect dependency. python-hidapi v0.9.0.3 corresponds to v0.9.0.post3 from upstream. python-hidapi v0.9.0.post3 upstream builds against the hidapi master [1] but the arch package depends on hidapi v0.9.0 which is roughly 60 commits behind master. This breaks all packages that require the function hid_get_input_report because it is implemented in python-hidapi v0.9.0.post3 [2] but not in the current hidapi version from arch [3]. Check the header /usr/include/hidapi/hidapi.h of hidapi v0.9.0 [4] (it does not contain hid_get_input_report). Additional info: [1] https://github.com/trezor/cython-hidapi/commit/38ecebbafc985ba06e8e826f88b3627c351b01b4 [2] https://github.com/trezor/cython-hidapi/commit/cd2b2878b4299d4be63e090b6eaf572276f6e4f1 [3] https://github.com/libusb/hidapi/tree/hidapi-0.9.0 [4] https://www.archlinux.org/packages/community/x86_64/hidapi/ Steps to reproduce: 1. Install python-hidapi v0.9.0.3 (current version) 2. Install any package that uses hid_get_input_report (e.g. liquidctl from AUR) 3. The package may not run properly and may produce the following error message: ImportError: /usr/lib/python3.8/site-packages/hid.cpython-38-x86_64-linux-gnu.so: undefined symbol: hid_get_input_report |
This task depends upon
Closed by Morten Linderud (Foxboron)
Monday, 06 July 2020, 10:55 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with 0.9.0.3-5
Monday, 06 July 2020, 10:55 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with 0.9.0.3-5
Edit: this bug is also present in hidapi-0.9.0-1 which is the only version available on archive.archlinux.org -- this means there is *no* available version of the hidapi package that does not exhibit this error
python -c "import hid"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: /usr/lib/python3.8/site-packages/hid.cpython-38-x86_64-linux-gnu.so: undefined symbol: hid_get_input_report
[1] https://github.com/trezor/cython-hidapi/issues/90
Morten, in the upstream issue you seemed to be leaning toward patching hid_get_input_report out. Filipe had mentioned the same thing in the liquidctl issue.
Can I send you guys a patch that does that + adds a basic test?
Feel free to attach a patch for the changes!
https://github.com/Foxboron/archlinux-pkgbuilds/tree/master/python-hidapi
Sent a PR to your GitHub repo.