Ask Your Question
0

stack.sh not working

asked 2015-12-30 09:40:11 -0500

masber gravatar image

This is what I am doing to install devstack:

  1. create new VM on virtualbox
  2. Install centos7 minimal
  3. Install git (yum install git-core)
  4. cd /tmp
  5. git clone https://git.openstack.org/openstack-dev/devstack (https://git.openstack.org/openstack-d...)
  6. devstack/tools/create-stack-user.sh
  7. chown -R stack:stack /tmp/devstack
  8. su stack
  9. cd devstack; ./stack.sh

However I am getting a strange error message related with my python-six as it is not recognising the modules

 File "/usr/lib/python2.7/site-packages/oslo_serialization/jsonutils.py", line 61, in <module>
    import six.moves.xmlrpc_client as xmlrpclib
ImportError: No module named xmlrpc_client

Please note:

pip freeze | grep six
six==1.10.0
does openstack really not have packages or venv support
 >>> import six; print(six.__version__)
 1.2.0

So it looks like python interpreter is using six 1.2.0 instead of 1.10.0

Any idea on how to fix this?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-01-11 15:28:03 -0500

Sandeep gravatar image

yum -y update and then try.

edit flag offensive delete link more
0

answered 2016-01-01 17:01:16 -0500

masber gravatar image

a work around to this problem is to manually install six on your system:

# wget https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55
# tar -zxvf six-1.10.0.tar.gz
# python ./six-1.10.0/setup.py install

# python -c 'import six; print(six.__version__)'
1.10.0
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-12-30 09:40:11 -0500

Seen: 360 times

Last updated: Jan 11 '16