python setup.py develop does not work

Bug #1176151 reported by David Kranz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Unassigned

Bug Description

I did the following on a fresh ubuntu 12.04 instance:

sudo apt-get update
sudo apt-get -y install python-dev libssl-dev python-pip git-core libxml2-dev libxslt-dev
sudo apt-get -y build-dep python-mysqldb

git clone http://github.com/openstack/tempest.git
cd tempest

sudo python setup.py develop

That fails with an error that tells me I have to do:

sudo easy_install -U distribute

I do that and it finishes. I then do:

nosetests -v tempest/tests/compute/flavors/

and get

  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py", line 1326, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/prettytable-0.7.2-py2.7.egg/EGG-INFO/top_level.txt'

This works if I do the nosetests with 'sudo' but it should just work.

I also noticed that 'python setup.py develop' does not install the stuff in rest-requires. Is that expected?

Revision history for this message
Sean Dague (sdague) wrote :

so isn't this the reason we've got run_tests.sh with the venv creation? I'm not sure that setup.py develop was something that's actually supposed to work. if it is, we should loop in monty.

Changed in tempest:
status: New → Incomplete
Revision history for this message
Attila Fazekas (afazekas) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tempest because there has been no activity for 60 days.]

Changed in tempest:
status: Incomplete → Expired
Revision history for this message
Jeff Applewhite (ajeffrey) wrote :

my devstack installation script has suddenly stopped working - when I attempt to manually start keystone with

 cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug || touch "/opt/stack/status/stack/key.failure"

(which fails with devstack) I get IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/prettytable-0.7.2.egg-info/top_level.txt'

affects: tempest → devstack
Changed in devstack:
status: Expired → New
Revision history for this message
Dean Troyer (dtroyer) wrote :

This should be addressed in https://review.openstack.org/#/c/41209/. Interesting early instance of what became common in pip 1.4.

Changed in devstack:
status: New → Fix Committed
Dean Troyer (dtroyer)
Changed in devstack:
status: Fix Committed → Fix Released
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.