[Python-modules-team] Bug#964117: python3-pip: pip fails to list all outdated packages
Vipul
finn02+debian at disroot.org
Thu Jul 2 05:19:24 BST 2020
Package: python3-pip
Version: 18.1-5
Severity: normal
Dear Maintainer,
I'm was trying to list all outdated packages using `pip3 list
--outdated` command, but I'm getting following error message:
$ pip3 list --outdated
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 138, in run
packages = self.get_outdated(packages, options)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 149, in get_outdated
dist for dist in self.iter_packages_latest_infos(packages, options)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 150, in <listcomp>
if dist.latest_version > dist.parsed_version
TypeError: '>' not supported between instances of 'Version' and 'Version'
I cannot reproduce this issue on latest version of pip (i.e. 20.1.1,
source https://pypa.org), but haven't tested it on Testing's (aka
Bullseye) pip3 package (i.e. 20.1.1). From error message it looks like
problem is in package itself.
-- System Information:
Debian Release: 10.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Versions of packages python3-pip depends on:
ii ca-certificates 20200601~deb10u1
ii python-pip-whl 18.1-5
ii python3 3.7.3-1
ii python3-distutils 3.7.3-1
Versions of packages python3-pip recommends:
ii build-essential 12.6
ii python3-dev 3.7.3-1
ii python3-setuptools 40.8.0-1
ii python3-wheel 0.32.3-2
python3-pip suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list