← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1271097] [NEW] [tox] ImportError: No module named config

 

Public bug reported:

When trying and running tox on Nova, tests are failing because of
missing oslo.config package.

Although oslo.config is specified in the requirements.txt file and pip
seems to be successfull in installing oslo.config, the directory where
it should be isn't created.

I'm using Nova trunk version 23a0bea232b42df3c26425d7164c779c82fa7a77

Here's my trace:

(cleanenv)ubuntu@flstack2:/opt/stack/nova$ pip freeze
argparse==1.2.1
wsgiref==0.1.2
(cleanenv)ubuntu@flstack2:/opt/stack/nova$ git pull
Already up-to-date.
(cleanenv)ubuntu@flstack2:/opt/stack/nova$ aptitude search oslo
p   srvadmin-oslog                                         - Dell OpenManage Server Administrator OS Logging Control          
(cleanenv)ubuntu@flstack2:/opt/stack/nova$ rm -r .tox/py27/
(cleanenv)ubuntu@flstack2:/opt/stack/nova$ tox -e py27
py27 create: /opt/stack/nova/.tox/py27
py27 installdeps: -r/opt/stack/nova/requirements.txt, -r/opt/stack/nova/test-requirements.txt
py27 develop-inst: /opt/stack/nova
py27 runtests: commands[0] | python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args=
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 29, in <module>
    from oslo.config import cfg
ImportError: No module named config
ERROR: InvocationError: '/opt/stack/nova/.tox/py27/bin/python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args='
__________________________________________________________ summary ___________________________________________________________
ERROR:   py27: commands failed
(cleanenv)ubuntu@flstack2:/opt/stack/nova$ ls -d .tox/py27/lib/python2.7/site-packages/oslo*
.tox/py27/lib/python2.7/site-packages/oslo
.tox/py27/lib/python2.7/site-packages/oslo.rootwrap-1.0.0-py2.7.egg-info
.tox/py27/lib/python2.7/site-packages/oslo.rootwrap-1.0.0-py2.7-nspkg.pth
.tox/py27/lib/python2.7/site-packages/oslo.sphinx-1.1-py2.7.egg-info
.tox/py27/lib/python2.7/site-packages/oslo.sphinx-1.1-py2.7-nspkg.pth
(cleanenv)ubuntu@flstack2:/opt/stack/nova$ ls .tox/py27/lib/python2.7/site-packages/oslo
rootwrap  sphinx
(cleanenv)ubuntu@flstack2:/opt/stack/nova$ source .tox/py27/bin/activate
(py27)ubuntu@flstack2:/opt/stack/nova$ pip freeze | grep oslo.config
-e git+https://github.com/openstack/oslo.config.git@03930e31965524cb90279b5d9e793c6825791b54#egg=oslo.config-master
(py27)ubuntu@flstack2:/opt/stack/nova$ grep oslo.config requirements.txt 
oslo.config>=1.2.0
(py27)ubuntu@flstack2:/opt/stack/nova$

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1271097

Title:
  [tox] ImportError: No module named config

Status in OpenStack Compute (Nova):
  New

Bug description:
  When trying and running tox on Nova, tests are failing because of
  missing oslo.config package.

  Although oslo.config is specified in the requirements.txt file and pip
  seems to be successfull in installing oslo.config, the directory where
  it should be isn't created.

  I'm using Nova trunk version 23a0bea232b42df3c26425d7164c779c82fa7a77

  Here's my trace:

  (cleanenv)ubuntu@flstack2:/opt/stack/nova$ pip freeze
  argparse==1.2.1
  wsgiref==0.1.2
  (cleanenv)ubuntu@flstack2:/opt/stack/nova$ git pull
  Already up-to-date.
  (cleanenv)ubuntu@flstack2:/opt/stack/nova$ aptitude search oslo
  p   srvadmin-oslog                                         - Dell OpenManage Server Administrator OS Logging Control          
  (cleanenv)ubuntu@flstack2:/opt/stack/nova$ rm -r .tox/py27/
  (cleanenv)ubuntu@flstack2:/opt/stack/nova$ tox -e py27
  py27 create: /opt/stack/nova/.tox/py27
  py27 installdeps: -r/opt/stack/nova/requirements.txt, -r/opt/stack/nova/test-requirements.txt
  py27 develop-inst: /opt/stack/nova
  py27 runtests: commands[0] | python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args=
  Traceback (most recent call last):
    File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
      "__main__", fname, loader, pkg_name)
    File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
      exec code in run_globals
    File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 29, in <module>
      from oslo.config import cfg
  ImportError: No module named config
  ERROR: InvocationError: '/opt/stack/nova/.tox/py27/bin/python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args='
  __________________________________________________________ summary ___________________________________________________________
  ERROR:   py27: commands failed
  (cleanenv)ubuntu@flstack2:/opt/stack/nova$ ls -d .tox/py27/lib/python2.7/site-packages/oslo*
  .tox/py27/lib/python2.7/site-packages/oslo
  .tox/py27/lib/python2.7/site-packages/oslo.rootwrap-1.0.0-py2.7.egg-info
  .tox/py27/lib/python2.7/site-packages/oslo.rootwrap-1.0.0-py2.7-nspkg.pth
  .tox/py27/lib/python2.7/site-packages/oslo.sphinx-1.1-py2.7.egg-info
  .tox/py27/lib/python2.7/site-packages/oslo.sphinx-1.1-py2.7-nspkg.pth
  (cleanenv)ubuntu@flstack2:/opt/stack/nova$ ls .tox/py27/lib/python2.7/site-packages/oslo
  rootwrap  sphinx
  (cleanenv)ubuntu@flstack2:/opt/stack/nova$ source .tox/py27/bin/activate
  (py27)ubuntu@flstack2:/opt/stack/nova$ pip freeze | grep oslo.config
  -e git+https://github.com/openstack/oslo.config.git@03930e31965524cb90279b5d9e793c6825791b54#egg=oslo.config-master
  (py27)ubuntu@flstack2:/opt/stack/nova$ grep oslo.config requirements.txt 
  oslo.config>=1.2.0
  (py27)ubuntu@flstack2:/opt/stack/nova$

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1271097/+subscriptions


Follow ups

References