<div dir="ltr"><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></div><div class="gmail_default" style="font-size:large">Andy</div><div class="gmail_default" style="font-size:large"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 April 2018 at 14:58, Corpe, Louie <span dir="ltr"><<a href="mailto:l.corpe@ucl.ac.uk" target="_blank">l.corpe@ucl.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Andy,<div><br></div><div>thanks for the suggestion. </div><div>It doesn't seem there is anything bad related to gzip or lib in the YODA config.log...</div><span>(Everything looks like this [1] which looks largely fine).<br></span><span>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></span><span>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">cern.ch/user/l/lcorpe/<wbr>public/RivetZippedIO/config.<wbr>log</a><br><br></span><span>Still, maybe I went wrong in the installation.. I am on lxplus7, and followed the /2.6.0/rivet-bootstrap-lcg workflow..<br></span><span>Perhaps I should try on  lxplus6...</span><span><br><br>any other thoughts or suggestions welcome.<br><br></span><span>All the best,</span><div><span><br></span></div><div><span>Louie<br></span><div><div><br></div></div><div><br></div><div><br></div><div>[1]</div><div><div>configure:17164: checking zlib.h usability</div><div>configure:17164: /cvmfs/<a href="http://sft.cern.ch/lcg/releases/LCG_85/gcc/4.9.3/x86_64-slc6/bin/gcc" target="_blank">sft.cern.ch/lcg/<wbr>releases/LCG_85/gcc/4.9.3/x86_<wbr>64-slc6/bin/gcc</a> -c -g -O2  -DNDEBUG -I/usr/include conftest.c >&5</div><div>configure:17164: $? = 0</div><div>configure:17164: result: yes</div></div><div><div class="h5"><div><br><div><blockquote type="cite"><div>On 23 Apr 2018, at 14:04, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>> wrote:</div><br class="m_-5278294634284480747Apple-interchange-newline"><div><div>Hi Louie,</div><br><div>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><div>Andy</div><br><div><u></u><div><table cellpadding="0" cellspacing="0"><tbody><tr><td colspan="2"><div style="padding-bottom:15px"><div><strong>Dr Andy Buckley, Lecturer / Royal Society University Research Fellow</strong></div><div>Particle Physics Experiment Group, University of Glasgow</div></div></td></tr><tr><td style="vertical-align:top"></td><td><div style="font-size:0.9em;white-space:nowrap;border-left:2px solid gray;margin-left:20px;padding-left:20px"><div><div></div><div></div></div></div></td></tr></tbody></table></div><u></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">l.corpe@ucl.ac.uk</a>> wrote:</div><blockquote><br><div><div>Hi Riveters,</div><br><br><div>I'm trying to use the zipped i/o functionality introduced in Rivet 2.6.0 / Yoda 1.7.0.</div><div>I can't seem to get it working: is there an example of how to do this somewhere?</div><br><div>I've included a minimal example [1]. Please let me know what I'm doing wrong!</div><div>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">cern.ch/user/l/lcorpe/<wbr>public/RivetZippedIO/examples/</a></div><br><div>All the best and thanks in advance !</div><br><br><div>Louie</div><br><br><div>[1]</div><div>[lcorpe@lxplus005 scratch]$ gzip -c out1028_DSIDxxx.MEWeight.yoda > examples/out1028_DSIDxxx.<wbr>MEWeight.yoda.gz</div><div>[lcorpe@lxplus005 scratch]$ python</div><div>Python 2.7.5 (default, Aug 4 2017, 00:39:18)</div><div>[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><blockquote><blockquote><blockquote><div>import yoda as y</div><div>a= y.read("examples/out1028_<wbr>DSIDxxx.MEWeight.yoda.gz")</div></blockquote></blockquote></blockquote><div>Traceback (most recent call last):</div><div>File "<stdin>", line 1, in <module></div><div>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">cern.ch/user/l/lcorpe/<wbr>scratch/rivet/YODA-1.7.0/<wbr>pyext/yoda/core.cpp:85809</a>)</div><div>UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)</div><blockquote><blockquote><blockquote></blockquote></blockquote></blockquote><div>______________________________<wbr>_________________</div><div>Rivet mailing list</div><div><a href="mailto:Rivet@projects.hepforge.org" target="_blank">Rivet@projects.hepforge.org</a></div><div><a href="https://www.hepforge.org/lists/listinfo/rivet" target="_blank">https://www.hepforge.org/<wbr>lists/listinfo/rivet</a></div></div></blockquote></div></blockquote></div><br></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Dr Andy Buckley, Lecturer / Royal Society University Research Fellow<br>Particle Physics Expt Group, University of Glasgow<br></div>
</div>