bootstrap.py tries to write in the global python

Bug #656303 reported by Asheesh Laroia
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Buildout
Fix Committed
Undecided
Unassigned

Bug Description

I run bootstrap.py on Ubuntu 10.04, and I get:

8-----< CUT HERE>------8
karen@laesa:~/Code/milestone-a$ python2.6 bootstrap.py
/bin/buildout
Getting distribution for 'distribute'.
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /usr/lib/python2.6/dist-packages
Non-egg installation
Removing elements out of the way...
Already patched.
/usr/lib/python2.6/dist-packages/setuptools.egg-info already patched.
After install bootstrap.
Creating /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg-info
error: /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg-info:
Permission denied
An error occurred when trying to install distribute 0.6.14. Look above this
message for any errors that were output by easy_install.
While:
  Bootstrapping.
  Getting distribution for 'distribute'.
Error: Couldn't install: distribute 0.6.14
8-----< CUT HERE>------8

At this point it gives up:

        An error occurred when trying to install distribute 0.6.14. Look above
        this message for any errors that were output by easy_install.

The buildout is being done by a user who isn't root, so it's straightforward that the user cannot modify /usr/local/lib/*.

To get past this, I have to run: sudo easy_install distribute==0.6.14

(more info: You can clone the repo by doing "git clone git://code.openhatch.org/milestone-a.git" if you want. I tried bootstrap.py from http://bitbucket.org/tarek/buildout-distribute/src/tip/bootstrap.py and that did not help.)

Revision history for this message
Tarek Ziadé (tziade) wrote :

Which version of boostrap.py (and zc.buildout therefore) are you using ?

Revision history for this message
Asheesh Laroia (paulproteus) wrote : Re: [Bug 656303] Re: bootstrap.py tries to write in the global python

On Thu, 7 Oct 2010, Tarek Ziadé wrote:

> Which version of boostrap.py (and zc.buildout therefore) are you using ?

I can reproduce this with the latest in
http://bitbucket.org/tarek/buildout-distribute/src/tip/bootstrap.py

Revision history for this message
Maurits van Rees (maurits-vanrees) wrote :

I have seen something similar earlier this week. I do not have any logs, but think it was like this:

- Linux, python2.4, setuptools 0.6c9 somewhere in /usr/lib

- As bootstrap.py: curl -O http://svn.zope.org/*checkout*/zc.buildout/tags/1.4.4/bootstrap/bootstrap.py

- python2.4 bootstrap.py gives an error like: "Cannot upgrade setuptools distribution while running this process." The bootstrap tries to install a file in /usr/lib which this user is not authorized to do.

- In this case I did 'python2.4 bootstrap.py --distribute' which succeeded.

- In a previous case I did 'sudo easy_install -U setuptools' to get setuptools 0.6c11, after which the bootstrap (without --distribute) works fine again.

Revision history for this message
Asheesh Laroia (paulproteus) wrote :

I just tested with running "python2.6 bootstrap.py --distribute" -- same problem here.

Revision history for this message
Asheesh Laroia (paulproteus) wrote :

Also, I can provide a shell on a system with this problem, if that helps. Just a public SSH key, and be a nice person...

Revision history for this message
Domen Kožar (ielectric+) wrote :

This bug is still alive. Did anyone dig into it?

Revision history for this message
Domen Kožar (ielectric+) wrote :
Changed in zc.buildout:
status: New → Fix Committed
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.