简体   繁体   English

运行 nova openstack 单元测试时的 tox 错误

[英]tox errors when running nova openstack unit tests

I am trying to run openstack unit tests, and i'm having trouble with tox我正在尝试运行 openstack 单元测试,但遇到了 tox 问题
i've been following this tutorial我一直在关注本教程
i have started with a brand new Ubuntu16.04 LTS instance which has python 2.7 and python 3.5我从一个全新的 Ubuntu16.04 LTS 实例开始,它有python 2.7python 3.5
i took the exact same instructions as the tutorial, the only difference is that i clone the nova repository instead of zun : git clone https://github.com/openstack/nova我采用了与教程完全相同的说明,唯一的区别是我克隆了nova存储库而不是zungit clone https://github.com/openstack/nova

and i keep getting this error :我不断收到此错误:

ERROR: invocation failed (exit code 1), logfile: /home/mnm13/nova/.tox/py35/log/py35-1.log
ERROR: actionid: py35 
msg: getenv cmdargs: ['/home/mnm13/nova/.tox/py35/bin/pip', 'install', 
    '-chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt',
    '-r/home/mnm13/nova/test-requirements.txt']

you can find the log filehere你可以在这里找到日志文件
Any one had this before?有谁以前有过这个吗?
thank you.谢谢你。

Building wheels for collected packages: python-pcre
…
 src/pcremodule.c:32:18: fatal error: pcre.h: No such file or directory

The error is quite obvious: to compile python-pcre you need sources for pcre library.错误很明显:要编译python-pcre您需要pcre库的源代码。 python-pcre is just a Python wrapper for pcre which is written in C. python-pcre只是一个用 C 编写的pcre的 Python 包装器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM