Module backports was already imported when runnin cli commands

Bug #1240497 reported by Dafna Ron
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-cinderclient
Invalid
Undecided
Unassigned

Bug Description

[root@cougar06 tmp(keystone_admin)]# cinder list
/usr/lib/python2.6/site-packages/babel/__init__.py:33: UserWarning: Module backports was already imported from /usr/lib64/python2.6/site-packages/backports/__init__.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import get_distribution, ResolutionError

cinder show 25b3b331-f736-4aa5-b77e-059b049ce092
/usr/lib/python2.6/site-packages/babel/__init__.py:33: UserWarning: Module backports was already imported from /usr/lib64/python2.6/site-packages/backports/__init__.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import get_distribution, ResolutionError

Revision history for this message
Xizhen Du (xizhendu) wrote :

Tried to deploy havana on RHEL 6.4 from fedora rdo repo, and got similar output when creating a tenant in the beginning.

[root@openstack-10-7-1-101 ~]# keystone tenant-create --name=admin --description="Admin Tenant"
/usr/lib/python2.6/site-packages/babel/__init__.py:33: UserWarning: Module backports was already imported from /usr/lib64/python2.6/site-packages/backports/__init__.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import get_distribution, ResolutionError
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | Admin Tenant |
| enabled | True |
| id | 663da05506b14ea781bb83c3aa26b390 |
| name | admin |
+-------------+----------------------------------+
[root@openstack-10-7-1-101 ~]#

Revision history for this message
Alfred Shen (alfredcs) wrote :

I am getting the same error on CentOS6.4 with kernel 2.6.32-358.6.2.el6.x86_64.

# keystone user-list
/usr/lib/python2.6/site-packages/babel/__init__.py:33: UserWarning: Module backports was already imported from /usr/lib64/python2.6/site-packages/backports/__init__.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import get_distribution, ResolutionError

Revision history for this message
Marcos Lobo (marcos-fermin-lobo) wrote :

I am getting the same error, but with keystone after upgrade it from Grizzly to Havana. I am using SLC6.5 x86_64.

 ~(keystone_admin)]# keystone user-list
/usr/lib/python2.6/site-packages/babel/__init__.py:33: UserWarning: Module backports was already imported from /usr/lib64/python2.6/site-packages/backports/__init__.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import get_distribution, ResolutionError

Revision history for this message
Marcos Lobo (marcos-fermin-lobo) wrote :

My solution was to upgrade Babel library https://answers.launchpad.net/keystone/+question/240569

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Cleanup

Closing stale bug. If this is still an issue please reopen.

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