sezanzeb / input-remapper

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

Module missing #895

Open Axilotl17 opened 1 month ago

Axilotl17 commented 1 month ago

axilotl@tiramisu ~ [1]> sudo pkill -f input-remapper && input-remapper-gtk -d Traceback (most recent call last): File "/usr/bin/input-remapper-gtk", line 38, in <module> from inputremapper.gui.gettext import _, LOCALE_DIR ModuleNotFoundError: No module named 'inputremapper'

Can't even run suggested command. reinstalled several times, to no effect. Same error when running input-remapper-control.

Using Arch, input-remapper-git on the AUR.

Virass commented 1 month ago

I have the same problem. Manjaro, gnome, wayland.

input-remapper-gtk                                                        ─╯
Traceback (most recent call last):
  File "/usr/bin/input-remapper-gtk", line 38, in <module>
    from inputremapper.gui.gettext import _, LOCALE_DIR
ModuleNotFoundError: No module named 'inputremapper'

image

alexisju commented 1 month ago

Same here (Archlinux/AUR too). Was working before it doesn't :-)

leonardofmoura commented 1 month ago

Same thing here: Arch Linux with Wayland. Usinginput-remapper-git

image

Traceback (most recent call last):
  File "/usr/bin/input-remapper-control", line 30, in <module>
    from inputremapper.logger import logger, update_verbosity, log_info
ModuleNotFoundError: No module named 'inputremapper'
nicfontaine commented 1 month ago

Same. Manjaro, Gnome, Wayland image

Pablokiryu commented 1 month ago

i got it to run as root, using sudo, but without it i get : Gtk-Message: 11:54:18.672: Failed to load module "appmenu-gtk-module" input-remapper-gtk 2.0.1 f5151aab27ae0e7d8b1f0c80ce92a718e3a86e71 https://github.com/sezanzeb/input-remapper python-evdev 1.7.0 pkexec must be setuid root ERROR: Failed to pkexec the reader-service, code 32512 Manjaro, KDE, X11 ( can't get wayland to render anything on my old nvidia gpu)

meinmycomfycorner commented 3 weeks ago

systemctl enable input-remapper

no error

systemctl start 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.

journalctl -xeu input-remapper.service

Jun 17 11:57:49 input-remapper-service[29694]: ModuleNotFoundError: No module named 'inputremapper' Jun 17 11:57:49 systemd[1]: input-remapper.service: Main process exited, code=exited, status=1/FAILURE â–‘â–‘ Subject: Unit process exited â–‘â–‘ Defined-By: systemd â–‘â–‘ Support: https://forum.manjaro.org/c/support â–‘â–‘ â–‘â–‘ An ExecStart= process belonging to unit input-remapper.service has exited. â–‘â–‘ â–‘â–‘ The process' exit code is 'exited' and its exit status is 1. Jun 17 11:57:49 systemd[1]: input-remapper.service: Failed with result 'exit-code'. â–‘â–‘ Subject: Unit failed â–‘â–‘ Defined-By: systemd â–‘â–‘ Support: https://forum.manjaro.org/c/support â–‘â–‘ â–‘â–‘ The unit input-remapper.service has entered the 'failed' state with result 'exit-code'. Jun 17 11:57:49 systemd[1]: Failed to start Service to inject keycodes without the GUI application. â–‘â–‘ Subject: A start job for unit input-remapper.service has failed â–‘â–‘ Defined-By: systemd â–‘â–‘ Support: https://forum.manjaro.org/c/support â–‘â–‘ â–‘â–‘ A start job for unit input-remapper.service has finished with a failure. â–‘â–‘ â–‘â–‘ The job identifier is 3805 and the job result is failed.

I've tried yay, manually w/ pip and pacman via git clone installations.

System:

uname -r 6.9.3-3-MANJARO

python -VV
Python 3.11.9 (main, Apr 19 2024, 18:35:38) [GCC 13.2.1 20230801]

archerindigo commented 1 week ago

I have the same issue on Manjaro Gnome

× input-remapper.service - Service to inject keycodes without the GUI application
     Loaded: loaded (/usr/lib/systemd/system/input-remapper.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Tue 2024-06-25 19:01:09 EDT; 20s ago
    Process: 21279 ExecStart=/usr/bin/input-remapper-service (code=exited, status=1/FAILURE)
   Main PID: 21279 (code=exited, status=1/FAILURE)
        CPU: 111ms

Jun 25 19:01:08 terry-manjaro systemd[1]: Starting Service to inject keycodes without the GUI application...
Jun 25 19:01:09 terry-manjaro input-remapper-service[21279]: Traceback (most recent call last):
Jun 25 19:01:09 terry-manjaro input-remapper-service[21279]:   File "/usr/bin/input-remapper-service", line 28, in <module>
Jun 25 19:01:09 terry-manjaro input-remapper-service[21279]:     from inputremapper.logger import update_verbosity, log_info
Jun 25 19:01:09 terry-manjaro input-remapper-service[21279]: ModuleNotFoundError: No module named 'inputremapper'
Jun 25 19:01:09 terry-manjaro systemd[1]: input-remapper.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 19:01:09 terry-manjaro systemd[1]: input-remapper.service: Failed with result 'exit-code'.
Jun 25 19:01:09 terry-manjaro systemd[1]: Failed to start Service to inject keycodes without the GUI application.

System:

uname -a

Linux terry-manjaro 6.1.92-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon May 27 03:37:00 UTC 2024 x86_64 GNU/Linux

uname -r
6.1.92-1-MANJARO
archerindigo commented 1 week ago

Resolved. You just need to rebuild the whole package.