How to create customized Horizon Page

asked 2015-06-11 04:10:28 -0500

sudharsan gravatar image

updated 2015-06-11 04:20:38 -0500

uts9 gravatar image

Hi,

I tried following the steps on to customise our own Horizon page.

  1. I cloned the latest source from git [horizon-master]
  2. mkdir openstack_dashboard/dashboards/mydashboard
  3. ./run_tests.sh -m startdash mydashboard --target openstack_dashboard/dashboards/mydashboard

This step gave me error as:

root@ubuntu:/home/sudharsan/horizon-master# ./run_tests.sh -m startdash mydashboard --target openstack_dashboard/dashboards/mydashboard
Checking environment.
Your environment appears to be out of date. Update? (Y/n) y
Fetching new src packages...
venv already exists...
Installing dependencies with pip (this can take a while)...
--use-mirrors has been deprecated and will be removed in the future. Explicit uses of --index-url and/or --extra-index-url is suggested.
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip>=1.4 in ./.venv/lib/python2.7/site-packages
Downloading/unpacking pip>=1.4
Cleaning up...
No distributions at all found for pip>=1.4 in ./.venv/lib/python2.7/site-packages
Storing debug log for failure in /root/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade pip>=1.4" failed.
None

Though I have pip of latest version.

root@ubuntu:/home/sudharsan/horizon-master# pip show pip
---
Metadata-Version: 1.1
Name: pip
Version: 7.0.3
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: python-virtualenv@groups.google.com
License: MIT
Location: /usr/local/lib/python2.7/dist-packages/pip-7.0.3-py2.7.egg
Requires:
Entry-points:
  [console_scripts]
  pip = pip:main
  pip2.7 = pip:main
  pip2 = pip:main
root@ubuntu:/home/sudharsan/horizon-master#
edit retag flag offensive close merge delete

Comments

Can you please try this workaround as given here

sunnyarora gravatar imagesunnyarora ( 2015-06-11 07:21:41 -0500 )edit