[Rivet] No python3 versions of new Rivet/Yoda?

Ivan Razumov ivan.razumov at cern.ch
Wed Aug 15 15:46:55 BST 2018


Hi Frank, Andy,

thanks for the reply.

Ivan

On 08/15/18 14:28, Frank Siegert wrote:
> Hi Ivan, all,
>
> I have installed Rivet and Yoda on a system with Python3 (i.e. 
> /usr/bin/python is version 3.7) and it generally works. So there is no 
> lack of Python3 versions per se.
>
> But there are a few small remaining issues I noticed during some 
> simple tests:
>
> - rivet-mkhtml needs to get rid of a few '.encode("utf-8")' instances
> Here it's not completely clear to me whether this is backward 
> compatible to Python2.
>
> - bin/make-plots needs to be treated to a '2to3 -w make-plots' conversion.
> Same as above, but I think it should be fine.
>
> - there is an error in yodamerge where I'm not actually sure whether 
> it's a problem with Python3 or just a change in the YODA API:
> $ yodamerge Rivet.yoda Rivet1.yoda
> Traceback (most recent call last):
>   File "/usr/bin/yodamerge", line 274, in <module>
>     ao_out.points[i].setErrs(dim , (ep_i[var], em_i[var]),var)
>   File "include/Point.pyx", line 75, in yoda.core.Point.setErrs
>   File "stringsource", line 147, in 
> pair.from_py.__pyx_convert_pair_from_py_double__and_double
> TypeError: must be real number, not tuple
> YODA developers might be able to tell right away?
>
> So if you in Genser have some experience with Python2 vs. 3 
> maintenance and can provide advise on the backward compatibility etc 
> of e.g. the changes above (and further testing), then I'm happy to 
> follow up and dust off my (little) Mercurial knowledge to get the 
> remaining Python3 changes into the Rivet repo.
>
> Best,
> Frank
>
>
> On Tue, 14 Aug 2018 at 18:09, Andy Buckley <andy.buckley at cern.ch 
> <mailto:andy.buckley at cern.ch>> wrote:
>
>     Hi Ivan,
>
>     We won't be releasing/maintaining separate codebases, but I think
>     the libraries should now be Python3 compatible: Frank Siegert did
>     a lot of compatibility work and I think is using Py3 personally. I
>     noticed recently that we are still using optparse rather than
>     argparse for command-line option parsing in the scripts, but maybe
>     that has been worked around... I'll let him comment.
>
>     Cheers,
>     Andy
>
>     *Dr Andy Buckley, Senior Lecturer / Royal Society University
>     Research Fellow*
>     Particle Physics Experiment Group, University of Glasgow
>
>     	
>
>     On Aug 14 2018, at 4:34 pm, Ivan Razumov <ivan.razumov at cern.ch
>     <mailto:ivan.razumov at cern.ch>> wrote:
>
>
>
>         Dear Rivet developers,
>
>         we have noticed the lack of Python3 versions for the new
>         release of Rivet and Yoda. It this intentional (i.e. the code
>         is now compatible with both Python2 and Python3),
>         or they will be released later?
>
>         Thanks,
>         Ivan for the GENSER team
>         _______________________________________________
>         Rivet mailing list
>         Rivet at projects.hepforge.org <mailto:Rivet at projects.hepforge.org>
>         https://www.hepforge.org/lists/listinfo/rivet
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20180815/ef9e1c68/attachment.html>


More information about the Rivet mailing list