G3-'module' object has no attribute 'urls'

Asked by vj

Cannot access horizon dashboard. Getting 'module' object has no attribute 'urls' error. django-compressor is successfully installed.

AttributeError at /
'module' object has no attribute 'urls'Request Method: GET
Request URL: http://x.x.x.x:8000/
Django Version: 1.5
Exception Type: AttributeError
Exception Value: 'module' object has no attribute 'urls'
Exception Location: /home/localadmin/grizzly3downloads/horizon-2013.1.g3/openstack_dashboard/urls.py in <module>, line 36
Python Executable: /home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/bin/python
Python Version: 2.7.3
Python Path: ['/home/localadmin/grizzly3downloads/horizon-2013.1.g3',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/local/lib/python2.7/site-packages/psycopg2-2.4.6-py2.7-linux-x86_64.egg',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7/plat-linux2',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7/lib-tk',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7/lib-old',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/local/lib/python2.7/site-packages',
 '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/openstack_dashboard']

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
David Lyle (david-lyle) said :
#1

The likely cause of your problem is that the pip-requires is pulling in Django 1.5. The django project posted version 1.5 after g3 was tagged that is not compatible with g3 of Horizon.

There are two ways to fix this. The is a post g3 commit merge that pins the django version to >=1.4 and <1.5 -or- you can edit the tools/pip-requires line that reads "Django>=1.4" to "Django>=1.4,<1.5"

You will then need to rebuild your .venv by either removing the .venv directory and running run_test.sh -V again or just run run_test.sh -V -f.

Can you help with this problem?

Provide an answer of your own, or ask vj for more information if necessary.

To post a message you must log in.