SteamDeck issue
Hello,
I am trying to use rivalcfg on SteamDeck (Arch based OS) and I get an error message:
Traceback (most recent call last):
File "/usr/bin/rivalcfg", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3.10/site-packages/rivalcfg/__main__.py", line 78, in main
mouse = get_first_mouse()
File "/usr/lib/python3.10/site-packages/rivalcfg/__init__.py", line 29, in get_first_mouse
return mouse.get_mouse(
File "/usr/lib/python3.10/site-packages/rivalcfg/mouse.py", line 36, in get_mouse
hid_device = usbhid.open_device(vendor_id, product_id, profile["endpoint"])
File "/usr/lib/python3.10/site-packages/rivalcfg/usbhid.py", line 82, in open_device
device = hid.device()
AttributeError: module 'hid' has no attribute 'device'. Did you mean: 'Device'?
Is any way to fix it?
Thanks.
You need to install hidapi instead of hid for rivalcfg. This to be exact. You might have to remove hid via pip uninstall hid as it might cause issues.
I created a virtual environment just to install rivalcfg as my package manager didnt like me uninstalling python-hid (dependancy of qmk)
The SteamDeck have this recurring hid vs hidapi issue... Maybe should I provide a compiled version of Rivalcfg that embed all its dependencies in a single-binary file for this platform? :thinking: