FS#71555 - [python-hid] Package occupying same namespace as python-hidapi?

Attached to Project: Community Packages
Opened by Timo (tb) - Tuesday, 20 July 2021, 13:02 GMT
Last edited by Morten Linderud (Foxboron) - Tuesday, 20 July 2021, 16:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

I'm trying to install the following packages in combination:

https://archlinux.org/packages/community/any/qmk
https://archlinux.org/packages/community/any/python-hid
https://archlinux.org/packages/community/x86_64/python-hidapi
https://archlinux.org/packages/community/any/liquidctl

Running liquidctl and interacting with a USB device results in the following error:

> λ ~ liquidctl initialize --match fan
> AttributeError: module 'hid' has no attribute 'device'

I've created an issue (https://github.com/liquidctl/liquidctl/issues/361) and the author pointed out that python-hid and python-hidapi occupy the same Python namespace.

Is there a way python-hid and python-hidapi could be installed and used simultaneously?

Additional info:
* package version(s)
- local/python-hid 1.0.4-4
- local/python-hidapi 0.10.1-1
- local/liquidctl 1.7.0-1
- local/qmk 0.1.0-1
* link to upstream bug report: https://github.com/liquidctl/liquidctl/issues/361

Steps to reproduce: Install both hid packages and try to import them.
This task depends upon

Closed by  Morten Linderud (Foxboron)
Tuesday, 20 July 2021, 16:38 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.0.4-5
Comment by Morten Linderud (Foxboron) - Tuesday, 20 July 2021, 13:20 GMT
https://github.com/qmk/qmk_cli/issues/82

I'll probably just nuke the dependency on the qmk package and stick with hidapi and claim rest are upstream bugs. Super annoying.
Comment by Timo (tb) - Tuesday, 20 July 2021, 13:34 GMT
Great, thanks for taking a look! Maybe also add a conflict between hid and hidapi, or would that be too heavy-handed?
Comment by Morten Linderud (Foxboron) - Tuesday, 20 July 2021, 13:44 GMT
Yeah no, this is going to be an issue because they acutally want python-hid for qmk, and you want python-hidapi for liquidctl. Which means you can't have liquidctl and qmk installed on the same system..........
Comment by Morten Linderud (Foxboron) - Tuesday, 20 July 2021, 16:37 GMT
Errata: Adding conflicts and any bug reports about conflicting python-hid and python-hidapi is going to be a "Not a bug" until something is sorted upstream.

Loading...