[openstack-dev] [glance] Fail to run run_tests.sh‏

genggjh genggjh at hotmail.com
Wed Jan 23 10:17:22 UTC 2013


The problem is resolved, root cause is the mysql-devel is not installed.

From: genggjh at hotmail.com
To: openstack-dev at lists.openstack.org; eglynn at redhat.com
Subject: RE: [openstack-dev] [glance] Fail to run run_tests.sh‏
Date: Tue, 22 Jan 2013 10:33:11 +0000




Hi Eoghan,

When I run the command: tox -r, I encounter the following error:
Do you have any idea for this?

ysql.c:2288: error: '_mysql_ResultObject' has no member named 'result'

_mysql.c: At top level:

_mysql.c:2523: error: '_mysql_ConnectionObject' has no member named 'open'

_mysql.c:2530: error: '_mysql_ConnectionObject' has no member named 'converter'

_mysql.c:2537: error: '_mysql_ConnectionObject' has no member named 'connection'

_mysql.c:2544: error: '_mysql_ConnectionObject' has no member named 'connection'

_mysql.c:2551: error: '_mysql_ConnectionObject' has no member named 'connection'

_mysql.c:2614: error: '_mysql_ResultObject' has no member named 'converter'

_mysql.c:2614: error: initializer element is not constant

_mysql.c:2614: error: (near initialization for '_mysql_ResultObject_memberlist[0].offset')

_mysql.c: In function '_mysql_ConnectionObject_getattr':

_mysql.c:2638: error: '_mysql_ConnectionObject' has no member named 'open'

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /home/MyWorks/OpenStack/nova/.tox/py26/bin/python2.6 -c "import setuptools;__file__='/home/MyWorks/OpenStack/nova/.tox/py26/build/MySQL-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-IPDMgr-record/install-record.txt --single-version-externally-managed --install-headers /home/MyWorks/OpenStack/nova/.tox/py26/include/site/python2.6 failed with error code 1 in /home/MyWorks/OpenStack/nova/.tox/py26/build/MySQL-python
Storing complete log in /root/.pip/pip.log


> Date: Mon, 21 Jan 2013 07:24:38 -0500
> From: eglynn at redhat.com
> To: openstack-dev at lists.openstack.org
> Subject: Re: [openstack-dev] [glance] Fail to run run_tests.sh‏
> 
> 
> You should be using tox instead, e.g.:
> 
>   tox -epy27      # run tests on python 2.7
>   tox -epy27,pep8 # run tests on python 2.7 & PEP-8 checks 
>   tox -epy26      # run tests on python 2.6
> 
> ----- Original Message -----
> > 
> > 
> > 
> > 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?
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> > 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130123/a4e72113/attachment.html>


More information about the OpenStack-dev mailing list