<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><signature id="initial"><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></signature></div><div class="gmail_quote_attribution">On Apr 23 2018, at 1:59 pm, Corpe, Louie <l.corpe@ucl.ac.uk> 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/cern.ch/user/l/lcorpe/public/RivetZippedIO/examples/</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.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_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/cern.ch/user/l/lcorpe/scratch/rivet/YODA-1.7.0/pyext/yoda/core.cpp:85809)</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>_______________________________________________</div><div>Rivet mailing list</div><div>Rivet@projects.hepforge.org</div><div>https://www.hepforge.org/lists/listinfo/rivet</div></div></blockquote>