<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Andy,<div class=""><br class=""></div><div class="">thanks for following up. Much appreciated - good to know it's not just me!</div><div class="">I've not much experience of the guts of the code which does the zipped code reading, but I can try to dig into it and see if anything is difference between the yoda and rivet implementation.</div><div class="">Let me know if you get anywhere before I do,</div><div class=""><br class=""></div><div class="">Louie</div><div class=""><br class=""></div><div class="">ps:</div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size: large;">it was definitely working at the end of last year,</div></div></blockquote><div class="">serves me right delaying doing this study for so long haha!</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 25 Apr 2018, at 10:45, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" class="">andy.buckley@cern.ch</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:large">Hmm, I'm seeing the same problem now. This is *very* strange -- it was definitely working at the end of last year, and the equivalent code in Rivet is still 100% working for reading zipped HepMC files. Looking into it, but with limited time: it'd be good to get multiple eyes on this, if possible.</div><div class="gmail_default" style="font-size:large"><br class=""></div><div class="gmail_default" style="font-size:large">Andy</div><div class="gmail_default" style="font-size:large"><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 23 April 2018 at 14:58, Corpe, Louie <span dir="ltr" class=""><<a href="mailto:l.corpe@ucl.ac.uk" target="_blank" class="">l.corpe@ucl.ac.uk</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi Andy,<div class=""><br class=""></div><div class="">thanks for the suggestion. </div><div class="">It doesn't seem there is anything bad related to gzip or lib in the YODA config.log...</div><span class="">(Everything looks like this [1] which looks largely fine).<br class=""></span><span class="">There are some other errors regarding a compiler being c++11 or not, but I can't tell if this was problematic, given that everything appears to have compiled ok in the end.<br class=""></span><span class="">I've put the config.log here in case you checked : /afs/<a href="http://cern.ch/user/l/lcorpe/public/RivetZippedIO/config.log" target="_blank" class="">cern.ch/user/l/lcorpe/<wbr class="">public/RivetZippedIO/config.<wbr class="">log</a><br class=""><br class=""></span><span class="">Still, maybe I went wrong in the installation.. I am on lxplus7, and followed the /2.6.0/rivet-bootstrap-lcg workflow..<br class=""></span><span class="">Perhaps I should try on lxplus6...</span><span class=""><br class=""><br class="">any other thoughts or suggestions welcome.<br class=""><br class=""></span><span class="">All the best,</span><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Louie<br class=""></span><div class=""><div class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">[1]</div><div class=""><div class="">configure:17164: checking zlib.h usability</div><div class="">configure:17164: /cvmfs/<a href="http://sft.cern.ch/lcg/releases/LCG_85/gcc/4.9.3/x86_64-slc6/bin/gcc" target="_blank" class="">sft.cern.ch/lcg/<wbr class="">releases/LCG_85/gcc/4.9.3/x86_<wbr class="">64-slc6/bin/gcc</a> -c -g -O2 -DNDEBUG -I/usr/include conftest.c >&5</div><div class="">configure:17164: $? = 0</div><div class="">configure:17164: result: yes</div></div><div class=""><div class="h5"><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 23 Apr 2018, at 14:04, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" target="_blank" class="">andy.buckley@cern.ch</a>> wrote:</div><br class="m_-5278294634284480747Apple-interchange-newline"><div class=""><div class="">Hi Louie,</div><br class=""><div class="">Are you sure that YODA built with gzip support? IIRC it needs to be able to find the libZ library at compile time. Have a look in your YODA config.log</div><br class=""><div class="">Andy</div><br class=""><div class=""><u class=""></u><div class=""><table cellpadding="0" cellspacing="0" class=""><tbody class=""><tr class=""><td colspan="2" class=""><div style="padding-bottom:15px" class=""><div class=""><strong class="">Dr Andy Buckley, Lecturer / Royal Society University Research Fellow</strong></div><div class="">Particle Physics Experiment Group, University of Glasgow</div></div></td></tr><tr class=""><td style="vertical-align:top" class=""></td><td class=""><div style="font-size:0.9em;white-space:nowrap;border-left:2px solid gray;margin-left:20px;padding-left:20px" class=""><div class=""><div class=""></div><div class=""></div></div></div></td></tr></tbody></table></div><u class=""></u></div><div class="m_-5278294634284480747gmail_quote_attribution">On Apr 23 2018, at 1:59 pm, Corpe, Louie <<a href="mailto:l.corpe@ucl.ac.uk" target="_blank" class="">l.corpe@ucl.ac.uk</a>> wrote:</div><blockquote class=""><br class=""><div class=""><div class="">Hi Riveters,</div><br class=""><br class=""><div class="">I'm trying to use the zipped i/o functionality introduced in Rivet 2.6.0 / Yoda 1.7.0.</div><div class="">I can't seem to get it working: is there an example of how to do this somewhere?</div><br class=""><div class="">I've included a minimal example [1]. Please let me know what I'm doing wrong!</div><div class="">The files I used in [1] can be found on my public on lxplus: /afs/<a href="http://cern.ch/user/l/lcorpe/public/RivetZippedIO/examples/" target="_blank" class="">cern.ch/user/l/lcorpe/<wbr class="">public/RivetZippedIO/examples/</a></div><br class=""><div class="">All the best and thanks in advance !</div><br class=""><br class=""><div class="">Louie</div><br class=""><br class=""><div class="">[1]</div><div class="">[lcorpe@lxplus005 scratch]$ gzip -c out1028_DSIDxxx.MEWeight.yoda > examples/out1028_DSIDxxx.<wbr class="">MEWeight.yoda.gz</div><div class="">[lcorpe@lxplus005 scratch]$ python</div><div class="">Python 2.7.5 (default, Aug 4 2017, 00:39:18)</div><div class="">[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2</div><div class="">Type "help", "copyright", "credits" or "license" for more information.</div><blockquote class=""><blockquote class=""><blockquote class=""><div class="">import yoda as y</div><div class="">a= y.read("examples/out1028_<wbr class="">DSIDxxx.MEWeight.yoda.gz")</div></blockquote></blockquote></blockquote><div class="">Traceback (most recent call last):</div><div class="">File "<stdin>", line 1, in <module></div><div class="">File "yoda/include/IO.pyx", line 107, in yoda.core.read (/afs/<a href="http://cern.ch/user/l/lcorpe/scratch/rivet/YODA-1.7.0/pyext/yoda/core.cpp:85809" target="_blank" class="">cern.ch/user/l/lcorpe/<wbr class="">scratch/rivet/YODA-1.7.0/<wbr class="">pyext/yoda/core.cpp:85809</a>)</div><div class="">UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)</div><blockquote class=""><blockquote class=""><blockquote class=""></blockquote></blockquote></blockquote><div class="">______________________________<wbr class="">_________________</div><div class="">Rivet mailing list</div><div class=""><a href="mailto:Rivet@projects.hepforge.org" target="_blank" class="">Rivet@projects.hepforge.org</a></div><div class=""><a href="https://www.hepforge.org/lists/listinfo/rivet" target="_blank" class="">https://www.hepforge.org/<wbr class="">lists/listinfo/rivet</a></div></div></blockquote></div></blockquote></div><br class=""></div></div></div></div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature">Dr Andy Buckley, Lecturer / Royal Society University Research Fellow<br class="">Particle Physics Expt Group, University of Glasgow<br class=""></div>
</div>
</div></blockquote></div><br class=""></div></body></html>