Bug 923890 - [abrt] python-glanceclient-0.5.1-1.fc18: pkg_resources.py:588:resolve:DistributionNotFound: python-keystoneclient>=0.1.2,<0.2
Summary: [abrt] python-glanceclient-0.5.1-1.fc18: pkg_resources.py:588:resolve:Distrib...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-glanceclient
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pádraig Brady
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a38b45a788ee28e4135dc4fc5d9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-20 16:47 UTC by Arindam Choudhury
Modified: 2013-03-20 22:36 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-20 22:36:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.26 KB, text/plain)
2013-03-20 16:48 UTC, Arindam Choudhury
no flags Details
File: core_backtrace (287 bytes, text/plain)
2013-03-20 16:48 UTC, Arindam Choudhury
no flags Details
File: environ (3.17 KB, text/plain)
2013-03-20 16:48 UTC, Arindam Choudhury
no flags Details

Description Arindam Choudhury 2013-03-20 16:47:58 UTC
Description of problem:
running glance command

Version-Release number of selected component:
python-glanceclient-0.5.1-1.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/glance image-create --name=ubuntu-12.04 --is-public=true --container-format=ovf --disk-format=raw
dso_list:       python-setuptools-0.6.28-3.fc18.noarch
executable:     /usr/bin/glance
kernel:         3.8.3-201.fc18.x86_64
uid:            1000

Truncated backtrace:
pkg_resources.py:588:resolve:DistributionNotFound: python-keystoneclient>=0.1.2,<0.2

Traceback (most recent call last):
  File "/usr/bin/glance", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2819, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 588, in resolve
    raise DistributionNotFound(req)
DistributionNotFound: python-keystoneclient>=0.1.2,<0.2

Local variables in innermost frame:
dist: None
to_activate: [python-glanceclient 0.5.1 (/usr/lib/python2.7/site-packages), warlock 0.4.0 (/usr/lib/python2.7/site-packages)]
req: Requirement.parse('python-keystoneclient>=0.1.2,<0.2')
requirements: [Requirement.parse('prettytable>=0.6,<0.7'), Requirement.parse('jsonschema==0.2')]
processed: {Requirement.parse('warlock<2'): True, Requirement.parse('python-glanceclient==0.5.1'): True}
env: <pkg_resources.Environment object at 0x7f43e7604510>
installer: None
self: <pkg_resources.WorkingSet object at 0x7f43e7604890>
best: {'warlock': warlock 0.4.0 (/usr/lib/python2.7/site-packages), 'python-keystoneclient': None, 'python-glanceclient': python-glanceclient 0.5.1 (/usr/lib/python2.7/site-packages)}
replacement: True

Comment 1 Arindam Choudhury 2013-03-20 16:48:02 UTC
Created attachment 713336 [details]
File: backtrace

Comment 2 Arindam Choudhury 2013-03-20 16:48:04 UTC
Created attachment 713337 [details]
File: core_backtrace

Comment 3 Arindam Choudhury 2013-03-20 16:48:06 UTC
Created attachment 713338 [details]
File: environ

Comment 4 Marc Jadoul 2013-03-20 19:34:19 UTC
Calling glance client from command line failed.

"glance image-list" fail.

It seems to require version of keystone client < than 0.2.
This might be an error in glance client more than in keystone client.

Same bug has been apparently corrected in other distribution ?

I edited /usr/lib/python2.7/site-packages/python_glanceclient-0.5.1-py2.7.egg-info/requires.txt to remove requirement for version < than 0.2 and it fixed the problem apparently. It is unclear this requirement is still valid.


Package: python-glanceclient-0.5.1-1.fc18
OS Release: Fedora release 18 (Spherical Cow)

Comment 5 Pádraig Brady 2013-03-20 22:36:37 UTC
One of the changes in python-glanceclient 0.8.0 in testing,
is to remove this problematic python runtime dep management:

https://admin.fedoraproject.org/updates/python-glanceclient-0.8.0-1.fc18

I've just pushed that to stable, so closing this.


Note You need to log in before you can comment on or make changes to this bug.