clay
clay

Reputation: 20390

Python PIP on Ubuntu

When I run python pip on a new brand Ubuntu 15.04 system with all updates installed, I get the following assertion error. This is with Python 2.7.x. I get a very similar result with Python 3.4.x:

  ➜  pip list
  adium-theme-ubuntu (0.3.4)
  <...snip...>
  pyOpenSSL (0.13.1)
  pyserial (2.6)
  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

Upvotes: 0

Views: 625

Answers (1)

code_dredd
code_dredd

Reputation: 6085

I think you should report this as a bug here. I can reproduce it in my Ubuntu 15.04 (64bit). The man page clearly states the pip list and pip3 list commands should simply list the packages, but in both cases they crash with AssertionError before completing.

Upvotes: 1

Related Questions