[openstack-dev] [Neutron] ERROR: InvocationError: when running tox

Randy Tuttle randy.m.tuttle at gmail.com
Mon Feb 24 15:02:17 UTC 2014


Has anyone experienced this issue when running tox. I'm trying to figure if
this is some limit of tox environment or something else. I've seen this
referenced in other projects, but can't seem to zero in on a proper fix.

tox -e py27

[...8><...snip a lot]

neutron.tests.unit.test_routerserviceinsertion\nneutron.tests.unit.test_security_groups_rpc\nneutron.tests.unit.test_servicetype=\xc1\xf1\x19',
stderr=None
error: testr failed (3)
ERROR: InvocationError:
'/Users/rtuttle/projects/neutron/.tox/py27/bin/python -m
neutron.openstack.common.lockutils python setup.py testr --slowest
--testr-args='
__________________________________________________________________ summary
__________________________________________________________________
ERROR:   py27: commands failed

It seems that what it may be complaining about is a missing oslo.config. If
I try to load the final module noted from above (i.e.,
neutron.tests.unit.test_servicetype), I get an error about the missing
module.

Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import neutron.tests.unit.test_servicetype
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "neutron/tests/unit/__init__.py", line 20, in <module>
    from oslo.config import cfg
ImportError: No module named oslo.config

Cheers,
Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140224/f8efd136/attachment.html>


More information about the OpenStack-dev mailing list