keyboard example not working

Asked by Doug Moore

I get this when running the keyboard example:

python ./keyboard.py
Traceback (most recent call last):
  File "./keyboard.py", line 32, in <module>
    main()
  File "./keyboard.py", line 13, in main
    device = uinput.Device(events)
  File "/usr/local/lib/python2.7/dist-packages/uinput/__init__.py", line 165, in __init__
    self.__uinput_fd = _libsuinput.suinput_open()
  File "/usr/local/lib/python2.7/dist-packages/uinput/__init__.py", line 64, in _error_handler
    raise OSError(code, os.strerror(code))
OSError: [Errno 2] No such file or directory

fwiw, I am running rasbian

It looks like it is trying to find /usr/local/lib/python2.7/dist-packages/_libsuinput.so based on the code, and that file is there.

Question information

Language:
English Edit question
Status:
Solved
For:
python-uinput Edit question
Assignee:
No assignee Edit question
Solved by:
Doug Moore
Solved:
Last query:
Last reply:
Revision history for this message
Doug Moore (lordscarlet) said :
#1

Found the answer in an existing bug.