ImportError: No module named oslo_utils [closed]

asked 2015-05-11 11:04:51 -0600

huajun_zhou gravatar image

I try to deploy the keystone, but reported the following error, please help me, thank you.(openstack-kilo)

OS:CentOS 7.1 x64

kernel:Linux controller0 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@controller0 ~]# openstack service create --type identity --description "OpenStack Identity" keystone 
Traceback (most recent call last):
  File "/usr/bin/openstack", line 6, in <module>
    from import main
  File "/usr/lib/python2.7/site-packages/openstackclient/", line 28, in <module>
    from openstackclient.common import clientmanager
  File "/usr/lib/python2.7/site-packages/openstackclient/common/", line 25, in <module>
    from openstackclient.api import auth
  File "/usr/lib/python2.7/site-packages/openstackclient/api/", line 24, in <module>
    from openstackclient.common import utils
  File "/usr/lib/python2.7/site-packages/openstackclient/common/", line 25, in <module>
    from oslo_utils import importutils
ImportError: No module named oslo_utils

please edit /usr/lib/python2.7/site-packages/openstackclient/common/

add :

import oslo

If you reported the following error:

ImportError: No module named netifaces

Perform(You must install gcc):

# pip install netifaces
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by huajun_zhou
close date 2015-05-11 11:05:48.900716


Hello, please report bugs and their appropriate solution (if found).

Tobias Urdin gravatar imageTobias Urdin ( 2015-05-12 01:43:40 -0600 )edit