keystoneclient fails with 'pkg_resources.DistributionNotFound: argparse' Error

Bug #1013953 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Monty Taylor

Bug Description

Using the latest Folsom 5fb1e1f27f74a58318bf360d4535e4900ca2398f builds of Keystone I'm getting the following errors when trying to run commands using /bin/keystone:

Traceback (most recent call last):
  File "/bin/keystone", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: argparse
[root@nova1 ~]# keystone --help
Traceback (most recent call last):
  File "/bin/keystone", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: argparse

Dan Prince (dan-prince)
Changed in keystone:
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → High
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/8627

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/8742

Changed in keystone:
assignee: Dan Prince (dan-prince) → Monty Taylor (mordred)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/8742
Committed: http://github.com/openstack/python-keystoneclient/commit/cfb437e72052ab65bc8d3d0748827c65c6d894bb
Submitter: Jenkins
Branch: master

commit cfb437e72052ab65bc8d3d0748827c65c6d894bb
Author: Monty Taylor <email address hidden>
Date: Wed Jun 20 07:46:43 2012 -0700

    Skip argparse when injecting requirements.

    Python 2.7 doesn't need argparse. Although pip installs are fine installing
    it, listing the requirement in install_requires causes havoc for distro
    installs which do not explicitly install argparse for 2.7 as a package.

    Fixes bug 1013953

    Change-Id: I0275d02e15c8fd2e63b88213ac32f6dd18e2fd26

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: folsom-2 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.