Ask Your Question

error on Glance command line tool with Mac Osx

asked 2015-10-27 04:59:21 -0500

flabouch gravatar image


I did the installation following the openstack documention and use pip. All the install was correct. When I run the glance image-list command I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/glance", line 7, in <module>
    from import main
  File "/Library/Python/2.7/site-packages/glanceclient/", line 43, in <module>
    from keystoneclient import discover
  File "/Library/Python/2.7/site-packages/keystoneclient/", line 22, in <module>
    from keystoneclient import session as client_session
  File "/Library/Python/2.7/site-packages/keystoneclient/", line 24, in <module>
    from oslo_serialization import jsonutils
  File "/Library/Python/2.7/site-packages/oslo_serialization/", line 62, in <module>
    import six.moves.xmlrpc_client as xmlrpclib
ImportError: No module named xmlrpc_client

I updated the package python-glanceclient, python-keystoneclient with pip install --upgrade command, but still the same issue.

Thanks for your help.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-10-29 08:03:19 -0500

flabouch gravatar image

Was able to fix it by uninstalling six and re-installing it.

pip uninstall six easy_install six


edit flag offensive delete link more

answered 2017-01-06 15:13:43 -0500

UNIX59 gravatar image

I had the same issue and just ran easy_install --upgrade six then it worked. Flabouch's solution didn't work for me.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-10-27 04:59:21 -0500

Seen: 864 times

Last updated: Oct 29 '15