Import error with on Raspberry Pi (debian) Python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-uinput |
Fix Released
|
Critical
|
a |
Bug Description
Installed uInput on the Raspberry Pi for Python3 but when I try to import uinput I get the following message:
python3
>>> import uinput
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
_libsuinput = ctypes.
File "/usr/lib/
self._handle = _dlopen(self._name, mode)
OSError: /usr/local/
This is fixed with the following action:
sudo cp /usr/local/
I've yet to fully test it with Python3, but the import works now.
The keys_test/py works too! (Once again I was fooled by running the script remotely and the result showing up on local screen).
Other than the above filename issue (_libsuinput. cpython- 32mu.cpython- 32mu.so) , I have found no issues with using uInput with Python3. Was very pleased to find this!
Let me know if you require more details on the install steps I used if not able to recreate it.