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

Joshua Boverhof JRBoverhof at lbl.gov
Sun Oct 22 01:24:06 CEST 2006

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/ 
Processing 4Suite-XML-1.0.zip
Running 4Suite-XML-1.0/setup.py -q bdist_egg --dist-dir /tmp/ 
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.

So setuptools isn't allowing 4Suite to access the random number  
generator during build/installation.  I can easily subvert this, in  
case anyone else just wants to make this work:

def main():
     from setuptools import sandbox
     sandbox.DirectorySandbox._ok = lambda self,path: True


Of course I'd like a better way of doing this, maybe I missed  
something in the setuptools docs on configuration?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2526 bytes
Desc: not available
Url : http://mail.python.org/pipermail/distutils-sig/attachments/20061021/62b3a9b5/attachment.bin 

More information about the Distutils-SIG mailing list