I am trying to get pynput working on my raspberry pi 4. I tried using the example "monitoring keyboard" script from pynput and I am getting exactly the same issue as in this post. I am using the same scripts that are used in the problem and solution sections. Python script locked by thread.
In both cases, the terminal does not recognize the key strokes - e.g. when I press 'q', nothing happens. When I cancel the script, it says
wait gotit = waiter.acquire(True,timeout)
What am I doing wrong and how can I further diagnose the issue? I don't really understand how to resolve this part of thread.
Specs:
- Raspberry pi4 running raspberry pi OS with desktop
- Pynput version 1.8.1
-
see github.com/moses-palmer/pynput/issues/534Ahmed AEK– Ahmed AEK2025年04月16日 16:11:30 +00:00Commented Apr 16, 2025 at 16:11