zocker-160 / keyboard-center

Application for mapping macro keys on Logitech keyboards
GNU General Public License v3.0
66 stars 3 forks source link

Keyboard Center Fails to Launch. #47

Closed Refrained-LM closed 1 year ago

Refrained-LM commented 1 year ago

I try to launch Keyboard Center with the command "keyboard-center %f " and this is the error that I got below

Traceback (most recent call last): File "/usr/lib/keyboard-center/main.py", line 8, in from mainUi import MainWindow File "/usr/lib/keyboard-center/mainUi.py", line 23, in from devices.keyboard import SUPPORTED_DEVICES, KeyboardInterface File "/usr/lib/keyboard-center/devices/keyboard.py", line 1, in import uinput File "/usr/lib/python3.11/site-packages/uinput/init.py", line 86, in _libsuinput_path = os.path.abspath(os.path.join(os.path.dirname(file), "..", "_libsuinput" + sysconfig.get_config_var("SO")))


TypeError: can only concatenate str (not "NoneType") to str

Im running.

OS: Manjaro 23.0.0 UltimaThule
Kernel: x86_64 Linux 5.15.114-2-MANJARO
Shell: zsh 5.9
Resolution: 5360x1440
DE: KDE 5.106.0 / Plasma 5.27.5
WM: KWin
Disk: 8.3T / 14T (64%)
CPU: AMD Ryzen 5 5600X 6-Core @ 12x 3.693GHz
GPU: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c1)
RAM: 4211MiB / 64208MiB ]
The keyboard is a Logitech G910                              

I guess this goes back to Issue #42 Changed /usr/lib/python3.11/site-packages/uinput/__init__.py Line 86 from _libsuinput_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "_libsuinput" + sysconfig.get_config_var("SO")))

to 

_libsuinput_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "_libsuinput" + sysconfig.get_config_var("EXT_SUFFIX"))) 

now its working again.
zocker-160 commented 1 year ago

This is a duplicate of #42.

Manjaro moved to Python 3.11 yesterday, which is why you are seeing this error. You need to rebuild the python-uinput AUR package, which contains a fix, then it should work again.

Refrained-LM commented 1 year ago

Yup All good like nothing ever happened.

zocker-160 commented 1 year ago

nice, closing then