Permission Denied errors on Windows 7 with buildout 1.7.1
Hi All, I'm seeing this exception when running a particular buildout on Windows: C:\Jenkins\workspace\checker-buildout\aeb5917b>bin\buildout Develop: 'C:\\Jenkins\\workspace\\checker-buildout\\aeb5917b\\.' Installing py. Generated script 'C:\\Jenkins\\workspace\\checker-buildout\\aeb5917b\\bin\\checker'. Generated script 'C:\\Jenkins\\workspace\\checker-buildout\\aeb5917b\\bin\\tox'. Generated script 'C:\\Jenkins\\workspace\\checker-buildout\\aeb5917b\\bin\\tox-quickstart'. While: Installing py. An internal error occurred due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "c:\users\jenkins\.buildout\eggs\zc.buildout-1.7.1-py2.7.egg\zc\buildout\buildout.py", line 1866, in main getattr(buildout, command)(args) File "c:\users\jenkins\.buildout\eggs\zc.buildout-1.7.1-py2.7.egg\zc\buildout\buildout.py", line 625, in install installed_files = self[part]._call(recipe.install) File "c:\users\jenkins\.buildout\eggs\zc.buildout-1.7.1-py2.7.egg\zc\buildout\buildout.py", line 1345, in _call return f() File "c:\users\jenkins\.buildout\eggs\zc.recipe.egg-1.3.2-py2.7.egg\zc\recipe\egg\egg.py", line 173, in install return self._install(reqs, ws, scripts) File "c:\users\jenkins\.buildout\eggs\zc.recipe.egg-1.3.2-py2.7.egg\zc\recipe\egg\egg.py", line 195, in _install relative_paths=self._relative_paths File "c:\users\jenkins\.buildout\eggs\zc.buildout-1.7.1-py2.7.egg\zc\buildout\easy_install.py", line 1223, in scripts initialization, executable, arguments) File "c:\users\jenkins\.buildout\eggs\zc.buildout-1.7.1-py2.7.egg\zc\buildout\easy_install.py", line 1350, in _generate_scripts module_name, attrs, arguments, block_site=block_site)) File "c:\users\jenkins\.buildout\eggs\zc.buildout-1.7.1-py2.7.egg\zc\buildout\easy_install.py", line 1498, in _script return _write_script(dest, contents, 'script') File "c:\users\jenkins\.buildout\eggs\zc.buildout-1.7.1-py2.7.egg\zc\buildout\easy_install.py", line 1463, in _write_script open(exe, 'wb').write(new_data) IOError: [Errno 13] Permission denied: 'C:\\Jenkins\\workspace\\checker-buildout\\aeb5917b\\bin\\buildout.exe' This happens every time, on Python 2.5, 2.6 and 2.7. I've tried blowing the workspace away, makes no difference: http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.7,label=wi... http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.6,label=wi... http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.5,label=wi... Any idea what's going on here and how I can fix it? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
On 09/06/2013 23:39, Chris Withers wrote:
This happens every time, on Python 2.5, 2.6 and 2.7. I've tried blowing the workspace away, makes no difference:
http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.7,label=wi...
http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.6,label=wi...
http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.5,label=wi...
Forgot to say, the buildout in question is here: https://github.com/Simplistix/checker/blob/master/buildout.cfg cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
On 09/06/2013 23:43, Chris Withers wrote:
On 09/06/2013 23:39, Chris Withers wrote:
This happens every time, on Python 2.5, 2.6 and 2.7. I've tried blowing the workspace away, makes no difference:
http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.7,label=wi...
http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.6,label=wi...
http://jenkins.simplistix.co.uk/job/checker-buildout/114/PYTHON=2.5,label=wi...
Forgot to say, the buildout in question is here:
https://github.com/Simplistix/checker/blob/master/buildout.cfg
So, infuriatingly, I can't reproduce this on another Windows machine. I've tried blowing away the egg cache on the original machine, no joy, the error still occurs when the buildout is re-run. I'm stumped as to what the difference is that's making a difference here... Any help gratefully received! Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
On 10/06/2013 10:37, Chris Withers wrote:
I've tried blowing away the egg cache on the original machine, no joy, the error still occurs when the buildout is re-run.
I'm stumped as to what the difference is that's making a difference here...
Well, the failing machine generates a buildout-script.py that looks like this: #!"C:\Python27\python.exe" -S import sys sys.path[0:0] = [ 'C:\\Jenkins\\workspace\\checker-buildout\\aeb5917b\\parts\\buildout', ] import os path = sys.path[0] if os.environ.get('PYTHONPATH'): path = os.pathsep.join([path, os.environ['PYTHONPATH']]) os.environ['BUILDOUT_ORIGINAL_PYTHONPATH'] = os.environ.get('PYTHONPATH', '') os.environ['PYTHONPATH'] = path import site # imports custom buildout-generated site.py import zc.buildout.buildout if __name__ == '__main__': sys.exit(zc.buildout.buildout.main()) However, the identical machine that works generates this instead: #!"C:\Python27\python.exe" import sys sys.path[0:0] = [ 'h:\\checker', 'h:\\checker\\eggs\\tox-1.4.3-py2.7.egg', 'h:\\checker\\eggs\\zope.testing-4.1.2-py2.7.egg', 'h:\\checker\\eggs\\zc.recipe.egg-1.3.2-py2.7.egg', 'h:\\checker\\eggs\\zc.buildout-1.7.1-py2.7.egg', 'h:\\checker\\eggs\\testfixtures-3.0.0-py2.7.egg', 'h:\\checker\\eggs\\nose_cov-1.6-py2.7.egg', 'h:\\checker\\eggs\\nose_fixes-1.3-py2.7.egg', 'h:\\checker\\eggs\\nose-1.3.0-py2.7.egg', 'h:\\checker\\eggs\\manuel-1.7.2-py2.7.egg', 'h:\\checker\\eggs\\mock-1.0.1-py2.7.egg', 'h:\\checker\\eggs\\zope.dottedname-4.0.1-py2.7.egg', 'h:\\checker\\eggs\\mailinglogger-3.7.0-py2.7.egg', 'h:\\checker\\eggs\\execute-1.2-py2.7.egg', 'h:\\checker\\eggs\\argparse-1.2.1-py2.7.egg', 'h:\\checker\\eggs\\py-1.4.14-py2.7.egg', 'h:\\checker\\eggs\\virtualenv-1.9.1-py2.7.egg', 'h:\\checker\\eggs\\zope.interface-4.0.5-py2.7-win32.egg', 'h:\\checker\\eggs\\zope.exceptions-4.0.6-py2.7.egg', 'h:\\checker\\eggs\\setuptools-0.7.2-py2.7.egg', 'h:\\checker\\eggs\\cov_core-1.7-py2.7.egg', 'h:\\checker\\eggs\\six-1.3.0-py2.7.egg', 'h:\\checker\\eggs\\coverage-3.6-py2.7-win32.egg', ] import zc.buildout.buildout if __name__ == '__main__': sys.exit(zc.buildout.buildout.main()) Anyone know what could cause the different scripts to be generated? zc.recipe.egg and zc.buildout versions look identical on both machines... *sigh* Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Chris Withers
-
Chris Withers