How do you install the keyboard module with root privileges? #9258
Replies: 4 comments 1 reply
-
don't do that, use a virtual environment. |
Beta Was this translation helpful? Give feedback.
-
Poetry can't do anything to increase permissions of a program you later run. In general, try to run things with the lowest permissions required. If this is about accessing /dev/input/* under linux, please check the group ownership of them, on my debian box they're group owned by "input", try adding your user to this group. |
Beta Was this translation helpful? Give feedback.
-
That is what I am asking. The keyboard module requires root access. I do not run my python app as sudo so I am trying to figure out how to pip install keyboard with root permissions.
… On Apr 1, 2024, at 3:05 PM, David Hotham ***@***.***> wrote:
don't do that, use a virtual environment.
—
Reply to this email directly, view it on GitHub <#9258 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAFFXSBL2F2B4H5ARLH37LY3HK4BAVCNFSM6AAAAABFSG6RJ2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNZXGEZTA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Thank you. I did that:
bryan adm cdrom sudo audio dip video plugdev input render i2c lpadmin gdm sambashare docker weston-launch gpio jtop
Thanks for the help though.
… On Apr 1, 2024, at 3:15 PM, Clinton Roy ***@***.***> wrote:
Poetry can't do anything to increase permissions of a program you later run. In general, try to run things with the lowest permissions required. If this is about accessing /dev/input/* under linux, please check the group ownership of them, on my debian box they're group owned by "input", try adding your user to this group.
—
Reply to this email directly, view it on GitHub <#9258 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAFFXV3XUEU3ESGS55V2NDY3HTAZAVCNFSM6AAAAABFSG6RJ2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNZXGE4DS>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Normally, you would do a
sudo pip install keyboard
for it to gain root permissions. How can I do this is poetry?Thanks!
Bryan
Beta Was this translation helpful? Give feedback.
All reactions