<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body >Hi Frank,<div><br></div><div>I have actually coded a fix that works with python 2.5. I gave it to Andy to have a look at, so we might get a permanent fix and compatability for python 2.6.</div><div><br></div><div>After all I am doing my EPR work with Rivet, so I actually want a version that works flawlessly on my lxcluster. ;)</div><div><br></div><div>Cheers,</div><div>Markus</div><br><br><div>-------- Original message --------</div><div>From: Frank Siegert <frank.siegert@cern.ch> </div><div>Date:04/07/2014 16:35 (GMT+01:00) </div><div>To: Andy Buckley <andy.buckley@cern.ch> </div><div>Cc: Markus Radziej <radziej@physik.rwth-aachen.de>,Rivet <rivet@projects.hepforge.org> </div><div>Subject: Re: [Rivet] Check Python Version in Bootstrap </div><div><br></div>Hi all,<br><br>actually for that issue I have recently committed a fix/workaround to<br>the repository:<br>https://rivet.hepforge.org/trac/changeset/a8c29394d2ba9f1c1ca8b6f71f06f976351e1e38/<br><br>Until the next release you could patch your make-plots file accordingly.<br><br>Cheers,<br>Frank<br><br><br><br>On 4 July 2014 14:43, Andy Buckley <andy.buckley@cern.ch> wrote:<br>> Hi Markus,<br>><br>> Thanks for the report -- I wasn't aware that that function was not<br>> available in Python 2.6. We do want to be 2.6 compatible so I will<br>> rewrite that for the next release. We might also add a minimal Python<br>> version check into the bootstrap -- thanks for the suggestion.<br>><br>> I hope you can find a workaround for now, e.g. make a local make-plots<br>> script using Py2.6-compatible functions. If you do that, please let us<br>> know and we'll merge it and credit you!<br>><br>> Andy<br>><br>><br>> On 04/07/14 13:21, Markus Radziej wrote:<br>>> Hi,<br>>><br>>> I discovered, that in Rivet 2.1.2 in the make-plots executable python<br>>> script, in the function try_cmd(args) you attempt to use<br>>> subprocess.check_output(...). This lead to an error while trying to<br>>> generate plots on the lxcluster I am working on. After some debugging, I<br>>> found out that this routine was implemented in python 2.7 and I am<br>>> running python 2.6.<br>>><br>>> I think it would be best to check for a minimum python version in the<br>>> bootstrap, don't you agree?<br>>><br>>> Cheers,<br>>> Markus Radziej<br>>> _______________________________________________<br>>> Rivet mailing list<br>>> Rivet@projects.hepforge.org<br>>> https://www.hepforge.org/lists/listinfo/rivet<br>><br>><br>> --<br>> Dr Andy Buckley, Royal Society University Research Fellow<br>> Particle Physics Expt Group, University of Glasgow / PH Dept, CERN<br>> _______________________________________________<br>> Rivet mailing list<br>> Rivet@projects.hepforge.org<br>> https://www.hepforge.org/lists/listinfo/rivet<br></body>