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

时间:2018-02-13 03:06:33

标签: python unit-testing openstack openstack-nova tox

我正在尝试运行openstack单元测试,而我遇到了tox问题 我一直在关注tutorial 我已经开始使用全新的Ubuntu16.04 LTS实例,该实例具有python 2.7python 3.5
我采用与教程完全相同的指令,唯一的区别是我克隆了nova存储库而不是zungit 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
以前有人有这个吗? 谢谢。

1 个答案:

答案 0 :(得分:0)

SELECT        
      Z1PERS.NAME
    , Z1PERS.VORNAME
    , WPLEVENT.VDat
    , WPLEVENT.EventStart
    , WPLEVENT.EventStop
    , WPLEVENT.PEPGROUP
    , Z1SGRP.TXXT
    , PERSAB.GLTAB
    , Z1PERS.PRIMKEY AS Expr1
    , PERSAB.PRIMKEY
FROM 
    Z1PERS 
INNER JOIN
    WPLEVENT ON Z1PERS.PRIMKEY = WPLEVENT.PersID 
INNER JOIN                         
    Z1SGRP ON WPLEVENT.PEPGROUP = Z1SGRP.GRUPPE 
INNER JOIN
    (
     SELECT MAX(Persab.rc1)  --Fixed MAX expression
          , persab.rc2
     FROM   
            persab
     GROUP BY
            persab.rc2       --Need to group on rc2 if you want that column in the query otherwise remove this AND the rc2 column from select list
     WHERE
            WPLEVENT.PersID = PERSAB.PRIMKEY 
            AND WPLEVENT.VDat <= PERSAB.GLTAB
    )  --Missing ON clause for the INNER JOIN here
WHERE z1pers.vorname = 'henning'

错误非常明显:要编译Building wheels for collected packages: python-pcre … src/pcremodule.c:32:18: fatal error: pcre.h: No such file or directory ,您需要python-pcre库的源代码。 pcre只是pcre的Python包装器,用C语言编写。