sezanzeb / input-remapper

🎮 ⌨ An easy to use tool to change the behaviour of your input devices.
GNU General Public License v3.0
3.82k stars 158 forks source link

2.0.0 fails on OpenSuse Tumbleweed #682

Open KayTaneJupiter opened 1 year ago

KayTaneJupiter commented 1 year ago

'# systemctl restart input-remapper

Job for input-remapper.service failed because the control process exited with error code.
See "systemctl status input-remapper.service" and "journalctl -xeu input-remapper.service" for details.
input-remapper-service[17702]: Traceback (most recent call last):
input-remapper-service[17702]:   File "/usr/bin/input-remapper-service", line 47, in <module>
input-remapper-service[17702]:     from inputremapper.daemon import Daemon
input-remapper-service[17702]:   File "/usr/lib/python3.10/site-packages/inputremapper/daemon.py", line 42, in <module>
input-remapper-service[17702]:     from inputremapper.injection.injector import Injector, InjectorState
input-remapper-service[17702]:   File "/usr/lib/python3.10/site-packages/inputremapper/injection/injector.py", line 36, in <module>
input-remapper-service[17702]:     from inputremapper.configs.input_config import InputCombination, InputConfig, DeviceHash
input-remapper-service[17702]:   File "/usr/lib/python3.10/site-packages/inputremapper/configs/input_config.py", line 31, in <module>
input-remapper-service[17702]:     from inputremapper.gui.messages.message_types import MessageType
input-remapper-service[17702]:   File "/usr/lib/python3.10/site-packages/inputremapper/gui/__init__.py", line 6, in <module>
input-remapper-service[17702]:     gi.require_version("GtkSource", "4")
input-remapper-service[17702]:   File "/usr/lib64/python3.10/site-packages/gi/__init__.py", line 126, in require_version
input-remapper-service[17702]:     raise ValueError('Namespace %s not available' % namespace)
input-remapper-service[17702]: ValueError: Namespace GtkSource not available
M-Paulsen commented 1 year ago

Hi, did you ever find a solution for this?

KayTaneJupiter commented 1 year ago

Hi, did you ever find a solution for this?

I have not tried anything with it since that post.

jonasBoss commented 1 year ago

looks like a missing dependency: gtksourceview4

M-Paulsen commented 1 year ago

I already had that, but what ended up fixing it for me was actually installing these two:

typelib-1_0-Gtk-4_0 typelib-1_0-GtkSource-4

wyatt-herkamp commented 7 months ago

As a note to anyone who might be having issues installing on Opensuse tumbleweed

System Info

image

I had a few other issues installing this on OpenSuse

This is how I did it

Install Dependencies

# Regular Depends
sudo zypper install typelib-1_0-GtkSource-4 typelib-1_0-Gtk-4_0 gobject-introspection-devel gtksourceview4 cairo-devel
# Python Related Depends - you might have to change to python312 in the future. 
sudo zypper install python311-devel python311-pydbus  python3-pydantic python311-evdev

Then it would not let me use pip or pipx

Building input and install input-remapper

git clone https://github.com/sezanzeb/input-remapper.git
cd input-remapper

python3 ./setup.py build
sudo python3 ./setup.py install
Note

The setup.py has a deprecation notice but using pip was not working.

Starting input-remapper

After that you just need to enable the service

sudo systemctl enable input-remapper
sudo systemctl restart input-remapper

Hopefully that helps anyone who needs help in the future.

Tested on https://github.com/sezanzeb/input-remapper/commit/f5151aab27ae0e7d8b1f0c80ce92a718e3a86e71