Import error with on Raspberry Pi (debian) Python3

Bug #1212741 reported by meltwater
6
This bug affects 1 person
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/lib/python3.2/dist-packages/uinput/__init__.py", line 74, in <module>
    _libsuinput = ctypes.CDLL(_libsuinput_path, use_errno=True)
  File "/usr/lib/python3.2/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python3.2/dist-packages/_libsuinput.cpython-32mu.cpython-32mu.so: cannot open shared object file: No such file or directory

This is fixed with the following action:
sudo cp /usr/local/lib/python3.2/dist-packages/_libsuinput.cpython-32mu.so /usr/local/lib/python3.2/dist-packages/_libsuinput.cpython-32mu.cpython-32mu.so

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).

Revision history for this message
meltwater (onlinetimc) wrote :

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.

Revision history for this message
a (tuomasjjrasanen) wrote :

Hi and thanks for reporting this issue! Superb job!

I have fixed this issue and made a bugfix release 0.10.1. It's now available at pypi via pip install.

Changed in python-uinput:
importance: Undecided → Critical
assignee: nobody → Tuomas Räsänen (tuomasjjrasanen)
status: New → Fix Released
Revision history for this message
meltwater (onlinetimc) wrote :

Thank you for the update!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.