Ask Your Question
0

error on Glance command line tool with Mac Osx

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

flabouch gravatar image

Hello,

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 glanceclient.shell import main
  File "/Library/Python/2.7/site-packages/glanceclient/shell.py", line 43, in <module>
    from keystoneclient import discover
  File "/Library/Python/2.7/site-packages/keystoneclient/discover.py", line 22, in <module>
    from keystoneclient import session as client_session
  File "/Library/Python/2.7/site-packages/keystoneclient/session.py", line 24, in <module>
    from oslo_serialization import jsonutils
  File "/Library/Python/2.7/site-packages/oslo_serialization/jsonutils.py", 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
0

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

Thanks.

edit flag offensive delete link more
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 776 times

Last updated: Oct 29 '15