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

Must be run as root under linux #2

Closed
dirtyhillbilly opened this issue Feb 28, 2024 · 4 comments
Closed

Must be run as root under linux #2

dirtyhillbilly opened this issue Feb 28, 2024 · 4 comments

Comments

@dirtyhillbilly
Copy link

keyboard package needs user to be root ! Is that really mandatory ?

  File "qrTOtext/venv/bin/qrTOtext", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "qrTOtext/venv/lib/python3.11/site-packages/qrTOtext.py", line 152, in main
    if keyboard.is_pressed("esc"):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^
...
ImportError: You must be root to use this library on linux.
@P6g9YHK6
Copy link
Owner

P6g9YHK6 commented Mar 3, 2024

I have not tested it on linux only windows atm
any other library that you know that don't require root ?

@P6g9YHK6
Copy link
Owner

P6g9YHK6 commented Mar 4, 2024

boppreh/keyboard#312

@dirtyhillbilly
Copy link
Author

keyboard enforce uid to be 0, so setting user in group input doesn't change anything.
this issue is on keyboard side.

@bryanhughes
Copy link

I am having this issues too:

$ groups
bryan adm tty cdrom sudo audio dip video plugdev input render i2c lpadmin gdm sambashare docker weston-launch gpio jtop

When I run my python app:

ImportError: You must be root to use this library on linux.

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

3 participants