Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476616 - =app-admin/glance-2013.1.2-r3 - pkg_resources.DistributionNotFound: distribute
Summary: =app-admin/glance-2013.1.2-r3 - pkg_resources.DistributionNotFound: distribute
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-12 09:08 UTC by Cédric Jeanneret
Modified: 2013-08-10 22:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Jeanneret 2013-07-12 09:08:52 UTC
Hello,

While trying to manage our openstack images with glance, I keep getting this python error :
Traceback (most recent call last):
  File "/usr/bin/glance-python2.7", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
    working_set.require(__requires__)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute

glance USES :
sqlite -ldap -mysql -postgres -swift PYTHON_TARGETS="python2_7"

Any help is most welcomed.

Thank you!

Reproducible: Always

Steps to Reproduce:
1. install glance
2. try to just run glance
Actual Results:  
fails with some python error

Expected Results:  
should display something, like usage or whatsoever…

I searched for some "distribute" package in gentoo, but no luck… maybe it's some library hidden in some missing dependence?
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-07-15 01:59:16 UTC
I have it built and working with r2.
Just upgraded to r3 on my production and it works as well :(

Installed versions:  2013.1.2-r3(08:54:36 PM 07/14/2013)(ldap postgres python_targets_python2_7 sqlite swift -mysql)

were you able to fix this?
Comment 2 Cédric Jeanneret 2013-07-15 05:18:56 UTC
Hello Matthew,

Unfortunately no :(.

I tried to add the uses you mentioned, but no luck - still the same error. I may be missing some use on another package though (I have a USE="-* <some global uses>" and a per-package USE definition (in /etc/portage/package.use/<node>).

I don't see which package may be missing a use in the depgraph for app-admin/glance though…

It's a bit annoying, as the "big" nova CLI doesn't do some action glance does (like image renaming).

Just an information: I'm in ~amd64 - is it the same for you? If not, there's maybe some changes in some python stuff making it crash?
Also, my system python is 3.3 (I did try to use python2.7 - no luck, same error).

What may I provide for information in order to help you debug this tiny problem?

Thank you for your time :)

Cheers,

C.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-07-15 05:44:33 UTC
all the openstack packages are python 2.7 only (maybe 1-2 python 2.6).  I really don't know what to say.  distribute is a built in part of gentoo (a module installed in the base system iirc). can you try running glance --debug or the like?
Comment 4 Cédric Jeanneret 2013-07-15 05:53:12 UTC
Same output with "--debug" - nothing more :(.

Just one thing:

:% python
Python 3.3.2 (default, Jul  8 2013, 08:07:39) 
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distribute
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'distribute'

:% python2.7
Python 2.7.5 (default, Jul 12 2013, 08:25:12) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import distribute
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named distribute

Dunno where it should come from, I'll try to dig a bit.
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-08-10 22:23:47 UTC
It should be fixed, it was pbr being naughty, it's good in 0.5.21 (if not, let me know)