With Havana 2 installed, Launching horizon UI results in the error " NameError: name 'Dashboard' is not defined"

Asked by Vivekanandan B

Hi All,

I installed Havana2, after installation Launching horizon UI results in the error " NameError: name 'Dashboard' is not defined".
Below is the log snippet from apache2:

[Thu Aug 08 09:44:41 2013] [error] Warning: Could not import Horizon dependencies. This is normal during installation.
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] mod_wsgi (pid=16851): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] Traceback (most recent call last):
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 236, in __call__
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] self.load_middleware()
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 45, in load_middleware
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] for middleware_path in settings.MIDDLEWARE_CLASSES:
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 53, in __getattr__
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] self._setup(name)
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in _setup
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] self._wrapped = Settings(settings_module)
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 132, in __init__
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] mod = importlib.import_module(self.SETTINGS_MODULE)
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] __import__(name)
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 182, in <module>
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] from local.local_settings import *
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 91, in <module>
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] from horizon.utils import secret_key
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File "/usr/lib/python2.7/dist-packages/horizon/__init__.py", line 55, in <module>
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] assert Dashboard
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] NameError: name 'Dashboard' is not defined
[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] File does not exist: /var/www/favicon.ico

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) said :
#1

Did you encounter any error during debian install of horizon?

Revision history for this message
Vivekanandan B (bvivek) said :
#2

Hi,

No, there were no errors during debian install of the packages.

Revision history for this message
Julian Sternberg (jules-i) said :
#3

facing into exactly the same error when installing Openstack Havana b2 on Wheezy

Revision history for this message
Martin Mailand (todin) said :
#4

I have the some problem on Ubuntu 12.04.

Revision history for this message
Mehmet Hacısalihoğlu (esedmehmet) said :
#5

This looks like it's probably a bug, raised 1210253

Revision history for this message
Vivekanandan B (bvivek) said :
#6

Yes, the problem is now solved. I had raised the issue 1210253 which is fixed now.