Ask Your Question
0

can't install dev stack on centos 7 minimal

asked 2015-12-29 19:01:35 -0500

masber gravatar image

I am getting the following error while installing devstack from git repository http://docs.openstack.org/developer/devstack/ (following this link)

+ sudo chown -R stack /opt/stack/horizon/horizon.egg-info
+ cd /opt/stack/horizon
+ ./run_tests.sh -N --compilemessages
Traceback (most recent call last):
  File "/opt/stack/horizon/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 303, in execute
    settings.INSTALLED_APPS
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
    self._setup(name)
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/opt/stack/horizon/openstack_dashboard/settings.py", line 27, in <module>
    from openstack_dashboard import exceptions
  File "/opt/stack/horizon/openstack_dashboard/exceptions.py", line 21, in <module>
    from heatclient import exc as heatclient
  File "/usr/lib/python2.7/site-packages/heatclient/exc.py", line 15, in <module>
    from oslo_serialization import jsonutils
  File "/usr/lib/python2.7/site-packages/oslo_serialization/jsonutils.py", line 62, in <module>
    import six.moves.xmlrpc_client as xmlrpclib
ImportError: No module named xmlrpc_client

Any idea how can I fix this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-01 17:02:23 -0500

masber gravatar image

the problem was multiple python versions installed on my system. 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-29 19:01:35 -0500

Seen: 591 times

Last updated: Jan 01 '16