<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Natalie’s suggestion appears to be the smoking gun. &nbsp;I’m able to import Nio now, and was able to open up a RAP GRIB2 file downloaded from NOMADS.</div><div class=""><br class=""></div><div class="">The original file I was attempting to open is throwing me an error and aborting. &nbsp;I’m not sure if pynio supports probability files, so I’ll take a closer look at that portion of the pynio documentation later on.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">&gt;&gt;&gt; import Nio</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">&gt;&gt;&gt; f = Nio.open_file("href.t06z.prob.f36.grib2")</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Abort trap: 6</div></div><div class=""><br class=""></div>Thank you for the help,<div class=""><br class=""></div><div class="">Ray<br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 15, 2016, at 8:16 AM, Tourville,Natalie &lt;<a href="mailto:Natalie.Tourville@colostate.edu" class="">Natalie.Tourville@colostate.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Ray,<br class=""><br class="">We recently ran into this error and installing krb5 fixed the issue. &nbsp;It’s looking for the libgssapi_krb5.2.2.dylib library (found in the krb5 package).<br class=""><br class="">conda install krb5<br class=""><br class="">And then reinstall PyNio.<br class=""><br class="">Regards,<br class="">-Natalie Tourville<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Mar 15, 2016, at 6:49 AM, Kyle Griffin &lt;<a href="mailto:ksgriffin2@wisc.edu" class="">ksgriffin2@wisc.edu</a>&gt; wrote:<br class=""><br class="">Ray,<br class=""><br class="">If you import a module with a certain name, you must reference its functions with that name as well. Since 'import Nio' is how the module was intended to be imported, the instructions are to use that. Since you've imported PyNIO, you would have to use 'PyNIO.open_file(....)' to use things from the PyNIO module. Alternatively, you can do 'import PyNIO as Nio' to create an alias with which you can refer to the module - this would allow your 'Nio.open_file(...)' statements to work as you've written them.<br class=""><br class=""><br class="">Kyle<br class=""><br class="">On Tue, Mar 15, 2016 at 7:06 AM Ray Hawthorne &lt;<a href="mailto:frontogenesis@gmail.com" class="">frontogenesis@gmail.com</a>&gt; wrote:<br class="">Good morning Dave,<br class=""><br class="">Unfortunately, that does not work.<br class=""><br class="">Here’s what I get back when importing Nio:<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">import Nio<br class=""></blockquote></blockquote></blockquote>Traceback (most recent call last):<br class=""> &nbsp;File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br class=""> &nbsp;File "/Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/Nio.py", line 63, in &lt;module&gt;<br class=""> &nbsp;&nbsp;&nbsp;from nio import *<br class="">ImportError: dlopen(/Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/nio.so, 2): Library not loaded: @rpath/libgssapi_krb5.2.2.dylib<br class=""> &nbsp;Referenced from: /Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/nio.so<br class=""> &nbsp;Reason: image not found<br class=""><br class=""><br class="">Here’s what I get when importing PyNIO (success), but try to open the file (not successful):<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">import PyNIO<br class="">f = Nio.open_file("href.t06z.prob.f36.grib2")<br class=""></blockquote></blockquote></blockquote>Traceback (most recent call last):<br class=""> &nbsp;File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br class="">NameError: name 'Nio' is not defined<br class=""><br class="">-Ray<br class=""><br class=""><blockquote type="cite" class="">On Mar 14, 2016, at 11:19 PM, David Brown &lt;<a href="mailto:dbrown@ucar.edu" class="">dbrown@ucar.edu</a>&gt; wrote:<br class=""><br class="">The standard way to import PyNIO is simply:<br class=""><br class="">import Nio<br class=""><br class="">f = Nio.open_file(&lt;filename&gt;)<br class=""><br class="">Let us know if that doesn't work.<br class="">-dave<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">On Mon, Mar 14, 2016 at 9:10 PM, Ray Hawthorne &lt;<a href="mailto:frontogenesis@gmail.com" class="">frontogenesis@gmail.com</a>&gt; wrote:<br class=""><blockquote type="cite" class="">Greetings,<br class=""><br class="">I just installed PyNIO from anaconda and I’m having some trouble reading in a grib2 file.<br class=""><br class="">Using the documentation, when I do an import into my Python script:<br class="">import Nio<br class=""><br class="">The import fails to occur.<br class=""><br class="">I dug around in the anaconda subdirectories and tried:<br class="">import PyNIO<br class="">And that import statement works just fine.<br class=""><br class="">However, when I go to open a grib file:<br class="">f = Nio.open_file("href.t06z.prob.f36.grib2”)<br class="">I end up getting a traceback.<br class=""><br class="">(Similar issue with importing PyNio.Nio as Nio)<br class=""><br class="">I suspect there’s a discrepancy between the documentation and the build of PyNIO from anaconda — but I’m somewhere in the advanced beginner stage when it comes to Python in general, so I’m not sure how I might be able to fix this so that I can open the grib file with pynio. &nbsp;Would someone be able to point me in the right direction?<br class=""><br class="">Thanks,<br class=""><br class="">Ray Hawthorne<br class="">_______________________________________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br class=""></blockquote></blockquote><br class="">_______________________________________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br class="">_______________________________________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk<br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div></body></html>