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?
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?
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.
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?
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.
It should be fixed, it was pbr being naughty, it's good in 0.5.21 (if not, let me know)