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

2014-02-24 Thread Randy Tuttle
Thanks guys.

Yes, Ben, I can see oslo.config installed in tox sub-directory. I will try
to wipe tox out and try again. You are right though, the tox.ini only has
site-packages for Jenkins noted.

Sean, I think your first email response might be right. I am running on a
Mac instead of Ubuntu box. I think, based on my research on this, that the
last module (or even a series of them) may not have loaded, and this is
proven when I try with import. Here's the thread I've been reading.

https://bugs.launchpad.net/nova/+bug/1271097

Cheers


On Mon, Feb 24, 2014 at 1:05 PM, Ben Nemec  wrote:

>  On 2014-02-24 09:02, Randy Tuttle wrote:
>
>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 "", line 1, in 
>   File "neutron/tests/unit/__init__.py", line 20, in 
> from oslo.config import cfg
> ImportError: No module named oslo.config
>
> Cheers,
> Randy
>
> 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.
>
> -Ben
>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-24 Thread Ben Nemec
 

On 2014-02-24 09:02, Randy Tuttle wrote: 

> 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_routerserviceinsertionnneutron.tests.unit.test_security_groups_rpcnneutron.tests.unit.test_servicetype=xc1xf1x19',
>  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 "", line 1, in 
> File "neutron/tests/unit/__init__.py", line 20, in 
> from oslo.config import cfg
> ImportError: No module named oslo.config
> 
> Cheers, Randy

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. 

-Ben 
 ___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-24 Thread Collins, Sean
Sorry - fired off this e-mail without looking too closely at your log
output - I just saw the escape characters and the long lines from tox
and it reminded me of the last discussion we had about it. It's
probably not the same error as I was describing.

That's the tough thing that I strongly dislike about Testr - when it
fails, it fails spectacularly and it's very hard to determine what
happened, for mere idiots like myself.

-- 
Sean M. Collins
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-24 Thread Collins, Sean
Yes - it's a problem with non-Linux platforms not being able to install
pyudev, which is a requirement for the linuxbridge plugin, which makes
testr barf when it hits an ImportError.

http://lists.openstack.org/pipermail/openstack-dev/2014-January/023268.html

In the past, I've run tox -e py26 as a workaround, since for some reason
testr shrugs off the ImportError in python 2.6.


-- 
Sean M. Collins
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-24 Thread Randy Tuttle
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 "", line 1, in 
  File "neutron/tests/unit/__init__.py", line 20, in 
from oslo.config import cfg
ImportError: No module named oslo.config

Cheers,
Randy
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev