[TIP] Weird problem with Jenkins: ShiningPanda plugin and Tox, but not tox on its own...

Chris Withers chris at simplistix.co.uk
Tue Jul 3 07:57:31 PDT 2012


Olivier (and Holger since its Tox that's actually having the issue, but 
only in the context of a ShiningPanda run),

One quick followup, but all the other questions/comments in my previous 
mail still apply:

On 02/07/2012 20:00, Chris Withers wrote:
> - trying to re-order the Pythons on the master as you describe above
> resulted in the following stack trace when I hit the "Save" button:

Actually, this is a bug with another plugin that I've worked around:

https://issues.jenkins-ci.org/browse/JENKINS-13114?focusedCommentId=164850#comment-164850

So, having changed the order of the Pythons in
Manage Jenkins->Configure System so that 2.7 is first, things change a 
little, but not much:

http://jenkins.simplistix.co.uk/job/checker-tox/19/
http://jenkins.simplistix.co.uk/job/testfixtures-tox/63/

...the Python 2.6 on Linux runs are now working, but all the runs on Mac 
OS X and Py 2.5/Py 2.7 on Linux all still fail with the error:

[mac] $ <jenkins home>/shiningpanda/jobs/227e69c0/tools/bin/python -c 
"import tox; tox.cmdline();" -c tox.ini --recreate
<tox label> create: <jenkins 
home>/workspace/checker-tox/PYTHON/<version>/label/mac/.tox/<tox label>
<snip>
cmdargs=['<jenkins home>/shiningpanda/jobs/227e69c0/tools/bin/python', 
'<jenkins 
home>/shiningpanda/jobs/227e69c0/tools/lib/python2.7/site-packages/virtualenv.py', 
'--distribute', '<tox label>']
env={<snip>
'VIRTUAL_ENV': 
'/Users/Shared/Jenkins/Home/shiningpanda/jobs/227e69c0/tools',<snip>
'PATH': '/Users/Shared/Jenkins/Home/workspace/checker-tox/PYTHON/<python 
label>/label/mac/.tox/<tox 
label>/bin:/Users/Shared/Jenkins/Home/shiningpanda/jobs/227e69c0/tools/bin:/virtualenvs/py27/bin:/virtualenvs/py26/bin:/virtualenvs/py25/bin:/usr/bin:/bin:/usr/sbin:/sbin', 

<snip>
Using real prefix 
'/System/Library/Frameworks/Python.framework/Versions/<python label>'
New python executable in <tox label>/bin/python
Overwriting <tox label>/lib/python<python label>/distutils/__init__.py 
with new content
Traceback (most recent call last):
<snip>
IOError: [Errno 13] Permission denied: '<tox label>/lib/python<python 
label>/distutils/__init__.py'

I'm still left wondering why on earth (at a guess) distribute wants to 
overwrite distutils/__init__.py?! (but please bear in mind my answers 
about symlinks in my previous mail).

Also, this never used to happen, so what changed? Tox? Distribute?
I don't think the problem is actually ShiningPanda code since it started 
happening before I upgraded ShiningPanda, but I'm hoping you can help, 
or at least reproduce, as I'm at a loss...

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk





More information about the testing-in-python mailing list