[openstack-dev] [release][oslo] ImportError: No module named netifaces (was: oslo.utils release 3.1.0)

Jeremy Stanley fungi at yuggoth.org
Mon Dec 7 23:03:56 UTC 2015

On 2015-12-07 22:56:16 +0300 (+0300), davanum at gmail.com wrote:
> We are glad to announce the release of:
> oslo.utils 3.1.0: Oslo Utility library
> 2abbe1c Move netifaces to extras
> Requirements updates
> --------------------
> diff --git a/requirements.txt b/requirements.txt
> index 03ccbe8..f9b7b5b 100644
> --- a/requirements.txt
> +++ b/requirements.txt
> @@ -18 +17,0 @@ netaddr!=0.7.16,>=0.7.12
> -netifaces>=0.10.4

This seems to be breaking unit tests for lots of projects since it
propagated earlier today, so the gate is a wreck full of tracebacks


    ${PYTHON:-python} -m subunit.run discover -t ./ ./cinder/tests --list
    --- import errors ---
    Failed to import test moNon-zero exit code (2) from test listing.
    dule: cinder.tests.unit
    Traceback (most recent call last):
      File "/home/jenkins/workspace/gate-cinder-python27/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 490, in _find_test_path
        package = self._get_module_from_name(name)
      File "/home/jenkins/workspace/gate-cinder-python27/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
      File "cinder/tests/unit/__init__.py", line 49, in <module>
      File "cinder/objects/__init__.py", line 34, in register_all
      File "cinder/objects/volume_type.py", line 23, in <module>
        from cinder.volume import volume_types
      File "cinder/volume/__init__.py", line 22, in <module>
        from cinder.common import config
      File "cinder/common/config.py", line 32, in <module>
        from oslo_utils import netutils
      File "/home/jenkins/workspace/gate-cinder-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/netutils.py", line 25, in <module>
        import netifaces
    ImportError: No module named netifaces
    The test run didn't actually run any tests

Jeremy Stanley

More information about the OpenStack-dev mailing list