Ask Your Question

pip-missing-reqs fails

asked 2017-04-04 01:29:39 -0500

seitan gravatar image

Hello, I'm trying to run tox tests on nova. Every test passes fine, but pip-missing-reqs fails:

tox -e pip-missing-reqs

Traceback (most recent call last):
  File "/root/nova/.tox/pip-missing-reqs/bin/pip-missing-reqs", line 7, in <module>
    from pip_missing_reqs.find_missing_reqs import main
  File "/root/nova/.tox/pip-missing-reqs/local/lib/python2.7/site-packages/pip_missing_reqs/", line 14, in <module>
    from pip.utils import get_installed_distributions, normalize_name
ImportError: cannot import name normalize_name
ERROR: InvocationError: '/root/nova/.tox/pip-missing-reqs/bin/pip-missing-reqs -d --ignore-file=nova/tests/* --ignore-file=nova/ nova'
___________________________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________________________
ERROR:   pip-missing-reqs: commands failed

pip --version pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

This happens on Debian Jessie, Ubuntu Trusty and Ubuntu Xenial. Any ideas, what's wrong? Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-04-04 09:48:39 -0500

That tox env for pip-missing-reqs is not exercised in the OpenStack CI system and so has bit-rotted. It looks like the error reported above was solved by after the tool was renamed, but nova's tox.ini was never updated to use the new package name. I've submitted to update the tox.ini in nova's master branch to install pip_check_reqs now instead of pip_missing_reqs.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-04-04 01:29:39 -0500

Seen: 128 times

Last updated: Apr 04 '17