buildout: bootstrap.py in 1.5.0b1 + python 2.5

Hey, I'm facing a problem running the bootstrap.py from buildout 1.5.0b1. The errors are pasted here: http://paste.pocoo.org/show/208025/ This error occurs only when I use Python 2.5; with 2.6 it works fine. Also it happens even if i set the flag --distribute. So for the time being I'm using the bootstrap from 1.4.3 on python 2.5, as it works well. I tried to debug it but I'm not familiar with the libraries and had no success. Could anybody please confirm that it is not working with Python 2.5 so that I know that the problem is not in my environment? :) thank you, rodrigo

After a little more investigation, it seems that the problem is caused by adding the -S flag to python. After I commented out this part of the code: # In order to be more robust in the face of system Pythons, we want to # run without site-packages loaded. This is somewhat tricky, in # particular because Python 2.6's distutils imports site, so starting # with the -S flag is not sufficient. However, we'll start with that: if 'site' in sys.modules: # We will restart with python -S. args = sys.argv[:] args[0:0] = [sys.executable, '-S'] args = map(quote, args) os.execv(sys.executable, args) ...it now works with python 2.5. I'm not sure about the implications of this change, though. -- rodrigo

(and now sorry for the spam) Just for clarification, I could reproduce the error using python 2.6. I realized later that I had buildout installed in site-packages for python2.5. Running the bootstrap script with buildout installed causes a problem. Then I installed buildout on python 2.6 and the same error happens. Removing it from site-packages or removing the -S flag from bootstrap fixes the problem. Should I open a ticket? -- rodrigo

On Apr 30, 2010, at 12:30 PM, Rodrigo Moraes wrote:
(and now sorry for the spam)
Just for clarification, I could reproduce the error using python 2.6. I realized later that I had buildout installed in site-packages for python2.5. Running the bootstrap script with buildout installed causes a problem. Then I installed buildout on python 2.6 and the same error happens.
Ah-ha! That makes more sense. I was pretty sure everything worked on 2.5, since we have significant use of that right now.
Removing it from site-packages or removing the -S flag from bootstrap fixes the problem. Should I open a ticket?
You can (on Launchpad) but it isn't necessary. I'm working on the bugs I've heard so far. Thanks Gary
participants (2)
-
Gary Poster
-
Rodrigo Moraes