[Rivet] Check Python Version in Bootstrap

David Bjergaard david.bjergaard at gmail.com
Fri Jul 4 18:19:47 BST 2014


For the record I've always installed python 2.7.7 in the same prefix as rivet and I've never had issues... Maybe adding a flag to the bootstrap to install a local version of python? Also if  specific versions of Python are required virtualenv maybe appropriate. I know this may be too heavy of a dependency though. 

    Dave

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


More information about the Rivet mailing list