Horizon Quick start - Error

Asked by Toby Harris

Hi,

I am referring to the Horizon Quick start article provided at the below location.

http://docs.openstack.org/developer/horizon/quickstart.html

I am trying to follow the steps but I am getting an error when executing the below step

tools/with_venv.sh ./manage.py runserver

ERROR

ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path?): No module named cinderClient.

I am using Python2.7 and Django 1.6.5 on Ubuntu 12.0. Ubuntu is installed using VM player on a Windows 7 64 bit OS.

Regards
Toby

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Matthias Runge (mrunge) said :
#1

Installation via zip from non-official repository is way beyond of what the OpenStack project can handle.

Revision history for this message
Matthias Runge (mrunge) said :
#2

You surely followed the manual?

To setup a Horizon development environment simply clone the Horizon git repository from http://github.com/openstack/horizon and execute the run_tests.sh script from the root folder (see The run_tests.sh Script):

Revision history for this message
Toby Harris (tobyh) said :
#3

Hi Matthias,

Sure, I followed the manual. That's exactly how I did by cloning from the repository and then executing the run_tests.sh

When I executed the run_tests.sh, I got the below error.

Command python setup.py egg_info failed with error code 1 in /home/shashi/horizon/.venv/build/pbr
Storing debug log for failure in /home/shashi/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade pbr" failed.

Regards
Toby

Revision history for this message
Matthias Runge (mrunge) said :
#4

that's a known bug due the setuptools update from yesterday.

Use a distribution, use the newer released setuptools or retry tomorrow.

And: this is still deprecated.

Revision history for this message
Toby Harris (tobyh) said :
#5

Thanks Matthias Runge, that solved my question.

Revision history for this message
Toby Harris (tobyh) said :
#6

I will try this today. Thanks for all your help :).

Revision history for this message
Toby Harris (tobyh) said :
#7

OK, So I executed the run_tests.sh today and looks like it downloaded and installed a couple of dependencies. However at the end I get this error.

% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'openstack_dashboard.test.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named lockfile
Running flake8 ...
Tests failed.

Also when I try to start the dev server , I get the below error.

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 cinderclient

Any idea on why I am getting this error?

Thanks
Toby

Revision history for this message
Matthias Runge (mrunge) said :
#8

I still wonder, if you installed all requirements from
https://github.com/openstack/horizon/blob/master/requirements.txt

They are listed there and both issues should be solved by installing that.

Revision history for this message
Vijendra Soni (vijendra-soni-g) said :
#9

Hi Toby,

Even I faced the error as you mentioned. I tried with the following and it went fine:

python manage.py runserver 0.0.0.0:8081

In browser you can provide your VM IP along with port to open dashboard(Horizon).

Thanks,
Vijendra Soni

Revision history for this message
Kris Chi (chixq) said :
#10

Try ./run_tests.sh -f, that solved my problem.

Can you help with this problem?

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

To post a message you must log in.