'Requires Distributions' should include 'babel'

Bug #1692865 reported by SpongeTsui
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.i18n
Fix Released
Undecided
Unassigned
python-keystoneclient
Incomplete
Undecided
Unassigned
python-swiftclient
New
Undecided
Unassigned
python-keystoneclient (Ubuntu)
Invalid
Undecided
Unassigned
python-swiftclient (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

In the line 24 of file '_gettextutils.py' on 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 be included as a requirement for oslo.i18n.

If babel not installed, after the execution of the following commands 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 of file swiftclient.client.py.

description: updated
description: updated
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-keystoneclient (Ubuntu):
status: New → Confirmed
Changed in python-swiftclient (Ubuntu):
status: New → Confirmed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

I've marked the corresponding upstream projects as affected by this bug in order to get their input.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

The latest version of oslo.i18n does include babel in its requirements list.

Changed in oslo.i18n:
status: New → Fix Released
Revision history for this message
Corey Bryant (corey.bryant) wrote :

I checked the Ubuntu packages for python(3)-oslo.i18n back to Kilo and they all have python(3)-babel as a dependency, so marking as invalid for the Ubuntu packages.

Changed in python-keystoneclient (Ubuntu):
status: Confirmed → Invalid
Changed in python-swiftclient (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

With i18n including the dependency, does Keystoneclient also need it explicitly?

Changed in python-keystoneclient:
status: New → Incomplete
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.