pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by oslo.config, python-keystoneclient, pysaml2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
Unassigned | ||
oslo.config |
Invalid
|
Undecided
|
Dolph Mathews | ||
pySAML2 |
Invalid
|
Undecided
|
Unassigned | ||
python-keystoneclient |
Invalid
|
Low
|
Dolph Mathews | ||
python-openstackclient |
Invalid
|
Undecided
|
Dolph Mathews |
Bug Description
Hi,
When trying to install a fresh DevStack, I got issues with pip 6.1. First issue:
https:/
I worked around the first issue, but then I got this issue:
2015-04-07 10:08:34.084 | + /usr/bin/
2015-04-07 10:08:34.239 | Traceback (most recent call last):
2015-04-07 10:08:34.239 | File "/usr/bin/
2015-04-07 10:08:34.239 | __import_
2015-04-07 10:08:34.239 | File "/usr/lib/
2015-04-07 10:08:34.239 | working_set = WorkingSet.
2015-04-07 10:08:34.240 | File "/usr/lib/
2015-04-07 10:08:34.240 | ws.require(
2015-04-07 10:08:34.240 | File "/usr/lib/
2015-04-07 10:08:34.240 | needed = self.resolve(
2015-04-07 10:08:34.240 | File "/usr/lib/
2015-04-07 10:08:34.240 | raise DistributionNot
2015-04-07 10:08:34.241 | pkg_resources.
The problem is that newly released pip 6.1 doesn't want to install argparse because argparse is part of the Python standard library:
fedora@myhost$ pip install argparse
Skipping requirement: argparse because argparse is a stdlib package
You must give at least one requirement to install (see "pip help install")
Workaround: downgrade pip to 6.0.8 and install argparse using pip (pip install argparse).
A better fix is maybe to make argparse optional in keystone requirements? It's now possible to add environment markers to dependencies. Example:
futures; python_version < '2.7'
It looks like the issue comes from pysaml2: https:/ /pypi.python. org/pypi/ pysaml2
setup.py of pysaml2-2.4.0 calls setup() with install_ requirements= [..., 'argparse', ...].
--
Donald Stufft already sent a pull request to revert the change skipping modules part of the standard library: /github. com/pypa/ pip/pull/ 2650
https:/
The issue asking to skip modules part of the stdlib: https:/ /github. com/pypa/ pip/pull/ 2636