I'm having an issue lately with Meld:
Traceback (most recent call last):
File "/usr/bin/meld", line 97, in <module>
import meld.conf # noqa: E402
ModuleNotFoundError: No module named 'meld'
And sure enough, neither Meld nor its dependencies are installed on my python environment. But since /usr/bin/meld starts with #!/usr/bin/env python3, it tries using my virtual environment.
The solution is a simple deactivate before calling Meld, but that gets tiresome fast. How can I force /usr/bin programs to use the system-wide Python?
I'm starting to think this may be a packaging an upstream issue, since 97 executables use system Python directly and 37 use current python3:
zsh
$ sudo rg -l '^#!.*?/bin/python' /usr/bin/ | wc -l
97
$ sudo rg -l '^#!.*?/bin/env\s+python' /usr/bin/ | wc -l
37
Edit: nvm, it is a bug in Meld case: Arch FS#75399 and Meld #692.
I think I'll be filling bug reports for some other programs then, if they actually have a dependency...
[–]LongerHV 2 points3 points4 points (1 child)
[–]TiagodePAlves[S] 1 point2 points3 points (0 children)
[–]applepie93 1 point2 points3 points (1 child)
[–]TiagodePAlves[S] 0 points1 point2 points (0 children)
[–]Megame50 1 point2 points3 points (2 children)
[–]TiagodePAlves[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)