You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug behavior: no key presses were being detected (but there were no errors, so at first sight, it looked like everything should work)
Root cause: evdev.list_devices returned an empty list, because my user didn't have the right permissions. I solved it by adding my user to the input group (with sudo usermod -aG input your-username-here), as suggested here on stackoverflow, and restarting my computer. To diagnose if this is the problem, you only need to run python -c "import evdev; print(evdev.list_devices())".
IMO a nice way to fix this would be to check in the code if evdev.list_devices returns an empty list (probably here:
), and if so, raise an exception with a possible solution (adding the user). Maybe we should also add this step to the installation instructions for Linux users.
If you like, I'd be happy to create a PR with this fix :)
The text was updated successfully, but these errors were encountered:
Bug behavior: no key presses were being detected (but there were no errors, so at first sight, it looked like everything should work)
Root cause:
evdev.list_devices
returned an empty list, because my user didn't have the right permissions. I solved it by adding my user to theinput
group (withsudo usermod -aG input your-username-here
), as suggested here on stackoverflow, and restarting my computer. To diagnose if this is the problem, you only need to runpython -c "import evdev; print(evdev.list_devices())"
.IMO a nice way to fix this would be to check in the code if
evdev.list_devices
returns an empty list (probably here:whisper-writer/src/key_listener.py
Line 445 in 370333b
If you like, I'd be happy to create a PR with this fix :)
The text was updated successfully, but these errors were encountered: