Discussion:
Bug#945214: Confirming the issue
Add Reply
Daniele Scasciafratte
2019-11-27 17:30:01 UTC
Reply
Permalink
I have the same problem with different packages on debian sid.
There is any workaround to fix it until a new release?
Urs Schroffenegger
2019-12-02 17:20:01 UTC
Reply
Permalink
Hi,

I also ran into this bug after updating my machines during the weekend,
both machines run on Debian Sid.

The issue appeared with some "pip3 install XXX", but is also present on
simple "pip3 list"

I thought it was an issue with Debian shifting to Python 3.8, so I tried
to reinstall a whole bunch of packages of Python 3.7, following the
dependencies. This didn't change anything. After that, I decided to take
the plunge and actually look at the stack trace. python-wheels wasn't to
interesting, but then, I thought it looked like an issue of listing the
version of the package, so it might not be an issue of python or pip,
but an issue of a package. So I tried to print the package name it was
working on.

Adding

print(proj.project_name)

in /usr/lib/python3/dist-packages/pip/_internal/commands/list.py, at
line275 (just before the 'row = [proj.project_name, proj.version]'
line), printed a whole list of packages.

The last name was testpath. I uninstalled python3-testpath (and
incidentaly a whole bunch of packages depending on it), and now, I can
'pip3 list' and 'pip3 install' again.

Now, I have to get my environment to work again after uninstalling all
jupyter notebook.

So I don't know how pip works internally and this work is some blind
guessing to get my system to work again, but maybe it can give a clue to
the maintainer to help debug this, and probably forward the issue to the
correct package?

Cheers,

u
Patrice Duroux
2019-12-02 18:50:02 UTC
Reply
Permalink
Hi,

It is may be the same bug as the one in my bug report here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945887

I found a solution by editing the following file after installation:
/usr/lib/python3/dist-packages/testpath-.egg-info
(provided by python3-testpath)

The 'Version:' field should not be an empty string and changing by the
following:

Version: 0.4.2

solved my issue.

Best,
Patrice
Urs Schroffenegger
2019-12-02 22:00:01 UTC
Reply
Permalink
Hi,

thanks, it's exactly that! Adding the version number in the egg file
fixed my issue also!

Merci!

u


On Mon, 02 Dec 2019 19:38:57 +0100 Patrice Duroux
Post by Patrice Duroux
Hi,
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945887
/usr/lib/python3/dist-packages/testpath-.egg-info
(provided by python3-testpath)
The 'Version:' field should not be an empty string and changing by the
Version: 0.4.2
solved my issue.
Best,
Patrice
Sébastien Kalt
2019-12-03 11:10:02 UTC
Reply
Permalink
Hi,

This workaround works for me. Thank you.

Sébastien
Post by Patrice Duroux
Hi,
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945887
/usr/lib/python3/dist-packages/testpath-.egg-info
(provided by python3-testpath)
The 'Version:' field should not be an empty string and changing by the
Version: 0.4.2
solved my issue.
Best,
Patrice
--
Loading...