1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #100 resolved

easy_install -U distribute errors out with a sandbox violation

Van Lindberg
created an issue

easy_install -U distribute (from 0.6.6) halts with the following error: """ After install bootstrap. Creating /usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg-info error: SandboxViolation: open('/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.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 happens both in a virtualenv (with site-packages) as well as in the system.

Comments (12)

  1. Anonymous

    This appears to be the same issue. Distribute 0.6.10:

    File structure:

    C:\lib\python\2.6 (root install) C:\lib\python\venv (workon_home)

    Full steps and traceback

    PS C:\lib\python\venv> mkvirtualenv bazaar New python executable in bazaar\bin\python.exe Installing distribute....................................................................................................................................................................................done. C:\lib\python\venv\bazaar (bazaar):> easy_install bzr Searching for bzr Reading http://pypi.python.org/simple/bzr/ Reading http://www.bazaar-vcs.org/ Reading http://bazaar-vcs.org/Download Reading https://launchpad.net/bzr/+download Reading http://www.bazaar-vcs.org/Download Best match: bzr 2.1.0rc1 Downloading http://launchpad.net/bzr/2.1/2.1.0rc1/+download/bzr-2.1.0rc1.tar.gz Processing bzr-2.1.0rc1.tar.gz Running bzr-2.1.0rc1\setup.py -q bdist_egg --dist-dir c:\temp\easy_install-sbzb8b\bzr-2.1.0rc1\egg-dist-tmp-4hd9_v_annotator_pyx.c Creating library build\temp.win32-2.6\Release\bzrlib\_annotator_pyx.lib and object build\temp.win32-2.6\Release\bzrlib\_annotator_pyx.exp_bencode_pyx.c Creating library build\temp.win32-2.6\Release\bzrlib\_bencode_pyx.lib and object build\temp.win32-2.6\Release\bzrlib\_bencode_pyx.exp_chunks_to_lines_pyx.c Creating library build\temp.win32-2.6\Release\bzrlib\_chunks_to_lines_pyx.lib and object build\temp.win32-2.6\Release\bzrlib\_chunks_to_lines_pyx.exp_groupcompress_pyx.c bzrlib/_groupcompress_pyx.c(1338) : warning C4018: '>' : signed/unsigned mismatch bzrlib/_groupcompress_pyx.c(1340) : warning C4018: '>' : signed/unsigned mismatch diff-delta.c bzrlib/diff-delta.c(959) : warning C4018: '>' : signed/unsigned mismatch bzrlib/diff-delta.c(966) : warning C4018: '<' : signed/unsigned mismatch Creating library build\temp.win32-2.6\Release\bzrlib\_groupcompress_pyx.lib and object build\temp.win32-2.6\Release\bzrlib\_groupcompress_pyx.exp_knit_load_data_pyx.c Creating library build\temp.win32-2.6\Release\bzrlib\_knit_load_data_pyx.lib and object build\temp.win32-2.6\Release\bzrlib\_knit_load_data_pyx.exp_known_graph_pyx.c Creating library build\temp.win32-2.6\Release\bzrlib\_known_graph_pyx.lib and object build\temp.win32-2.6\Release\bzrlib\_known_graph_pyx.exp_rio_pyx.c Creating library build\temp.win32-2.6\Release\bzrlib\_rio_pyx.lib and object build\temp.win32-2.6\Release\bzrlib\_rio_pyx.exp _dirstate_helpers_pyx.c Creating library build\temp.win32-2.6\Release\bzrlib\_dirstate_helpers_pyx.lib and object buil d\temp.win32-2.6\Release\bzrlib\_dirstate_helpers_pyx.exp C:\lib\python\venv\pyrex\lib\site-packages\pyrex-0.9.8.5-py2.6.egg\Pyrex\Compiler\Scanning.py:39: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 Creating lexicon... Done (0.05 seconds) error: Setup script exited with error: SandboxViolation: open('C:
    lib
    python
    venv
    pyrex
    lib
    site-packages
    pyrex-0.9.8.5-py2.6.egg
    Pyrex
    Compiler
    Lexicon.pickle', 'wb') {}

    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. (bazaar):>

  2. Mikko Ohtamaa
    • changed status to open

    I got another - trying to install Distribute to locally compiled Python 2.6 (not system wide) and looks like Distribute 0.6.10 still has this bug (I am not sure whether milestone 0.6.9 marked in this report is correct).

    easy_install distribute
    Searching for distribute
    Reading http://pypi.python.org/simple/distribute/
    Reading http://packages.python.org/distribute
    Best match: distribute 0.6.10
    Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz#md5=99fb4b3e4ef0861bba11aa1905e89fed
    Processing distribute-0.6.10.tar.gz
    Running distribute-0.6.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-TqN4Hr/distribute-0.6.10/egg-dist-tmp-ekumER
    Before install bootstrap.
    Scanning installed packages
    Setuptools installation detected at /srv/plone/mmaspecial/satchmo-py26/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg
    Egg installation
    Patching...
    Renaming /srv/plone/mmaspecial/satchmo-py26/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg into /srv/plone/mmaspecial/satchmo-py26/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg.OLD.1264717891.95
    error: SandboxViolation: mkdir('/srv/plone/mmaspecial/satchmo-py26/lib/python2.6/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.
    
  3. Joseph Tate

    The workaround does not work in a virtualenv:

    Renaming /usr/lib/python2.6/dist-packages/setuptools.egg-info into /usr/lib/python2.6/dist-packages/setuptools.egg-info.OLD.1289515398.42
    Traceback (most recent call last):
      File "setup.py", line 123, in <module>
        _before_install()
      File "/tmp/tmpcd0kYs/distribute-0.6.14/distribute_setup.py", line 348, in _before_install
        _fake_setuptools()
      File "/tmp/tmpcd0kYs/distribute-0.6.14/distribute_setup.py", line 402, in _fake_setuptools
        res = _remove_flat_installation(setuptools_location)
      File "/tmp/tmpcd0kYs/distribute-0.6.14/distribute_setup.py", line 222, in __no_sandbox
        return function(*args, **kw)
      File "/tmp/tmpcd0kYs/distribute-0.6.14/distribute_setup.py", line 273, in _remove_flat_installation
        patched = _patch_egg_dir(pkg_info)
      File "/tmp/tmpcd0kYs/distribute-0.6.14/distribute_setup.py", line 222, in __no_sandbox
        return function(*args, **kw)
      File "/tmp/tmpcd0kYs/distribute-0.6.14/distribute_setup.py", line 333, in _patch_egg_dir
        _rename_path(path)
      File "/tmp/tmpcd0kYs/distribute-0.6.14/distribute_setup.py", line 254, in _rename_path
        os.rename(path, new_name)
    OSError: [Errno 13] Permission denied
    

    I note that I have python-distribute installed in site-packages.

  4. Bernhard Reiter

    I'm also experiencing the situation with virtualenv (containing python 2.6) as described in comment 8, and it's currently preventing me from releasing a package of my own, so I'd highly appreciate a solution to this issue (and I'd be willing to do some testing etc.)

    This is on Ubuntu 10.10 (x86_64), with the system-wide setuptools installed from the Ubuntu repository (python-setuptools, version 0.6.14-3ubuntu1).

  5. tjelle

    I'm also having trouble when using virtualenv (cotaining python 2.7) on ubuntu 11.04.

    [pwd=~/projects/test/env/bin]
    bash-4.2$ ./easy_install paster
    Searching for paster
    Reading http://pypi.python.org/simple/paster/
    Reading https://github.com/crodjer/paster
    Best match: paster 0.7
    Downloading http://pypi.python.org/packages/source/p/paster/paster-0.7.tar.gz#md5=97cd1c27e1f98a2aa43dc43b1ddb3920
    Processing paster-0.7.tar.gz
    Running paster-0.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bXy0UT/paster-0.7/egg-dist-tmp-zUW4vY
    error: Setup script exited with error: SandboxViolation: open('/home/tolsson/paster.cfg', 'wb') {}
    
    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.
    
  6. James Mills

    Im' also getting the exact same problem:

    $ mkvirtualenv test
    New python executable in test/bin/python
    Installing setuptools............done.
    Installing pip...............done.
    Downloading/unpacking pytest-cov
      Downloading pytest-cov-1.6.tar.gz
      Running setup.py egg_info for package pytest-cov
    
    Downloading/unpacking pytest>=2.2.3 (from pytest-cov)
      Downloading pytest-2.3.4.zip (527kB): 527kB downloaded
      Running setup.py egg_info for package pytest
    
    Downloading/unpacking cov-core>=1.6 (from pytest-cov)
      Downloading cov-core-1.7.tar.gz
      Running setup.py egg_info for package cov-core
    
    Downloading/unpacking py>=1.4.12 (from pytest>=2.2.3->pytest-cov)
      Downloading py-1.4.13.tar.gz (189kB): 189kB downloaded
      Running setup.py egg_info for package py
    
    Downloading/unpacking coverage>=3.4 (from cov-core>=1.6->pytest-cov)
      Downloading coverage-3.6.tar.gz (232kB): 232kB downloaded
      Running setup.py egg_info for package coverage
    
        warning: no previously-included files matching '*.pyc' found anywhere in distribution
    Installing collected packages: pytest-cov, pytest, cov-core, py, coverage
      Running setup.py install for pytest-cov
    
      Running setup.py install for pytest
    
        Installing py.test script to /Users/johndoe/var/env/test/bin
        Installing py.test-2.7 script to /Users/johndoe/var/env/test/bin
      Running setup.py install for cov-core
    
    
        Wrote pth file for subprocess measurement to /Users/johndoe/var/env/test/lib/python2.7/site-packages/init_cov_core.pth
      Running setup.py install for py
    
      Running setup.py install for coverage
        building 'coverage.tracer' extension
        cc -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c coverage/tracer.c -o build/temp.macosx-10.8-x86_64-2.7/coverage/tracer.o
        cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/coverage/tracer.o -o build/lib.macosx-10.8-x86_64-2.7/coverage/tracer.so
    
        warning: no previously-included files matching '*.pyc' found anywhere in distribution
        Installing coverage2 script to /Users/johndoe/var/env/test/bin
        Installing coverage-2.7 script to /Users/johndoe/var/env/test/bin
        Installing coverage script to /Users/johndoe/var/env/test/bin
    Successfully installed pytest-cov pytest cov-core py coverage
    Cleaning up...
    (test)
    $ python setup.py install
    running install
    running bdist_egg
    running egg_info
    writing requirements to src/ccav.egg-info/requires.txt
    writing src/ccav.egg-info/PKG-INFO
    writing top-level names to src/ccav.egg-info/top_level.txt
    writing dependency_links to src/ccav.egg-info/dependency_links.txt
    writing entry points to src/ccav.egg-info/entry_points.txt
    reading manifest file 'src/ccav.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: manifest_maker: MANIFEST.in, line 1: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
    
    warning: manifest_maker: MANIFEST.in, line 2: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
    
    warning: manifest_maker: MANIFEST.in, line 3: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
    
    warning: manifest_maker: MANIFEST.in, line 4: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
    
    warning: no files found matching 'LICENSE'
    warning: no files found matching '.rst'
    warning: no files found matching '*.txt'
    writing manifest file 'src/ccav.egg-info/SOURCES.txt'
    installing library code to build/bdist.macosx-10.8-x86_64/egg
    running install_lib
    running build_py
    creating build/bdist.macosx-10.8-x86_64/egg
    creating build/bdist.macosx-10.8-x86_64/egg/ccav
    copying build/lib/ccav/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/ccav
    copying build/lib/ccav/main.py -> build/bdist.macosx-10.8-x86_64/egg/ccav
    creating build/bdist.macosx-10.8-x86_64/egg/ccav/tests
    copying build/lib/ccav/tests/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/ccav/tests
    copying build/lib/ccav/tests/conftest.py -> build/bdist.macosx-10.8-x86_64/egg/ccav/tests
    copying build/lib/ccav/tests/helpers.py -> build/bdist.macosx-10.8-x86_64/egg/ccav/tests
    copying build/lib/ccav/tests/main.py -> build/bdist.macosx-10.8-x86_64/egg/ccav/tests
    copying build/lib/ccav/tests/test_dummy.py -> build/bdist.macosx-10.8-x86_64/egg/ccav/tests
    copying build/lib/ccav/utils.py -> build/bdist.macosx-10.8-x86_64/egg/ccav
    creating build/bdist.macosx-10.8-x86_64/egg/fabfile
    copying build/lib/fabfile/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/fabfile
    copying build/lib/fabfile/docs.py -> build/bdist.macosx-10.8-x86_64/egg/fabfile
    copying build/lib/fabfile/utils.py -> build/bdist.macosx-10.8-x86_64/egg/fabfile
    creating build/bdist.macosx-10.8-x86_64/egg/tests
    copying build/lib/tests/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/tests
    copying build/lib/tests/conftest.py -> build/bdist.macosx-10.8-x86_64/egg/tests
    copying build/lib/tests/helpers.py -> build/bdist.macosx-10.8-x86_64/egg/tests
    copying build/lib/tests/main.py -> build/bdist.macosx-10.8-x86_64/egg/tests
    copying build/lib/tests/test_dummy.py -> build/bdist.macosx-10.8-x86_64/egg/tests
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/ccav/__init__.py to __init__.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/ccav/main.py to main.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/ccav/tests/__init__.py to __init__.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/ccav/tests/conftest.py to conftest.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/ccav/tests/helpers.py to helpers.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/ccav/tests/main.py to main.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/ccav/tests/test_dummy.py to test_dummy.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/ccav/utils.py to utils.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/fabfile/__init__.py to __init__.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/fabfile/docs.py to docs.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/fabfile/utils.py to utils.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/tests/__init__.py to __init__.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/tests/conftest.py to conftest.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/tests/helpers.py to helpers.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/tests/main.py to main.pyc
    byte-compiling build/bdist.macosx-10.8-x86_64/egg/tests/test_dummy.py to test_dummy.pyc
    creating build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
    installing scripts to build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
    running install_scripts
    running build_scripts
    creating build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
    copying build/scripts-2.7/asc2tif -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
    copying build/scripts-2.7/ccav -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
    copying build/scripts-2.7/clipmask.py -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
    copying build/scripts-2.7/genindexes -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
    copying build/scripts-2.7/getfeatures.py -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
    copying build/scripts-2.7/tileindex -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
    changing mode of build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts/asc2tif to 755
    changing mode of build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts/ccav to 755
    changing mode of build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts/clipmask.py to 755
    changing mode of build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts/genindexes to 755
    changing mode of build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts/getfeatures.py to 755
    changing mode of build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts/tileindex to 755
    copying src/ccav.egg-info/PKG-INFO -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
    copying src/ccav.egg-info/SOURCES.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
    copying src/ccav.egg-info/dependency_links.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
    copying src/ccav.egg-info/entry_points.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
    copying src/ccav.egg-info/requires.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
    copying src/ccav.egg-info/top_level.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
    zip_safe flag not set; analyzing archive contents...
    ccav.main: module references __file__
    ccav.tests.conftest: module references __file__
    ccav.tests.main: module references __file__
    tests.conftest: module references __file__
    tests.main: module references __file__
    creating 'dist/ccav-0.0.1dev-py2.7.egg' and adding 'build/bdist.macosx-10.8-x86_64/egg' to it
    removing 'build/bdist.macosx-10.8-x86_64/egg' (and everything under it)
    Processing ccav-0.0.1dev-py2.7.egg
    creating /Users/johndoe/var/env/test/lib/python2.7/site-packages/ccav-0.0.1dev-py2.7.egg
    Extracting ccav-0.0.1dev-py2.7.egg to /Users/johndoe/var/env/test/lib/python2.7/site-packages
    Adding ccav 0.0.1dev to easy-install.pth file
    Installing asc2tif script to /Users/johndoe/var/env/test/bin
    Installing ccav script to /Users/johndoe/var/env/test/bin
    Installing clipmask.py script to /Users/johndoe/var/env/test/bin
    Installing genindexes script to /Users/johndoe/var/env/test/bin
    Installing getfeatures.py script to /Users/johndoe/var/env/test/bin
    Installing tileindex script to /Users/johndoe/var/env/test/bin
    Installing ccav script to /Users/johndoe/var/env/test/bin
    
    Installed /Users/johndoe/var/env/test/lib/python2.7/site-packages/ccav-0.0.1dev-py2.7.egg
    Processing dependencies for ccav==0.0.1dev
    Searching for six
    Reading http://pypi.python.org/simple/six/
    Best match: six 1.3.0
    Downloading http://pypi.python.org/packages/source/s/six/six-1.3.0.tar.gz#md5=ec47fe6070a8a64c802363d2c2b1e2ee
    Processing six-1.3.0.tar.gz
    Running six-1.3.0/setup.py -q bdist_egg --dist-dir /var/folders/zt/j6blp64j68b8bxffh7ynxwkm0000gq/T/easy_install-7w847v/six-1.3.0/egg-dist-tmp-rkg_ya
    zip_safe flag not set; analyzing archive contents...
    Adding six 1.3.0 to easy-install.pth file
    
    Installed /Users/johndoe/var/env/test/lib/python2.7/site-packages/six-1.3.0-py2.7.egg
    Searching for PIL
    Reading http://pypi.python.org/simple/PIL/
    Reading http://www.pythonware.com/products/pil
    Reading http://effbot.org/zone/pil-changes-115.htm
    Reading http://effbot.org/downloads/#Imaging
    Best match: PIL 1.1.7
    Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
    Processing PIL-1.1.7.tar.gz
    Running PIL-1.1.7/setup.py -q bdist_egg --dist-dir /var/folders/zt/j6blp64j68b8bxffh7ynxwkm0000gq/T/easy_install-M_8fLe/PIL-1.1.7/egg-dist-tmp-7iOYFD
    WARNING: '' not a valid package name; please use only.-separated package names in setup.py
    --- using frameworks at /System/Library/Frameworks
    _imaging.c:3017:5: warning: incompatible pointer types initializing 'lenfunc' (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
          (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
        (inquiry) image_length, /*sq_length*/
        ^~~~~~~~~~~~~~~~~~~~~~
    _imaging.c:3077:5: warning: incompatible pointer types initializing 'lenfunc' (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
          (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
        (inquiry) NULL, /*mp_length*/
        ^~~~~~~~~~~~~~
    2 warnings generated.
    clang: warning: -framework Tcl: 'linker' input unused
    clang: warning: -framework Tk: 'linker' input unused
    clang: warning: -framework Tcl: 'linker' input unused
    clang: warning: -framework Tk: 'linker' input unused
    --------------------------------------------------------------------
    PIL 1.1.7 SETUP SUMMARY
    --------------------------------------------------------------------
    version       1.1.7
    platform      darwin 2.7.3 (default, Feb 25 2013, 15:08:30)
                  [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.24)]
    --------------------------------------------------------------------
    --- TKINTER support available
    --- JPEG support available
    --- ZLIB (PNG/ZIP) support available
    --- FREETYPE2 support available
    *** LITTLECMS support not available
    --------------------------------------------------------------------
    To add a missing option, make sure you have the required
    library, and set the corresponding ROOT variable in the
    setup.py script.
    
    To check the build, run the selftest.py script.
    zip_safe flag not set; analyzing archive contents...
    Image: module references __file__
    Adding PIL 1.1.7 to easy-install.pth file
    Installing pilconvert.py script to /Users/johndoe/var/env/test/bin
    Installing pildriver.py script to /Users/johndoe/var/env/test/bin
    Installing pilfile.py script to /Users/johndoe/var/env/test/bin
    Installing pilfont.py script to /Users/johndoe/var/env/test/bin
    Installing pilprint.py script to /Users/johndoe/var/env/test/bin
    
    Installed /Users/johndoe/var/env/test/lib/python2.7/site-packages/PIL-1.1.7-py2.7-macosx-10.8-x86_64.egg
    Searching for gdal
    Reading http://pypi.python.org/simple/gdal/
    Reading http://www.gdal.org
    Best match: GDAL 1.9.1
    Downloading http://pypi.python.org/packages/source/G/GDAL/GDAL-1.9.1.tar.gz#md5=60cb0e0b652dfb204e150bcb11190248
    Processing GDAL-1.9.1.tar.gz
    Running GDAL-1.9.1/setup.py -q bdist_egg --dist-dir /var/folders/zt/j6blp64j68b8bxffh7ynxwkm0000gq/T/easy_install-KEbnLg/GDAL-1.9.1/egg-dist-tmp-RcPqle
    extensions/gdal_wrap.cpp:2230:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                        res = SWIG_AddCast(res);
                        ~~~ ^              ~~~
    extensions/gdal_wrap.cpp:2233:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                        res = SWIG_AddCast(res);                
                        ~~~ ^              ~~~
    extensions/gdal_wrap.cpp:7220:31: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
            PyObject *item_list = PyMapping_Items( obj1 );
                                  ^
    /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7/abstract.h:1354:50: note: expanded from macro 'PyMapping_Items'
    #define PyMapping_Items(O) PyObject_CallMethod(O,"items",NULL)
                                                     ^
    extensions/gdal_wrap.cpp:21524:14: warning: explicitly assigning a variable of type 'void *' to itself [-Wself-assign]
      clientdata = clientdata;
      ~~~~~~~~~~ ^ ~~~~~~~~~~
    4 warnings generated.
    ld: warning: directory not found for option '-L../../.libs'
    extensions/gdalconst_wrap.c:2206:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                        res = SWIG_AddCast(res);
                        ~~~ ^              ~~~
    extensions/gdalconst_wrap.c:2209:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                        res = SWIG_AddCast(res);                
                        ~~~ ^              ~~~
    extensions/gdalconst_wrap.c:2879:14: warning: explicitly assigning a variable of type 'void *' to itself [-Wself-assign]
      clientdata = clientdata;
      ~~~~~~~~~~ ^ ~~~~~~~~~~
    3 warnings generated.
    ld: warning: directory not found for option '-L../../.libs'
    extensions/osr_wrap.cpp:2230:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                        res = SWIG_AddCast(res);
                        ~~~ ^              ~~~
    extensions/osr_wrap.cpp:2233:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                        res = SWIG_AddCast(res);                
                        ~~~ ^              ~~~
    extensions/osr_wrap.cpp:3026:10: warning: explicitly assigning a variable of type 'PyObject *' (aka '_object *') to itself [-Wself-assign]
        self = self;
        ~~~~ ^ ~~~~
    extensions/osr_wrap.cpp:3027:10: warning: explicitly assigning a variable of type 'PyObject *' (aka '_object *') to itself [-Wself-assign]
        args = args;
        ~~~~ ^ ~~~~
    extensions/osr_wrap.cpp:13108:14: warning: explicitly assigning a variable of type 'void *' to itself [-Wself-assign]
      clientdata = clientdata;
      ~~~~~~~~~~ ^ ~~~~~~~~~~
    extensions/osr_wrap.cpp:2981:14: warning: unused function 'GDALPythonObjectToCStr' [-Wunused-function]
    static char* GDALPythonObjectToCStr(PyObject* pyObject, int* pbToFree)
                 ^
    extensions/osr_wrap.cpp:3011:13: warning: unused function 'GDALPythonFreeCStr' [-Wunused-function]
    static void GDALPythonFreeCStr(void* ptr, int bToFree)
                ^
    7 warnings generated.
    ld: warning: directory not found for option '-L../../.libs'
    extensions/ogr_wrap.cpp:2230:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                        res = SWIG_AddCast(res);
                        ~~~ ^              ~~~
    extensions/ogr_wrap.cpp:2233:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                        res = SWIG_AddCast(res);                
                        ~~~ ^              ~~~
    extensions/ogr_wrap.cpp:20003:14: warning: explicitly assigning a variable of type 'void *' to itself [-Wself-assign]
      clientdata = clientdata;
      ~~~~~~~~~~ ^ ~~~~~~~~~~
    3 warnings generated.
    ld: warning: directory not found for option '-L../../.libs'
    Adding GDAL 1.9.1 to easy-install.pth file
    
    Installed /Users/johndoe/var/env/test/lib/python2.7/site-packages/GDAL-1.9.1-py2.7-macosx-10.8-x86_64.egg
    Searching for fiona
    Reading http://pypi.python.org/simple/fiona/
    Reading http://github.com/Toblerity/Fiona
    Reading http://github.com/sgillies/fiona
    Best match: Fiona 0.12.1
    Downloading http://pypi.python.org/packages/source/F/Fiona/Fiona-0.12.1.tar.gz#md5=0ab77c67021d331ecb2f277ef16cf74c
    Processing Fiona-0.12.1.tar.gz
    Running Fiona-0.12.1/setup.py -q bdist_egg --dist-dir /var/folders/zt/j6blp64j68b8bxffh7ynxwkm0000gq/T/easy_install-owtZ4T/Fiona-0.12.1/egg-dist-tmp-NGR9Qe
    src/fiona/ogrext.c:7422:17: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types]
        __pyx_v_key = OGR_Fld_GetNameRef(__pyx_v_fdefn);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/fiona/ogrext.c:7639:23: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types]
              __pyx_v_val = OGR_F_GetFieldAsString(__pyx_v_feature, __pyx_v_i);
                          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/fiona/ogrext.c:10517:16: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types]
      __pyx_v_name = OGR_Dr_GetName(__pyx_v_cogr_driver);
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/fiona/ogrext.c:10797:23: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types]
        __pyx_v_key_bytes = OGR_Fld_GetNameRef(__pyx_v_cogr_fielddefn);
                          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/fiona/ogrext.c:11834:62: warning: incompatible pointer types passing '__pyx_t_5fiona_6ograpi_OGREnvelope *'
          (aka 'struct __pyx_t_5fiona_6ograpi_OGREnvelope *') to parameter of type 'OGREnvelope *' [-Wincompatible-pointer-types]
      __pyx_v_result = OGR_L_GetExtent(__pyx_v_self->cogr_layer, (&__pyx_v_extent), 1);
                                                                 ^~~~~~~~~~~~~~~~~
    /usr/local/Cellar/gdal/1.9.2/include/ogr_api.h:364:57: note: passing argument to parameter here
    OGRErr CPL_DLL OGR_L_GetExtent( OGRLayerH, OGREnvelope *, int );
                                                            ^
    src/fiona/ogrext.c:7044:18: warning: unused function '__pyx_f_5fiona_6ogrext_geometry' [-Wunused-function]
    static PyObject *__pyx_f_5fiona_6ogrext_geometry(void *__pyx_v_geom) {
                     ^
    6 warnings generated.
    zip_safe flag not set; analyzing archive contents...
    Adding Fiona 0.12.1 to easy-install.pth file
    
    Installed /Users/johndoe/var/env/test/lib/python2.7/site-packages/Fiona-0.12.1-py2.7-macosx-10.8-x86_64.egg
    Searching for ujson
    Reading http://pypi.python.org/simple/ujson/
    Reading https://github.com/jskorpan/ultrajson
    Reading http://www.esn.me
    Reading https://github.com/esnme/ultrajson
    Reading http://github.com/esnme/ultrajson
    Best match: ujson 1.30
    Downloading http://pypi.python.org/packages/source/u/ujson/ujson-1.30.zip#md5=cddd818b4602552281e31a447784113f
    Processing ujson-1.30.zip
    Running ujson-1.30/setup.py -q bdist_egg --dist-dir /var/folders/zt/j6blp64j68b8bxffh7ynxwkm0000gq/T/easy_install-q7GEM1/ujson-1.30/egg-dist-tmp-07Yoz8
    In file included from ./python/objToJSON.c:41:
    ./lib/ultrajson.h:118:9: warning: '__LITTLE_ENDIAN__' macro redefined
    #define __LITTLE_ENDIAN__
            ^
    <built-in>:139:9: note: previous definition is here
    #define __LITTLE_ENDIAN__ 1
            ^
    ./python/objToJSON.c:98:14: warning: unused function 'PyIntToINT32' [-Wunused-function]
    static void *PyIntToINT32(JSOBJ _obj, JSONTypeContext *tc, void *outValue, size_t *_outLen)
                 ^
    2 warnings generated.
    In file included from ./python/JSONtoObj.c:39:
    ./lib/ultrajson.h:118:9: warning: '__LITTLE_ENDIAN__' macro redefined
    #define __LITTLE_ENDIAN__
            ^
    <built-in>:139:9: note: previous definition is here
    #define __LITTLE_ENDIAN__ 1
            ^
    1 warning generated.
    In file included from ./lib/ultrajsonenc.c:38:
    ./lib/ultrajson.h:118:9: warning: '__LITTLE_ENDIAN__' macro redefined
    #define __LITTLE_ENDIAN__
            ^
    <built-in>:139:9: note: previous definition is here
    #define __LITTLE_ENDIAN__ 1
            ^
    ./lib/ultrajsonenc.c:130:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR INLINE_PREFIX void FASTCALL_MSVC Buffer_AppendShortHexUnchecked (char *outputOffset, unsigned short value)
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsonenc.c:446:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR INLINE_PREFIX void FASTCALL_MSVC strreverse(char* begin, char* end)
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    3 warnings generated.
    In file included from ./lib/ultrajsondec.c:38:
    ./lib/ultrajson.h:118:9: warning: '__LITTLE_ENDIAN__' macro redefined
    #define __LITTLE_ENDIAN__
            ^
    <built-in>:139:9: note: previous definition is here
    #define __LITTLE_ENDIAN__ 1
            ^
    ./lib/ultrajsondec.c:66:58: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    JSOBJ FASTCALL_MSVC decode_any( struct DecoderState *ds) FASTCALL_ATTR;
                                                             ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:90:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decodePreciseFloat(struct DecoderState *ds)
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:107:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_numeric ( struct DecoderState *ds)
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:182:18: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (intValue < 0)
            ~~~~~~~~ ^ ~
    ./lib/ultrajsondec.c:242:18: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (intValue < 0)
            ~~~~~~~~ ^ ~
    ./lib/ultrajsondec.c:304:18: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (intValue < 0)
            ~~~~~~~~ ^ ~
    ./lib/ultrajsondec.c:316:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_true ( struct DecoderState *ds) 
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:336:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_false ( struct DecoderState *ds) 
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:360:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_null ( struct DecoderState *ds) 
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:380:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR void FASTCALL_MSVC SkipWhitespace(struct DecoderState *ds) 
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:433:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds)
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:669:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_array( struct DecoderState *ds)
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:726:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_object( struct DecoderState *ds)
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:799:1: warning: calling convention 'fastcall' ignored for this target [-Wignored-attributes]
    FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_any(struct DecoderState *ds)
    ^
    ./lib/ultrajson.h:105:38: note: expanded from macro 'FASTCALL_ATTR'
    #define FASTCALL_ATTR __attribute__((fastcall))
                                         ^
    ./lib/ultrajsondec.c:76:13: warning: unused function 'ClearError' [-Wunused-function]
    static void ClearError( struct DecoderState *ds)
                ^
    16 warnings generated.
    zip_safe flag not set; analyzing archive contents...
    Adding ujson 1.30 to easy-install.pth file
    
    Installed /Users/johndoe/var/env/test/lib/python2.7/site-packages/ujson-1.30-py2.7-macosx-10.8-x86_64.egg
    Searching for numpy
    Reading http://pypi.python.org/simple/numpy/
    Reading http://numpy.scipy.org
    Reading http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103
    Reading http://numeric.scipy.org
    Reading http://www.numpy.org
    Reading http://sourceforge.net/projects/numpy/files/NumPy/
    Best match: numpy 1.7.1
    Downloading http://pypi.python.org/packages/source/n/numpy/numpy-1.7.1.zip#md5=9a72db3cad7a6286c0d22ee43ad9bc6c
    Processing numpy-1.7.1.zip
    Running numpy-1.7.1/setup.py -q bdist_egg --dist-dir /var/folders/zt/j6blp64j68b8bxffh7ynxwkm0000gq/T/easy_install-5Fi2h6/numpy-1.7.1/egg-dist-tmp-J1ZVCL
    Running from numpy source directory.
    error: SandboxViolation: open('/dev/null', '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.
    

    Versions of things:

    $ pip freeze
    Fiona==0.12.1
    GDAL==1.9.1
    PIL==1.1.7
    ccav==0.0.1dev
    cov-core==1.7
    coverage==3.6
    py==1.4.13
    pytest==2.3.4
    pytest-cov==1.6
    six==1.3.0
    ujson==1.30
    wsgiref==0.1.2
    
    $ python --version
    Python 2.7.3
    
  7. Jason R. Coombs

    This ticket has gone on for years because it appears to match many manifestations of the SandboxViolation, which may be triggered in a number of ways. The title and original description were resolved.

    If there are additional issues with SandboxViolations, please consider filing a new ticket with setuptools describing what happened to trigger the error in what environment.

  8. Log in to comment