分享

openstack tox总是找不到包,求助

(novadev27) root@dev-u:/home/sunjiyun/17.0.7/nova# tox -e cover
/home/sunjiyun/17.0.7/nova/.tox/cover/local/lib/python2.7/site-packages/setuptools/dist.py:45: DistDeprecationWarning: Do not call this function
  warnings.warn("Do not call this function", DistDeprecationWarning)
cover develop-inst-noop: /home/sunjiyun/17.0.7/nova
··································
cover run-test-pre: PYTHONHASHSEED='3527988970'
cover run-test: commands[0] | coverage erase
cover run-test: commands[1] | find . -type f -name '*.pyc' -delete
cover run-test: commands[2] | stestr run ''

=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: nova.tests.unit
Traceback (most recent call last):
  File "/home/sunjiyun/17.0.7/nova/.tox/cover/local/lib/python2.7/site-packages/unittest2/loader.py", line 490, in _find_test_path
    package = self._get_module_from_name(name)
  File "/home/sunjiyun/17.0.7/nova/.tox/cover/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "nova/__init__.py", line 33, in <module>
    import oslo_service  # noqa
ImportError: No module named oslo_service

================================================================================
The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
ERROR: InvocationError for command /home/sunjiyun/17.0.7/nova/.tox/cover/bin/stestr run '' (exited with code 100)
_________________________________________________________________________________________________ summary __________________________________________________________________________________________________
ERROR:   cover: commands failed


已有(1)人评论

跳转到指定楼层
s060403072 发表于 2019-9-17 18:03:15
楼主先看包是否全然后核实下Python版本
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条