我是老孙@yun 发表于 2019-9-17 08:57:14

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 | coverage erase
cover run-test: commands | find . -type f -name '*.pyc' -delete
cover run-test: commands | 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


s060403072 发表于 2019-9-17 18:03:15

楼主先看包是否全然后核实下Python版本
页: [1]
查看完整版本: openstack tox总是找不到包,求助