Package: python3-ruff Version: 0.0.291+dfsg1-1 Severity: normal $ python3 -m ruff Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/lib/python3/dist-packages/ruff/__main__.py", line 34, in <module> ruff = find_ruff_bin() ^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/ruff/__main__.py", line 30, in find_ruff_bin raise FileNotFoundError(path) FileNotFoundError: /home/tomi/.local/bin/ruff
This is because Debian patches sysconfig [1], so the first `sysconfig.get_path("scripts")` invocation in `find_ruff_bin` returns "/usr/local/bin" instead of "/usr/bin" (which upstream expected, presumably). [1]: https://salsa.debian.org/cpython-team/python3/-/blob/af1ddcd55b57a6468121c8776003e57f6f73bca5/debian/patches/sysconfig-debian-schemes.diff [2]: https://salsa.debian.org/jelmer/ruff/-/blob/333a90b61f4e99acc74c5e1308982044b95a4af6/python/ruff/__main__.py#L13 -- System Information: Debian Release: trixie/sid APT prefers stable-security APT policy: (990, 'stable-security'), (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.5.0-3-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_USER, TAINT_WARN Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3-ruff depends on: ii python3 3.11.4-5+b1 python3-ruff recommends no packages. python3-ruff suggests no packages. -- no debconf information -- Tomáš "liskin" ("Pivník") Janoušek, https://lisk.in/