Quantum needs proper setup.py (was: command 'egg' not found when running install_venv.py)

Bug #897882 reported by Michael Fork on 2011-11-29
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
Brad Hall
OpenStack Dashboard (Horizon)
Gabriel Hurley
Brad Hall
quantum (Ubuntu)
Nominated for Precise by Yolanda Robla

Bug Description

Running the command "python tools/install_venv.py" for stable/diablo version of Horizon results in:

Obtaining quantum from git+https://github.com/openstack/quantum.git#egg=quantum (from -r /root/openstack-horizon-5108947/openstack-dashboard/tools/pip-requir
  Cloning https://github.com/openstack/quantum.git to ./.dashboard-venv/src/quantum
  Running setup.py egg_info for package quantum
    Checking for virtual-env and easy_install
    Command 'egg' not found
No files/directores in /root/openstack-horizon-5108947/openstack-dashboard/.dashboard-venv/src/quantum (from dependency_links.txt)
Storing complete log in /root/.pip/pip.log
Command "/root/openstack-horizon-5108947/openstack-dashboard/tools/with_venv.sh pip install -E /root/openstack-horizon-5108947/openstack-dashboard/.dashboardk-horizon-5108947/openstack-dashboard/tools/pip-requires" failed.

The fix I used was to grab the quantum repository URL from the master branch and replace the value in my downloaded stable/diablo branch.

The existing pip-requires line:

-e git+https://github.com/openstack/quantum.git#egg=quantum

The new one from master:

-e git+https://github.com/openstack/quantum.git@stable/diablo#egg=quantum

Brad Hall (bgh) wrote :

I'm going to fix this in quantum: https://bugs.launchpad.net/quantum/+bug/897943 .. sorry about that.

Changed in horizon:
assignee: nobody → Brad Hall (bgh)
Gabriel Hurley (gabriel-hurley) wrote :

Quantum is pulled from github now, bypassing the egg install problem. They have pulled their package from pypi as well.

Changed in horizon:
assignee: Brad Hall (bgh) → Gabriel Hurley (gabriel-hurley)
status: New → Fix Committed
Devin Carlen (devcamcar) on 2011-12-10
Changed in horizon:
milestone: none → essex-2
importance: Undecided → Medium
Thierry Carrez (ttx) on 2011-12-14
Changed in horizon:
status: Fix Committed → Fix Released
Zhongyue Luo (zyluo) on 2011-12-16
no longer affects: quantum
Thierry Carrez (ttx) wrote :

Proper setup.py proposed at:

Changed in quantum:
assignee: nobody → Brad Hall (bgh)
importance: Undecided → High
milestone: none → essex-3
status: New → In Progress
summary: - Command 'egg' not found for quantum when running install_venv.py
+ Quantum needs proper setup.py (was: command 'egg' not found when running
+ install_venv.py)
Thierry Carrez (ttx) wrote :

Also affects CI since it blocks the delivery of a working quantum-tarball job (uses sdist).

Changed in openstack-ci:
importance: Undecided → High
milestone: none → essex-3
status: New → Triaged
Brad Hall (bgh) on 2011-12-22
Changed in openstack-ci:
assignee: nobody → Brad Hall (bgh)

Reviewed: https://review.openstack.org/1988
Committed: http://github.com/openstack/quantum/commit/f3a9665e4349160fba08a09b846a773f4e785ba4
Submitter: Jenkins
Branch: master

commit f3a9665e4349160fba08a09b846a773f4e785ba4
Author: Brad Hall <email address hidden>
Date: Wed Nov 30 13:10:31 2011 -0800

    Fix lp bug 897882

    This moves the tree to having a standard setup.py. For those who want to
    build individual packages you'll need to use the setup_<package>.py files.

    This allows us to support the traditional setup.py commands (i.e. sdist, etc)
    that the openstack CI scripts will be using.

    Change-Id: I7fe286d9973f43ae118a715276b0c089230f4f7e

Changed in quantum:
status: In Progress → Fix Committed
Brad Hall (bgh) on 2012-01-05
Changed in openstack-ci:
status: Triaged → Fix Committed
Monty Taylor (mordred) on 2012-01-17
Changed in openstack-ci:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-01-25
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in horizon:
milestone: essex-2 → 2012.1
Thierry Carrez (ttx) on 2012-04-05
Changed in quantum:
milestone: essex-3 → 2012.1
Changed in quantum (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers