[Distutils] [4suite] Re: SandboxViolation: open('/dev/urandom', 0) {}

Phillip J. Eby pje at telecommunity.com
Tue Oct 24 20:38:27 CEST 2006


At 06:36 PM 10/21/2006 -0600, Jeremy Kloth wrote:
>On Saturday 21 October 2006 5:39 pm, Bob Ippolito wrote:
> > On 10/21/06, Joshua Boverhof <JRBoverhof at lbl.gov> wrote:
> > > 4Suite is listed as one of my project's setuptools
> > > "install_requires", but when I attempt to install on Mac OSX-10.4.8
> > > using python-2.5 I get an error:
> > >
> > >
> > > """
> > > Reading http://www.python.org/pypi/4Suite-XML/1.0
> > > Best match: 4Suite-XML 1.0
> > > Downloading http://cheeseshop.python.org/packages/source/4/4Suite-XML/
> > > 4Suite-XML-1.0.zip#md5=0b61c214cd03ecb2f673b52b316c0a84
> > > Processing 4Suite-XML-1.0.zip
> > > Running 4Suite-XML-1.0/setup.py -q bdist_egg --dist-dir /tmp/
> > > easy_install-_X4a0x/4Suite-XML-1.0/egg-dist-tmp-uBG5YU
> > > error: Setup script exited with error: SandboxViolation: open('/dev/
> > > urandom', 0) {}
> > >
> > > 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.
> > > """
>
>This is a bug in setuptools' sandboxing.  This is os.urandom() using 
>*os.open*
>which uses integer constants not character constants.

Actually, that's not the issue; it's just that os.open was prohibited from 
accessing any paths outside the sandbox, regardless of flags.  I've fixed 
this in the SVN version now, and it'll go out in the 0.6c4 release.



More information about the Distutils-SIG mailing list