<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>On 2014-02-24 09:02, Randy Tuttle wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>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.<br /><br /></div>
tox -e py27<br /><br /></div>
[...8><...snip a lot]<br /><br />neutron.tests.unit.test_routerserviceinsertion\nneutron.tests.unit.test_security_groups_rpc\nneutron.tests.unit.test_servicetype=\xc1\xf1\x19', stderr=None<br /> error: testr failed (3)<br />ERROR: InvocationError: '/Users/rtuttle/projects/neutron/.tox/py27/bin/python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args='<br />__________________________________________________________________ summary __________________________________________________________________<br /> ERROR:   py27: commands failed<br /><br /></div>
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.<br /><br />Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) <br />[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin<br />Type "help", "copyright", "credits" or "license" for more information.<br /> >>> import neutron.tests.unit.test_servicetype<br />Traceback (most recent call last):<br />  File "<stdin>", line 1, in <module><br />  File "neutron/tests/unit/__init__.py", line 20, in <module><br />     from oslo.config import cfg<br />ImportError: No module named oslo.config<br /><br /></div>
Cheers,</div>
Randy</div>
</blockquote>
<p>We hit a similar problem in some of the other projects recently, but it doesn't look like that applies to Neutron because it isn't using site-packages in its tox runs anyway.  The first thing I would check is whether oslo.config is installed in the py27 tox venv.  It might be a good idea to just wipe your .tox directory and start fresh if you haven't done that recently.</p>
<p>-Ben</p>
<div> </div>
</body></html>