horizon installation error

asked 2017-08-25 10:12:16 -0500

Georgios gravatar image


Trying to install horizon and I am getting the below error. Can you please help?

 Not creating home directory `/usr/share/openstack-dashboard/'.
Collecting and compressing static assets...
Traceback (most recent call last):
  File "manage.py", line 25, in <module>
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 355, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 291, in handle
    self.compress(sys.stdout, **options)
  File "/usr/local/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 107, in compress
    if not self.get_loaders():
  File "/usr/local/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 56, in get_loaders
    for e in engines.all():
  File "/usr/local/lib/python2.7/dist-packages/django/template/utils.py", line 89, in all
    return [self[alias] for alias in self]
  File "/usr/local/lib/python2.7/dist-packages/django/template/utils.py", line 80, in __getitem__
    engine = engine_cls(params)
  File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py", line 30, in __init__
    options['libraries'] = self.get_templatetag_libraries(libraries)
  File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py", line 48, in get_templatetag_libraries
    libraries = get_installed_libraries()
  File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py", line 113, in get_installed_libraries
    for name in get_package_libraries(pkg):
  File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py", line 130, in get_package_libraries
    "trying to load '%s': %s" % (entry[1], e)
django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'openstack_dashboard.templatetags.context_selection': cannot import name security_group_rules
dpkg: error processing package openstack-dashboard (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
edit retag flag offensive close merge delete


Can you please let us know which docs you are following to install OpenStack ? Please paste the link.

teju gravatar imageteju ( 2017-08-26 21:31:06 -0500 )edit

Which OpenStack components did you install prior to installing Horizon? I guess you need to install Nova based on the error message

teju gravatar imageteju ( 2017-08-26 21:32:10 -0500 )edit

the latest one. however as I faced other challenges too I am trying now the devstack. where I have other issues mainly with cinder.....

Georgios gravatar imageGeorgios ( 2017-08-29 07:27:41 -0500 )edit