[Distutils] Sandbox violation help

Dave Peterson dpeterson at enthought.com
Thu Dec 6 21:15:15 CET 2007

A user is trying to install Enthought's ETS projects on a Gentoo system 
and getting the following error message.   I'm not seeing it on my 
systems, but then I'm not running Gentoo.   Can anyone give me a clue as 
to what might be happening or how to go about determining what is 
happening?  The error message has me really confused since 
'temp/tmpTTJH2x/zZe82A' doesn't really give me much to go on as to what 
is being attempted outside of the sandbox.  It doesn't help that one 
line makes it clear something is going on with a tmp directory for 
enthought.traits but then after that is the error about a tmp dir for 
enthought.tvtk.  How'd we get back to enthought.tvtk in the middle of 
the enthought.traits install?

-- Dave

PS: 'enthought.traits' is one of the install_requires dependencies of 
'enthought.tvtk' so easy_install probably just chained to building and 
installing it after enthought.tvtk, right?

PPS: I do believe other users have reported the same issues on other 
systems but we've never quite figured out what the cause is.  IIRC, 
telling them to manually download the source tarball and do a 'python 
setup.py install' seems to work just fine.

> Processing enthought.traits-2.0.1b1.tar.gz
> Running enthought.traits-2.0.1b1/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-Edu8TK/enthought.traits-2.0.1b1/egg-dist-tmp-IIITHW
> error: Setup script exited with error: SandboxViolation:
> open('/tmp/easy_install-WZrKOz/enthought.tvtk-2.0.0b2/temp/tmpTTJH2x/zZe82A
> ', 131266, 384) {}
> 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.

More information about the Distutils-SIG mailing list