input-remapper icon indicating copy to clipboard operation
input-remapper copied to clipboard

App crashed after some time, then unable to start afterwards

Open satishux opened this issue 8 months ago • 1 comments

After installing the app in ubuntu 25.04, it works for some time, but then starts crashing.

problem get's fixed after reinstalling, and works for some time then starts crashing again.

in ubuntu crash report I see this message, ModuleNotFoundError: no module named 'psutil'

I have python 3.13 installed

App version - 2.1.1-1

satishux avatar May 04 '25 17:05 satishux

Problem:

$ input-remapper-gtk 
Traceback (most recent call last):
  File "/usr/bin/input-remapper-gtk", line 23, in <module>
    from inputremapper.bin.input_remapper_gtk import InputRemapperGtkBin
  File "/usr/lib/python3/dist-packages/inputremapper/bin/input_remapper_gtk.py", line 31, in <module>
    from inputremapper.bin.process_utils import ProcessUtils
  File "/usr/lib/python3/dist-packages/inputremapper/bin/process_utils.py", line 20, in <module>
    import psutil
ModuleNotFoundError: No module named 'psutil'

Fix:

$ sudo apt install python3-psutil

Root cause:

$ apt info input-remapper-gtk | grep Depends
Depends: input-remapper-daemon, python3-inputremapper, gir1.2-glib-2.0, gir1.2-gtk-3.0, gir1.2-gtksource-4, python3:any

=> missing dependency

What's weird: https://github.com/sezanzeb/input-remapper/blob/main/DEBIAN/control#L5 contains the python3-psutil vs. https://packages.ubuntu.com/questing/input-remapper-gtk => looks like an Ubuntu packaging bug?

$ dpkg -l | grep input-remapper
ii  input-remapper                                2.1.1-1                                    all          Input device button mapping tool (metapackage)
ii  input-remapper-daemon                         2.1.1-1                                    all          Input device button mapping tool (daemon)
ii  input-remapper-gtk                            2.1.1-1                                    all          Input device button mapping tool (GUI)

$ cat /etc/issue
Ubuntu 25.04 \n \l

$ python3 --version
Python 3.13.3

sarimak avatar Jun 03 '25 12:06 sarimak