<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:????
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>The problem is resolved, root cause is the mysql-devel is not installed.<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: genggjh@hotmail.com<br>To: openstack-dev@lists.openstack.org; eglynn@redhat.com<br>Subject: RE: [openstack-dev] [glance] Fail to run run_tests.shþ<br>Date: Tue, 22 Jan 2013 10:33:11 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:12pt;font-family:\00003f\00003f\00003f\00003f;}

--></style>
<div dir="ltr">Hi Eoghan,<br><br>When I run the command: tox -r, I encounter the following error:<br>Do you have any idea for this?<br><br>ysql.c:2288: error: '_mysql_ResultObject' has no member named 'result'<br><br>_mysql.c: At top level:<br><br>_mysql.c:2523: error: '_mysql_ConnectionObject' has no member named 'open'<br><br>_mysql.c:2530: error: '_mysql_ConnectionObject' has no member named 'converter'<br><br>_mysql.c:2537: error: '_mysql_ConnectionObject' has no member named 'connection'<br><br>_mysql.c:2544: error: '_mysql_ConnectionObject' has no member named 'connection'<br><br>_mysql.c:2551: error: '_mysql_ConnectionObject' has no member named 'connection'<br><br>_mysql.c:2614: error: '_mysql_ResultObject' has no member named 'converter'<br><br>_mysql.c:2614: error: initializer element is not constant<br><br>_mysql.c:2614: error: (near initialization for '_mysql_ResultObject_memberlist[0].offset')<br><br>_mysql.c: In function '_mysql_ConnectionObject_getattr':<br><br>_mysql.c:2638: error: '_mysql_ConnectionObject' has no member named 'open'<br><br>error: command 'gcc' failed with exit status 1<br><br>----------------------------------------<br>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<br>Storing complete log in /root/.pip/pip.log<br><br><br><div><div id="ecxSkyDrivePlaceholder"></div>> Date: Mon, 21 Jan 2013 07:24:38 -0500<br>> From: eglynn@redhat.com<br>> To: openstack-dev@lists.openstack.org<br>> Subject: Re: [openstack-dev] [glance] Fail to run run_tests.shþ<br>> <br>> <br>> You should be using tox instead, e.g.:<br>> <br>>   tox -epy27      # run tests on python 2.7<br>>   tox -epy27,pep8 # run tests on python 2.7 & PEP-8 checks <br>>   tox -epy26      # run tests on python 2.6<br>> <br>> ----- Original Message -----<br>> > <br>> > <br>> > <br>> > I am using the command ./run_tests.sh -V to run the glance Unittests<br>> > on both my RHEL and Ubuntu.<br>> > <br>> > And got the same error:<br>> > ERROR:<br>> > glance.tests.unit.test_wsgi.TestHelpers.test_headers_are_unicode<br>> > ----------------------------------------------------------------------<br>> > _StringException: Traceback (most recent call last):<br>> > File "/home/MyWorks/OpenStack/glance/glance/tests/utils.py", line 60,<br>> > in setUp<br>> > config.parse_args(args=[])<br>> > File "/home/MyWorks/OpenStack/glance/glance/common/config.py", line<br>> > 77, in parse_args<br>> > version=version.cached_version_string(),<br>> > File<br>> > "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py",<br>> > line 65, in cached_version_string<br>> > self.version_string())<br>> > File<br>> > "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py",<br>> > line 48, in version_string<br>> > self.version = self._get_version_from_pkg_resources()<br>> > File<br>> > "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py",<br>> > line 40, in _get_version_from_pkg_resources<br>> > provider = pkg_resources.get_provider(requirement)<br>> > File<br>> > "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py",<br>> > line 215, in get_provider<br>> > return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]<br>> > File<br>> > "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py",<br>> > line 696, in require<br>> > needed = self.resolve(parse_requirements(requirements))<br>> > File<br>> > "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py",<br>> > line 594, in resolve<br>> > raise DistributionNotFound(req)<br>> > DistributionNotFound: glance<br>> > <br>> > <br>> > Anybody know what's wrong with this?<br>> > _______________________________________________<br>> > OpenStack-dev mailing list<br>> > OpenStack-dev@lists.openstack.org<br>> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br>> > <br>> <br>> _______________________________________________<br>> OpenStack-dev mailing list<br>> OpenStack-dev@lists.openstack.org<br>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></div>                                          </div></div>                                        </div></body>
</html>