Cannot import name timezone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Undecided
|
Gabriel Hurley | ||
devstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
With latest code installation with devstack, you will get " internal server error 500" when accessing dashboard login page. The horizon log tell that an error "importing middleware horizon.middleware: cannot import name timezone". I verified the timezone module in django.utils exists there.
=======
...
[Wed Sep 12 10:43:54 2012] [error] Warning: Could not import Horizon dependencies. This is normal during installation.
[Wed Sep 12 10:43:54 2012] [error] Warning: Could not import Horizon dependencies. This is normal during installation.
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] mod_wsgi (pid=32481): Exception occurred processing WSGI script '/opt/stack/
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] mod_wsgi (pid=32482): Exception occurred processing WSGI script '/opt/stack/
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] Traceback (most recent call last):
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] File "/usr/lib/
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] Traceback (most recent call last):
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] File "/usr/lib/
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] self.load_
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] self.load_
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] File "/usr/lib/
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] File "/usr/lib/
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] raise exceptions.
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] raise exceptions.
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] ImproperlyConfi
[Wed Sep 12 10:43:54 2012] [error] [client 192.168.156.156] ImproperlyConfi
=======
This isn't a problem in Horizon master. If this is currently an issue in devstack my guess would be a missing dependency (such as the pytz module). Adding devstack for further investigation, but closing for Horizon.