← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469883] [NEW] Unit tests fail with Routes==2.1

 

Public bug reported:

Don't know yet why we are not seeing this in CI as Routes has been out
since Jan. our g-r does exclude 2.0, but not 2.1


dims@dims-mac:~/openstack/openstack/nova$ . .tox/py27/bin/activate
(py27)dims@dims-mac:~/openstack/openstack/nova$ pip freeze | grep Route
Routes==1.13
(py27)dims@dims-mac:~/openstack/openstack/nova$ python
Python 2.7.9 (default, Feb 10 2015, 03:28:08)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from nova.api.ec2 import apirequest
>>>
(py27)dims@dims-mac:~/openstack/openstack/nova$ pip install -U Routes==2.1
Collecting Routes==2.1
Requirement already up-to-date: repoze.lru>=0.3 in ./.tox/py27/lib/python2.7/site-packages (from Routes==2.1)
Installing collected packages: Routes
  Found existing installation: Routes 1.13
    Uninstalling Routes-1.13:
      Successfully uninstalled Routes-1.13
Successfully installed Routes-2.1
(py27)dims@dims-mac:~/openstack/openstack/nova$ python
Python 2.7.9 (default, Feb 10 2015, 03:28:08)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from nova.api.ec2 import apirequest
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "nova/api/ec2/__init__.py", line 47, in <module>
    from nova import wsgi
  File "nova/wsgi.py", line 34, in <module>
    import routes.middleware
  File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/__init__.py", line 145, in <module>
    from routes.mapper import Mapper
  File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/mapper.py", line 8, in <module>
    from routes.util import (
  File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/util.py", line 10, in <module>
    import urllib.request, urllib.parse, urllib.error
ImportError: No module named request
>>>

** 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/1469883

Title:
  Unit tests fail with Routes==2.1

Status in OpenStack Compute (Nova):
  New

Bug description:
  Don't know yet why we are not seeing this in CI as Routes has been out
  since Jan. our g-r does exclude 2.0, but not 2.1

  
  dims@dims-mac:~/openstack/openstack/nova$ . .tox/py27/bin/activate
  (py27)dims@dims-mac:~/openstack/openstack/nova$ pip freeze | grep Route
  Routes==1.13
  (py27)dims@dims-mac:~/openstack/openstack/nova$ python
  Python 2.7.9 (default, Feb 10 2015, 03:28:08)
  [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from nova.api.ec2 import apirequest
  >>>
  (py27)dims@dims-mac:~/openstack/openstack/nova$ pip install -U Routes==2.1
  Collecting Routes==2.1
  Requirement already up-to-date: repoze.lru>=0.3 in ./.tox/py27/lib/python2.7/site-packages (from Routes==2.1)
  Installing collected packages: Routes
    Found existing installation: Routes 1.13
      Uninstalling Routes-1.13:
        Successfully uninstalled Routes-1.13
  Successfully installed Routes-2.1
  (py27)dims@dims-mac:~/openstack/openstack/nova$ python
  Python 2.7.9 (default, Feb 10 2015, 03:28:08)
  [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from nova.api.ec2 import apirequest
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "nova/api/ec2/__init__.py", line 47, in <module>
      from nova import wsgi
    File "nova/wsgi.py", line 34, in <module>
      import routes.middleware
    File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/__init__.py", line 145, in <module>
      from routes.mapper import Mapper
    File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/mapper.py", line 8, in <module>
      from routes.util import (
    File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/util.py", line 10, in <module>
      import urllib.request, urllib.parse, urllib.error
  ImportError: No module named request
  >>>

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


Follow ups

References