devstack - horizon/ No module named backports.ssl_match_hostname

asked 2015-01-30 19:52:22 -0600

GLaupre gravatar image

updated 2015-02-10 12:40:29 -0600


I want to deploy a new devstack on a CentOS 7 machine. I am encountering an error on for horizon:

cd /opt/stack/horizon
 + ./ -N --compilemessages
Traceback (most recent call last):
File "/opt/stack/horizon/", line 23, in <module>
File "/usr/lib/python2.7/site-packages/django/core/management/", line 399, in execute_from_command_line
File "/usr/lib/python2.7/site-packages/django/core/management/", line 392, in execute
File "/usr/lib/python2.7/site-packages/django/core/management/", line 261, in fetch_command
     commands = get_commands()
File "/usr/lib/python2.7/site-packages/django/core/management/", line 107, in get_commands
     apps = settings.INSTALLED_APPS
File "/usr/lib/python2.7/site-packages/django/conf/", line 54, in __getattr__
File "/usr/lib/python2.7/site-packages/django/conf/", line 49, in _setup
     self._wrapped = Settings(settings_module)
File "/usr/lib/python2.7/site-packages/django/conf/", line 132, in __init__
    % (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named backports.ssl_match_hostname

I have the package installed:

rpm -qa | grep backport

It seems a configuration issue, but I have no idea how to fix that. Any suggestion? Tks

edit retag flag offensive close merge delete


I still didn't fix that problem. Any help?

GLaupre gravatar imageGLaupre ( 2015-02-10 12:39:16 -0600 )edit

Hello, I have same problem now. Did you solve it?

kim0412 gravatar imagekim0412 ( 2015-02-22 23:45:45 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-03-28 01:01:58 -0600

dmn gravatar image

For those who face the same problem in the future, pip install backports.ssl_match_hostname worked for me. For some reason pip install fixes the issue and not yum install.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-01-30 19:52:22 -0600

Seen: 1,098 times

Last updated: Feb 10 '15