Comment 0 for bug 1692865

Revision history for this message
SpongeTsui (jingjinglake) wrote :

In the line 24 of file '_gettextutils.py' by the version 'oslo.i18n==3.15.2', there is an import statement as 'from babel import localedata'.

Considering that 'babel' is not a standard library for python 2.7, so babel should included as a requirement for oslo.i18n.

If babel not installed, after the execution of the following cmd on a new-installed os:

pip install python-keystoneclient
pip install python-swiftclient

it will fail when using auth version 2.0 and the hints are as follow:
"Failed:
Auth versions 2.0 and 3 require python-keystoneclient, install it or use Auth
version 1.0 which requires ST_AUTH, ST_USER, and ST_KEY environment
variables to be set or overridden with -A, -U, or -K."

and these hints are generated form swiftclient 3.10.0 when executing 'from keystoneclient.v2_0 import client as ksclient' in line 542 version of file swiftclient.client.py.