Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Draft saved
Draft discarded
Cancel
6
  • Please refer to this issue on GitHub regarding usage of pynput in Python 3.13. Commented Mar 4, 2025 at 1:17
  • what means not responding to key events as expected? I doesn't work as all? or it doesn't work with some keys? Or it work in slow or something else? We can't see your computer, we can't read in your mind - you have to describe all details in question (not in comments) Commented Mar 4, 2025 at 10:05
  • I don't know how it works on Arch but on Linux Mint it raise error and it needs to run as root because it need access to some /dev/.... Probably it can be changed with some settings. (Platform limitations — pynput 1.7.6 documentation). But modules like keyboard or mouse don't have this problem Commented Mar 4, 2025 at 10:10
  • @furas Not responding to key events as expected means that my script doesn't react at all when I press any key. I run the script on my PC and no matter what key I press—whether it’s space, shift, or any alphanumeric key—I don't see any of the print outputs I added in the code. Commented Mar 4, 2025 at 17:33
  • @furas I tried the keyboard module, but I didn't use it because of the issue of requiring root privileges, which isn't ideal for my case. I'll see if I can change some settings to work around this limitation. Thanks for the tip!s Commented Mar 4, 2025 at 17:37

lang-py

AltStyle によって変換されたページ (->オリジナル) /