[Python-modules-team] Bug#878082: python3-pip: TypeError: unorderable types: Version() > SetuptoolsVersion()
Laurent Bonnaud
L.Bonnaud at laposte.net
Mon Oct 9 16:22:59 UTC 2017
Package: python3-pip
Version: 9.0.1-2
Severity: normal
Dear Maintainer,
here is the problem:
$ pip3 list --outdated
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/list.py", line 157, in run
packages = self.get_outdated(packages, options)
File "/usr/lib/python3/dist-packages/pip/commands/list.py", line 168, in get_outdated
dist for dist in self.iter_packages_latest_infos(packages, options)
File "/usr/lib/python3/dist-packages/pip/commands/list.py", line 169, in <listcomp>
if dist.latest_version > dist.parsed_version
TypeError: unorderable types: Version() > SetuptoolsVersion()
According to comments in this bug report:
https://github.com/pypa/pip/issues/3057
the problem comes from Debian modifications to pip.
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.13.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-pip depends on:
ii ca-certificates 20170717
ii python-pip-whl 9.0.1-2
ii python3 3.5.3-3
Versions of packages python3-pip recommends:
ii build-essential 12.4
ii python3-dev 3.5.3-3
ii python3-setuptools 36.2.7-2
ii python3-wheel 0.29.0-2
python3-pip suggests no packages.
-- no debconf information
--
Laurent.
More information about the Python-modules-team
mailing list