[Tox] pep8: commands failed with InvocationError

asked 2016-01-12 01:07:44 -0600

Poornima gravatar image

updated 2016-01-13 09:48:19 -0600

rbowen gravatar image

Tempest test runs successful over devstack setup. Getting below error while running pep8 check


Traceback (most recent call last):
  File ".tox/pep8/bin/check-uuid", line 11, in <module>
  File "/opt/stack/tempest/.tox/pep8/local/lib/python2.7/site-packages/tempest_lib/cmd/check_uuid.py", line 344, in run
    tests = checker.get_tests()
  File "/opt/stack/tempest/.tox/pep8/local/lib/python2.7/site-packages/tempest_lib/cmd/check_uuid.py", line 215, in get_tests
    module = importlib.import_module(module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
  File "/opt/stack/tempest/tempest/clients.py", line 35, in <module>
    from tempest_lib.services.compute.floating_ips_client import \
ImportError: No module named floating_ips_client
ERROR: InvocationError: '/opt/stack/tempest/.tox/pep8/bin/check-uuid'
__________________________________________________________________________________ summary __________________________________________________________________________________
ERROR:   pep8: commands failed


any suggestions??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-01 04:35:20 -0600

There's a chance you ran into https://bugs.launchpad.net/devstack/+...

An upgrade to tempest-lib==0.13.0 should solve it:

$ source .tox/pep8/bin/activate
(pep8) $ pip install -U tempest-lib==0.13.0
(pep8) $ deactivate
$ tox -e pep8
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-12 01:07:44 -0600

Seen: 1,967 times

Last updated: Jul 01 '16