rivalcfg icon indicating copy to clipboard operation
rivalcfg copied to clipboard

SteamDeck issue

Open 1inq opened this issue 2 years ago • 3 comments

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.

1inq avatar Oct 02 '23 21:10 1inq

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.

airblast-dev avatar Oct 15 '23 21:10 airblast-dev

I created a virtual environment just to install rivalcfg as my package manager didnt like me uninstalling python-hid (dependancy of qmk)

Clueninja avatar Apr 14 '24 08:04 Clueninja

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:

flozz avatar Apr 15 '24 11:04 flozz