← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1441083] Re: pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by oslo.config, python-keystoneclient, pysaml2

 

The same applies to openstackclient.

** Also affects: oslo.config
   Importance: Undecided
       Status: New

** Changed in: oslo.config
     Assignee: (unassigned) => Dolph Mathews (dolph)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1441083

Title:
  pkg_resources.DistributionNotFound: The 'argparse' distribution was
  not found and is required by oslo.config, python-keystoneclient,
  pysaml2

Status in OpenStack Identity (Keystone):
  Invalid
Status in Oslo configuration management library:
  In Progress
Status in Python implementation of SAML2:
  New
Status in Python client library for Keystone:
  In Progress
Status in OpenStack Command Line Client:
  Invalid

Bug description:
  Hi,

  When trying to install a fresh DevStack, I got issues with pip 6.1. First issue:
  https://bugs.launchpad.net/tempest/+bug/1440984

  I worked around the first issue, but then I got this issue:

  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

  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'

  See https://github.com/pypa/pip/pull/1472

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1441083/+subscriptions


References