[Python-modules-team] Bug#860812: python-pip: `pip freeze` and `pip	list` fail to run with an AssertionError
    Dennis Dryden 
    ddryden at gmail.com
       
    Thu Apr 20 14:29:55 UTC 2017
    
    
  
Package: python-pip
Version: 1.5.6-5
Severity: important
Dear Maintainer,
Rnning `pip freeze` or `pip list` fail with the same error:
"
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py", line 142, in run_listing
    self.output_package_listing(installed_packages)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py", line 151, in output_package_listing
    if dist_is_editable(dist):
  File "/usr/lib/python2.7/dist-packages/pip/util.py", line 367, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 299, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError
Storing debug log for failure in /root/.pip/pip.log
"
The pip.log file contains the same stack trace.
Upgrading the package with `easy_install pip` provides a working version of pip. After the upgrade `pip freeze` has "reportbug===6.6.6-bpo8" as part of the listing I'm assuming this is triggering the assertion error.
Thanks,
Dennis
-- System Information:
Debian Release: 8.7
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-0.bpo.2-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python-pip depends on:
ii  ca-certificates       20141019+deb8u2
ii  python                2.7.9-1
ii  python-colorama       0.3.2-1
ii  python-distlib        0.1.9-1
ii  python-html5lib       0.999-3
ii  python-pkg-resources  33.1.1-1~bpo8+1
ii  python-requests       2.11.1-1~bpo8+1
ii  python-setuptools     33.1.1-1~bpo8+1
ii  python-six            1.10.0-3~bpo8+1
pn  python:any            <none>
Versions of packages python-pip recommends:
ii  build-essential  11.7
pn  python-dev-all   <none>
ii  python-wheel     0.24.0-1
python-pip suggests no packages.
-- no debconf information
    
    
More information about the Python-modules-team
mailing list