Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteamDeck issue #221

Open
1inq opened this issue Oct 2, 2023 · 3 comments
Open

SteamDeck issue #221

1inq opened this issue Oct 2, 2023 · 3 comments
Labels

Comments

@1inq
Copy link

1inq commented Oct 2, 2023

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 1inq added the question label Oct 2, 2023
@airblast-dev
Copy link
Contributor

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.

@Clueninja
Copy link

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

@flozz
Copy link
Owner

flozz commented Apr 15, 2024

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? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants