Score:1

How can I give Python's "keyboard" and "mouse" modules root permissions to run?

us flag

I made a simple Python script using it's keyboard and mouse modules for the purpose of saving me a few minutes of clicking and typing. Once I had done a bit of debugging, I ran the script. The disappointing part was that when run, the terminal returned: Root privileges are required to use this module. I tried running the same script using chmod in a root terminal, but that didn't work either. I am the root user, which confuses me even more. I already posted this question on Stackoverflow with no luck. I am using Ubuntu 20.04 and Python 3.8

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.