[openstack-dev] [glance] Fail to run run_tests.sh
genggjh
genggjh at hotmail.com
Fri Jan 18 11:39:41 UTC 2013
I am using the command ./run_tests.sh -V to run the glance Unittests on both my RHEL and Ubuntu.
And got the same error:
ERROR: glance.tests.unit.test_wsgi.TestHelpers.test_headers_are_unicode
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/MyWorks/OpenStack/glance/glance/tests/utils.py", line 60, in setUp
config.parse_args(args=[])
File "/home/MyWorks/OpenStack/glance/glance/common/config.py", line 77, in parse_args
version=version.cached_version_string(),
File "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py", line 65, in cached_version_string
self.version_string())
File "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py", line 48, in version_string
self.version = self._get_version_from_pkg_resources()
File "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py", line 40, in _get_version_from_pkg_resources
provider = pkg_resources.get_provider(requirement)
File "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py", line 215, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py", line 696, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py", line 594, in resolve
raise DistributionNotFound(req)
DistributionNotFound: glance
Anybody know what's wrong with this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130118/a4292947/attachment.html>
More information about the OpenStack-dev
mailing list