[openstack-dev] [cloudxy] Re: [Openstack]Run ./run_tests.sh test_libvirt error

harryxiyou harryxiyou at gmail.com
Wed Feb 20 17:02:20 UTC 2013


On Wed, Feb 20, 2013 at 10:42 PM, Sean Dague <sdague at linux.vnet.ibm.com> wrote:
> On 02/20/2013 01:58 AM, Huang Zhiteng wrote:
>>>
>>>
>>> I am not clear about your "Try rebuilding your venv.".
>>> Could you please tell me how to rebuild my venv?
>>> Thanks a lot.
>>>
>> ./run_tests.sh -f
>
>
> or the newly arrived
>
> ./run_tests.sh -u
>
> Which will update your venv, and take much less time than -f.
>

After executed command "./run_tests.sh -u test_libvirt", i caught
following errors.


[...]
Downloading/unpacking MySQL-python (from -r
/opt/stack/nova/tools/test-requires (line 9))
  Downloading MySQL-python-1.2.4.zip (113Kb): 113Kb downloaded
  Running setup.py egg_info for package MySQL-python
    sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line
18, in <module>
        metadata, options = get_config()
      File "setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found
    Complete output from command python setup.py egg_info:
    sh: 1: mysql_config: not found

Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 18, in <module>

    metadata, options = get_config()

  File "setup_posix.py", line 43, in get_config

    libs = mysql_config("libs_r")

  File "setup_posix.py", line 25, in mysql_config

    raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

----------------------------------------
Command python setup.py egg_info failed with error code 1 in
/opt/stack/nova/.venv/build/MySQL-python
Storing complete log in /root/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade -r
/opt/stack/nova/tools/test-requires" failed.
None



-- 
Thanks
Harry Wei



More information about the OpenStack-dev mailing list