运行 nova openstack 单元测试时出现 tox 错误
tox errors when running nova openstack unit tests
我正在尝试 运行 openstack 单元测试,但我遇到了 tox
的问题
我一直在关注这个 tutorial
我从一个全新的 Ubuntu16.04 LTS 实例开始,它有 python 2.7
和 python 3.5
我采用了与教程完全相同的说明,唯一的区别是我克隆了 nova
存储库而不是 zun
:
git clone https://github.com/openstack/nova
而且我不断收到此错误:
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']
您可以找到日志文件here
有人以前有过这个吗?
谢谢。
Building wheels for collected packages: python-pcre
…
src/pcremodule.c:32:18: fatal error: pcre.h: No such file or directory
错误非常明显:要编译 python-pcre
,您需要 pcre
库的源代码。 python-pcre
只是 pcre
的 Python 包装器,用 C 编写。
我正在尝试 运行 openstack 单元测试,但我遇到了 tox
的问题
我一直在关注这个 tutorial
我从一个全新的 Ubuntu16.04 LTS 实例开始,它有 python 2.7
和 python 3.5
我采用了与教程完全相同的说明,唯一的区别是我克隆了 nova
存储库而不是 zun
:
git clone https://github.com/openstack/nova
而且我不断收到此错误:
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']
您可以找到日志文件here
有人以前有过这个吗?
谢谢。
Building wheels for collected packages: python-pcre
…
src/pcremodule.c:32:18: fatal error: pcre.h: No such file or directory
错误非常明显:要编译 python-pcre
,您需要 pcre
库的源代码。 python-pcre
只是 pcre
的 Python 包装器,用 C 编写。