Ask Your Question
0

pip-missing-reqs fails

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

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/find_missing_reqs.py", 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/test.py 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
0

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

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 https://github.com/r1chardj0n3s/pip-c... after the tool was renamed, but nova's tox.ini was never updated to use the new package name. I've submitted https://review.openstack.org/453208 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 83 times

Last updated: Apr 04 '17