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

ModuleNotFoundError: No module named 'hid' #47

Closed
Graeme22 opened this issue Sep 7, 2020 · 2 comments
Closed

ModuleNotFoundError: No module named 'hid' #47

Graeme22 opened this issue Sep 7, 2020 · 2 comments

Comments

@Graeme22
Copy link

Graeme22 commented Sep 7, 2020

Running on Ubuntu 20.04. Here's the trace:

sudo ./cm-rgb-cli add-udev-rule
Traceback (most recent call last):
  File "./cm-rgb-cli", line 3, in <module>
    from cm_rgb.ctrl import LedChannel, LedMode, CMRGBController
  File "/home/graeme/Documents/cm-rgb/scripts/cm_rgb/ctrl.py", line 1, in <module>
    import hid
ModuleNotFoundError: No module named 'hid'

However, I know that hid is already installed, as I can run import hid in the interpreter just fine.

Would appreciate help on this, I'm pretty stuck!

@gfduszynski
Copy link
Owner

gfduszynski commented Sep 10, 2020

Hi,
Please run this without sudo. Script should ask for password while executing.

The reason it's not working like that is because packages have been installed only for your user and not for root.

Hope this helps

@Graeme22
Copy link
Author

I ended up using WraithMaster which had a working executable. Thank you for your help though.

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

No branches or pull requests

2 participants