Re: how to report bugs? (reportbug broken)
- Date: Wed, 22 May 2019 19:30:27 +0200
- From: Michael Lange <klappnase@xxxxxxxxxx>
- Subject: Re: how to report bugs? (reportbug broken)
On Wed, 22 May 2019 19:04:52 +0200
Nico Schlömer <nico.schloemer@xxxxxxxxx> wrote:
> Thanks Michael for the quick response!
> python3 -c "import sys; print(sys.path)"
> ['', '/usr/lib/python37.zip', '/usr/lib/python3.7',
> Looks normal?
Actually not, '/usr/lib/python3/dist-packages' should appear
before '/home/nschloe/.local/lib/python3.7/site-packages' (resp. your
custom Python should be at the very end of sys.path). Obviously this is
the reason why reportbug tries to import some module from your custom
Python3 install which refuses to work. You should definitely fix this,
otherwise the next bad surprise will be waiting just around the corner ;)
I am not sure how to do this properly, though. Maybe the Python-path is
somehow created from $PATH, is your ~/.local somewhere in $PATH and could
you possibly move it to the end?
you could also try to set the PYTHONPATH environment variable with
however I am not sure if this is actually wise (Python2 should also be
taken into account of course).
As a quick-and-dirty workaround you could try to add something like
sys.path = ['', '/usr/lib/python37.zip', '/usr/lib/python3.7',
to the very beginning of /usr/bin/reportbug .
This wouldn't help with other misbehaving Python3 programs of course.
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
Our way is peace.
-- Septimus, the Son Worshiper, "Bread and Circuses",