Package: python3-inputremapper
Version: 2.1.1-1
Severity: important
X-Debbugs-Cc: [email protected]

Dear Maintainer,

I installed the `input-remapper` package on a clean Debian Trixie system (both 
my laptop and MATE live desktop are tested). Upon attempting to launch the 
application for the first time, it immediately crashed with a Python 
ModuleNotFoundError.

I installed the package by running `sudo apt install input-remapper` and 
attempted to run it by `input-remapper-gtk`.

The application failed to start with the following traceback:

```
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'
```

I expected the `input-remapper-gtk` application to start successfully.

Cause and Solution:

The file `/usr/lib/python3/dist-packages/inputremapper/bin/process_utils.py` 
contains `import psutil` on line 20. However, the `python3-inputremapper` 
package does not declare a dependency on `python3-psutil`, which provides this 
module. For comparison, the upstream package on GitHub does declare this 
dependency.

The issue is resolved by manually installing the missing dependency:
`sudo apt install python3-psutil`

-- System Information:
Debian Release: 13.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.41+deb13-amd64 (SMP w/20 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-inputremapper depends on:
ii  python3                3.13.5-1
ii  python3-evdev          1.9.1-1
ii  python3-gi             3.50.0-4+b1
ii  python3-pkg-resources  78.1.1-0.1
ii  python3-pydantic       2.10.6-2
ii  python3-pydbus         0.6.0-6

Versions of packages python3-inputremapper recommends:
ii  gir1.2-glib-2.0     2.84.3-1
ii  gir1.2-gtk-3.0      3.24.49-3
ii  gir1.2-gtksource-4  4.8.4-6

python3-inputremapper suggests no packages.

-- no debconf information

Reply via email to