Issue #111 open

buildout SandboxViolation: distribute tries to rename setuptools egg installed globally

Sridhar Ratnakumar
created an issue

Shouldn't buildout not care about what version of setuptools is installed globally or in PEP 370 directories? This happens with distribute ("bootstrap.py -d"). I have Python with setuptools installed in global site-packages. Does this mean I cannot use distribute in my buildouts?

{{{ C:\Users\sridharr\as\pypm\branches\patch>python26 bootstrap.py -d Creating directory 'C:\Users\sridharr\as\pypm\branches\patch\bin'. Creating directory 'C:\Users\sridharr\as\pypm\branches\patch\parts'. Creating directory 'C:\Users\sridharr\as\pypm\branches\patch\develop-eggs'. Generated script 'C:\Users\sridharr\as\pypm\branches\patch\bin\buildout'.

C:\Users\sridharr\as\pypm\branches\patch>bin\buildout.exe Getting distribution for 'distribute'. Before install bootstrap. Scanning installed packages Setuptools installation detected at c:\activepython64python26\lib\site-packages\setuptools-0.6c11-py2.6.egg Egg installation Patching... Renaming c:\activepython64python26\lib\site-packages\setuptools-0.6c11-py2.6.egg into c:\activepython64python26\lib\site -packages\setuptools-0.6c11-py2.6.egg.OLD.1262295361.29 error: SandboxViolation: mkdir('c:\activepython64python26\lib\site-packages\setuptools-0.6c11-py2.6.egg',) {}

The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available. An error occured when trying to install distribute 0.6.10. Look above this message for any errors that were output by ea sy_install. While: Installing. Checking for upgrades. Getting distribution for 'distribute'. Error: Couldn't install: distribute 0.6.10

C:\Users\sridharr\as\pypm\branches\patch> }}}

Comments (6)

  1. Sridhar Ratnakumar reporter

    I got this error one more time today. Further diagnosis:

    C:\Users\sridharr\as\pypm\branches\prod-maint>bin\buildout.exe
    Getting distribution for 'distribute'.
    Before install bootstrap.
    Scanning installed packages
    Setuptools installation detected at c:\activepython64python26\lib\site-packages
    Non-egg installation
    Removing elements out of the way...
    Patching...
    Renaming c:\activepython64python26\lib\site-packages\setuptools-0.6c9-py2.6.egg-info into c:\activepython64python26\lib\
    site-packages\setuptools-0.6c9-py2.6.egg-info.OLD.1262831303.01
    error: SandboxViolation: open('c:\\activepython64python26\\lib\\site-packages\\setuptools-0.6c9-py2.6.egg-info', 'w') {}
    
    
    The package setup script has attempted to modify files on your system
    that are not within the EasyInstall build area, and has been aborted.
    
    This package cannot be safely installed by EasyInstall, and may not
    support alternate installation locations even if you run its setup
    script by hand.  Please inform the package's author and the EasyInstall
    maintainers to find out if a fix or workaround is available.
    An error occured when trying to install distribute 0.6.10. Look above this message for any errors that were output by ea
    sy_install.
    While:
      Installing.
      Checking for upgrades.
      Getting distribution for 'distribute'.
    Error: Couldn't install: distribute 0.6.10
    
    ..
    ..
    ..
    
    C:\Users\sridharr\as\pypm\branches\prod-maint>\ActivePython64Python26\python.exe -c "import setuptools; print setuptools
    "
    <module 'setuptools' from 'C:\ActivePython64Python26\lib\site-packages\distribute-0.6.8-py2.6.egg\setuptools\__init__.py
    c'>
    
  2. Tarek Ziadé repo owner

    In setup.py there's a test that checks if its run from buildout (zc.buildout adds a "_" marker in os.environ)

    Could you try to trace the installation to see if this environ is present ?

  3. Anonymous
  4. Log in to comment