ImportError i18n in stable/kilo client

Bug #1468819 reported by Victor Ryzhenkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
High
Andriy Kurilin

Bug Description

[2015-06-25 18:02:48+03:00] nova floating-ip-list
Traceback (most recent call last):
  File "/usr/local/bin/nova", line 7, in <module>
    from novaclient.shell import main
  File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 51, in <module>
    import novaclient.auth_plugin
  File "/usr/local/lib/python2.7/dist-packages/novaclient/auth_plugin.py", line 23, in <module>
    from novaclient import utils
  File "/usr/local/lib/python2.7/dist-packages/novaclient/utils.py", line 26, in <module>
    from novaclient.i18n import _
  File "/usr/local/lib/python2.7/dist-packages/novaclient/i18n.py", line 19, in <module>
    from oslo import i18n
ImportError: cannot import name i18n

This happened, because python-novaclient in kilo doesn't match global-requirements for stable/kilo.

For example: https://github.com/openstack/requirements/blob/stable/kilo/global-requirements.txt#L66
https://github.com/openstack/python-novaclient/blob/stable/kilo/requirements.txt#L7

As result, oslo.i18n installed with 2.0.0 version, which doesn't have i18n namespace and have oslo_i18n

Changed in python-novaclient:
status: New → Confirmed
tags: added: in-stable-kilo
Revision history for this message
Adam Gandelman (gandelman-a) wrote :
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

python-novaclient's stable/kilo's requirements.txt are updated to constraint oslo.i18n to older versions, we just need someone to cut a new release tag (2.23.1)

Revision history for this message
Matt Riedemann (mriedem) wrote :

Looks like this is the fix: https://review.openstack.org/#/c/202656/

Matt Riedemann (mriedem)
Changed in python-novaclient:
status: Confirmed → Fix Committed
importance: Undecided → High
assignee: nobody → Andrey Kurilin (andreykurilin)
Revision history for this message
Matt Riedemann (mriedem) wrote :

Released in 2.23.1.

Changed in python-novaclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.