./run_test.sh fails while trying to install setuptools

Bug #1269546 reported by Robert Mizielski
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned

Bug Description

When running ./run_tests.sh, the script stop while trying to install setuptools :

sudo apt-get install git
git clone https://github.com/openstack/horizon.git
cd horizon
./run_tests.sh
[...]
Wheel installs require setuptools >= 0.8 for dist-info support.
pip's wheel support requires setuptools >= 0.8 for dist-info support.
Storing debug log for failure in /home/dev/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade pip>=1.4" failed.
None

Tested on a fresh Ubuntu 12.04 LTS Server / Desktop 64-bit installation.

Changed in horizon:
assignee: nobody → Robert Mizielski (miziel-r)
description: updated
Changed in horizon:
status: New → In Progress
Revision history for this message
Doug Fish (drfish) wrote :

I was just observing the same behavior. I'm using this workaround for now:
upgrade pip to 1.5
 sudo pip install -U pip

apply the workaround for "pip's wheel support requires setuptools >= 0.8 for dist-info support" to the environment by using
 ./tools/with_venv.sh pip install --no-use-wheel -U --force setuptools

Revision history for this message
Thai Tran (tqtran) wrote :

I also had the same issue. Doug's workaround didn't work for me. I did the following instead:

1. navigation to a <project> (/opt/stack/horizon in this case)
2. open the file in <project>/tools/install_venv_common.py
3. go to line 118 and change the code to "self.pip_install("pip==1.3")
4. save and exit
5. type "./run_tests.sh -f"

Changed in horizon:
assignee: Robert Mizielski (miziel-r) → nobody
Revision history for this message
Richard Jones (r1chardj0n3s) wrote :

Is this still an issue?

I can't reproduce this in a fresh 12.04 install that I just created using a basic docker image consisting of:

----
From ubuntu:12.04
RUN apt-get install -y git python-dev python-virtualenv --force-yes
RUN apt-get install -y libffi-dev
----

I then ran the commands in the OP agains that image and they worked fine.

Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Marking invalid. Last attempt to reproduce failed, and no response in over 6 months.

Changed in horizon:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.