[openstack-dev] [all] Issues with pip 6.1

Victor Stinner vstinner at redhat.com
Tue Apr 7 10:13:47 UTC 2015


Hi,

I tried to install a fresh DevStack but it doesn't work because of the new release of pip: pip 6.1 (probably released today, https://pip.pypa.io/en/stable/news.html still says "6.1.0 (unreleased)"...).

(1) update.py of openstack/requirements uses req.InstallRequirement.url attribute, but this attribute is gone (replaced with req.InstallRequirement.link.url)

=> see https://bugs.launchpad.net/tempest/+bug/1440984

(2) it's not more possible to install argparse on Python 2.7, "pip install argparse" simply write "Skipping requirement: argparse because argparse is a stdlib package". It makes sense, but different OpenStack components *require* argparse. I mean, pkg_resources raises an ImportError if argparse is not installed with pip. Example:

2015-04-07 10:08:34.084 | + /usr/bin/keystone-manage db_sync
2015-04-07 10:08:34.239 | Traceback (most recent call last):
2015-04-07 10:08:34.239 |   File "/usr/bin/keystone-manage", line 4, in <module>
2015-04-07 10:08:34.239 |     __import__('pkg_resources').require('keystone==2015.1.dev143')
2015-04-07 10:08:34.239 |   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3057, in <module>
2015-04-07 10:08:34.239 |     working_set = WorkingSet._build_master()
2015-04-07 10:08:34.240 |   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 639, in _build_master
2015-04-07 10:08:34.240 |     ws.require(__requires__)
2015-04-07 10:08:34.240 |   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 940, in require
2015-04-07 10:08:34.240 |     needed = self.resolve(parse_requirements(requirements))
2015-04-07 10:08:34.240 |   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 827, in resolve
2015-04-07 10:08:34.240 |     raise DistributionNotFound(req, requirers)
2015-04-07 10:08:34.241 | pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by oslo.config, python-keystoneclient, pysaml2
2015-04-07 10:08:34.246 | + exit_trap

Workaround: install pip 6.0.8, run "pip install argparse"

=> I just opened https://bugs.launchpad.net/keystone/+bug/1441083

Victor



More information about the OpenStack-dev mailing list