I have a dependency on Cyclone in my setup.py file. When I run python setup.py develop (in a virtualenv) I get the following error: Unexpected error while writing cache file
Full output below.
Searching for cyclone==1.0-rc13
Reading http://pypi.python.org/simple/cyclone/
Reading http://cyclone.io/
Reading http://github.com/fiorix/cyclone/
Reading http://github.com/fiorix/cyclone
Best match: cyclone 1.0-rc13
Downloading http://pypi.python.org/packages/source/c/cyclone/cyclone-1.0-rc13.tar.gz#md5=6b7670a9912865d4eb0601eac5ca0363
Processing cyclone-1.0-rc13.tar.gz
Running cyclone-1.0-rc13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-HJ6ITW/cyclone-1.0-rc13/egg-dist-tmp-wmfvYj
package init file 'twisted/plugins/__init__.py' not found (or not a regular file)
zip_safe flag not set; analyzing archive contents...
cyclone.app: module references __file__
Unexpected error while writing cache file
Traceback (most recent call last):
File "/home/minion/minion/env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/sandbox.py", line 72, in run
return func()
File "/home/minion/minion/env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/sandbox.py", line 32, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 70, in <module>
list(getPlugins(IPlugin))
File "/home/minion/minion/env/local/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/plugin.py", line 209, in getPlugins
allDropins = getCache(package)
--- <exception caught here> ---
File "/home/minion/minion/env/local/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/plugin.py", line 181, in getCache
dropinPath.setContent(pickle.dumps(dropinDotCache))
File "/home/minion/minion/env/local/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/python/filepath.py", line 1247, in setContent
f = sib.open('w')
File "/home/minion/minion/env/local/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/python/filepath.py", line 775, in open
return self.create()
File "/home/minion/minion/env/local/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/python/filepath.py", line 1282, in create
fdint = os.open(self.path, _CREATE_FLAGS)
File "/home/minion/minion/env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/sandbox.py", line 231, in open
self._violation("os.open", file, flags, mode)
File "/home/minion/minion/env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/sandbox.py", line 185, in _violation
raise SandboxViolation(operation, args, kw)
setuptools.sandbox.SandboxViolation: SandboxViolation: os.open('/home/minion/minion/env/local/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/plugins/BRzD3HAWjLoz_1cBdropin.cache.new', 194, 511) {}
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.
Adding cyclone 1.0-rc13 to easy-install.pth file
Installed /home/minion/minion/env/lib/python2.7/site-packages/cyclone-1.0_rc13-py2.7.egg