Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python update broke 'uinput' #61

Closed
lesu1 opened this issue Apr 30, 2024 · 6 comments
Closed

Python update broke 'uinput' #61

lesu1 opened this issue Apr 30, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@lesu1
Copy link

lesu1 commented Apr 30, 2024

Hi,
I think we have an issue with Python update 3.12.3-1 and 'uinput' again.
Not sure what's the problem this time, but to me it looks the same:

kernel: 6.8.7-arch1-2 (64-bit)
Python: 3.12.3-1

4/30/24 12:23 PM systemd Starting Keyboard Center...
4/30/24 12:23 PM systemd Started Keyboard Center.
4/30/24 12:23 PM keyboard-center Traceback (most recent call last):
4/30/24 12:23 PM keyboard-center File "/opt/keyboard-center/main.py", line 8, in
4/30/24 12:23 PM keyboard-center from mainUi import MainWindow
4/30/24 12:23 PM keyboard-center File "/opt/keyboard-center/mainUi.py", line 20, in
4/30/24 12:23 PM keyboard-center from devices.keyboard import SUPPORTED_DEVICES, KeyboardInterface
4/30/24 12:23 PM keyboard-center File "/opt/keyboard-center/devices/keyboard.py", line 1, in
4/30/24 12:23 PM keyboard-center import uinput
4/30/24 12:23 PM keyboard-center ModuleNotFoundError: No module named 'uinput'

I've tried to timeshift back to Python 3.11.8, everything is good, but i have some other issues with the other apps, not related to keyboard-center.

Maybe you could have a look into this?

Thanks,
lesu1

@zocker-160
Copy link
Owner

thank you for reporting, I will take a look

@zocker-160 zocker-160 added the bug Something isn't working label Apr 30, 2024
@zocker-160
Copy link
Owner

zocker-160 commented Apr 30, 2024

I guess you are on Archlinux / Manjaro, so in that case the python-uinput module was transferred to a new owner / org on GitHub (tuomasjjrasanen/python-uinput#49 (comment)), which should include the fix needed for Python 3.12+.

I have marked the AUR package as outdated, if that gets moved to the new version, it should (hopefully) work again.

@lesu1
Copy link
Author

lesu1 commented May 6, 2024

This is not the case anymore, with the git version from: https://github.com/pyinput/python-uinput

Just clone the repo and

python setup.py build
python setup.py install

Probably with 'sudo'.

Thanks, lesu1

@lesu1 lesu1 closed this as completed May 6, 2024
@zocker-160
Copy link
Owner

yeah the AUR package needs to be updated to that version, it is already marked out of date, but no update yet.

@zocker-160
Copy link
Owner

just a heads up:

I am pushing a new version which is intentionally setting the minimum version of python-uinput to version 1.0.1 which is going to break the AUR package.

Please use the workaround mentioned above (#61 (comment)) until the AUR package is updated (it is marked out of date, but nothing is happening).

@zocker-160
Copy link
Owner

I have finally managed to take over the python-uinput AUR package, it should now finally work without manual intervention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants