<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="">Good morning Dave,<div class=""><br class=""></div><div class="">Unfortunately, that does not work.</div><div class=""><br class=""></div><div class="">Here’s what I get back when importing Nio:</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="">>>> 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="">Traceback (most recent call last):</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> File "<stdin>", line 1, in <module></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> File "/Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/Nio.py", line 63, in <module></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> from nio import *</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">ImportError: dlopen(/Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/nio.so, 2): Library not loaded: @rpath/libgssapi_krb5.2.2.dylib</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> Referenced from: /Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/nio.so</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> Reason: image not found</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Here’s what I get when importing PyNIO (success), but try to open the file (not successful):</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="">>>> import PyNIO</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">>>> 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="">Traceback (most recent call last):</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> File "<stdin>", line 1, in <module></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">NameError: name 'Nio' is not defined</div></div><div class=""><br class=""></div><div class="">-Ray</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Mar 14, 2016, at 11:19 PM, David Brown <<a href="mailto:dbrown@ucar.edu" class="">dbrown@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">The standard way to import PyNIO is simply:<br class=""><br class="">import Nio<br class=""><br class="">f = Nio.open_file(<filename>)<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 <<a href="mailto:frontogenesis@gmail.com" class="">frontogenesis@gmail.com</a>> 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. 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></div></div></blockquote></div><br class=""></div></body></html>