zocker-160 / keyboard-center

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

Software crashing on start on Manjaro #49

Closed HekTheLastSavior closed 1 year ago

HekTheLastSavior commented 1 year ago

I'm not sure what changed, perhaps python was updated on my system, but keyboard center is no longer starting and I'm getting the following error.

❯ keyboard-center

Traceback (most recent call last):

  File "/usr/lib/keyboard-center/main.py", line 8, in <module>

    from mainUi import MainWindow

  File "/usr/lib/keyboard-center/mainUi.py", line 23, in <module>

    from devices.keyboard import SUPPORTED_DEVICES, KeyboardInterface

  File "/usr/lib/keyboard-center/devices/keyboard.py", line 1, in <module>

    import uinput

  File "/usr/lib/python3.11/site-packages/uinput/__init__.py", line 86, in <module>

    _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

Any suggestions ? Thank you!

zocker-160 commented 1 year ago

If you are running Arch based system, then this is a duplicate of #42 (and #44, #47 for that matter)

HekTheLastSavior commented 1 year ago

Thank you for the reply, yes I'm running Manajaro. I got it fixed after reading the other issues by installing python-uinput from AUR instead of the official package by manjaro. The weird part is that they are both updated recently. Thank you for the support and keep up the good work!

zocker-160 commented 1 year ago

The weird part is that they are both updated recently.

Interesting, I need to take a look, but the AUR version does contain a fix for the issue above, the one in the official Manjaro repository probably does not have.

EDIT: yep found the issue, Manjaro package does not include the critical patch. Reported see here.

zocker-160 commented 1 year ago

Issue is fixed in Manjaro repository! With the next update you don't need the AUR package of python-uinput anymore.