<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Great! With your kind support, we will go with that.</div>
<div><br>
</div>
<div>Happy Holidays!</div>
<div><br>
</div>
<div>Xingang</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Kevin Hallock &lt;<a href="mailto:hallock@ucar.edu">hallock@ucar.edu</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday, December 7, 2016 2:19 PM<br>
<span style="font-weight:bold">To: </span>Xingang Fan &lt;<a href="mailto:xingang.fan@wku.edu">xingang.fan@wku.edu</a>&gt;<br>
<span style="font-weight:bold">Cc: </span>&quot;<a href="mailto:pyngl-talk@ucar.edu">pyngl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:pyngl-talk@ucar.edu">pyngl-talk@ucar.edu</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [pyngl-talk] Help with PyNIO installation<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Xingang,
<div class=""><br class="">
</div>
<div class="">You’re welcome!</div>
<div class=""><br class="">
</div>
<div class="">While Anaconda can be installed on Windows, we only have Mac OS X and Linux 64-bit versions of PyNGL or PyNIO available on Anaconda. In your case, I think Linux virtual machines would probably be the best/simplest option.</div>
<div class=""><br class="">
</div>
<div class="">Kevin</div>
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On Dec 7, 2016, at 12:41 PM, Fan, Xingang &lt;<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class="">Hi, Kevin:</div>
<div class=""><br class="">
</div>
<div class="">Thank you so much for getting back with me!</div>
<div class=""><br class="">
</div>
<div class="">I am trying anaconda on my MacBook Pro.</div>
<div class=""><br class="">
</div>
<div class="">One question: Can anaconda be installed on Windows system with the PyNGL and PyNIO, pygrib to work? Or it has to be on a virtual machine. Our lab have all windows machines. Thanks!</div>
<div class=""><br class="">
</div>
<div class="">Xingang</div>
<div class=""><br class="">
</div>
<span id="OLK_SRC_BODY_SECTION" class="">
<div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class="">
<span style="font-weight:bold" class="">From: </span>Kevin Hallock &lt;<a href="mailto:hallock@ucar.edu" class="">hallock@ucar.edu</a>&gt;<br class="">
<span style="font-weight:bold" class="">Date: </span>Wednesday, December 7, 2016 1:37 PM<br class="">
<span style="font-weight:bold" class="">To: </span>Xingang Fan &lt;<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>&gt;<br class="">
<span style="font-weight:bold" class="">Cc: </span>&quot;<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>&gt;<br class="">
<span style="font-weight:bold" class="">Subject: </span>Re: [pyngl-talk] Help with PyNIO installation<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">Is there any chance you could possibly use Anaconda/Miniconda on these virtual machines instead of Enthought Canopy? As far as I am aware, there is no easy way for us to create and distribute a version of our software that is built against Enthought
 Canopy’s libraries.</div>
<div class=""><br class="">
</div>
<div class="">However, we do have up-to-date versions PyNGL and PyNIO (and NCL) available on the &quot;conda-forge” Anaconda channel, which also hosts many other commonly used scientific packages (including pygrib!). Unfortunately, Anaconda and Enthought Canopy
 may not be compatible; in order for Anaconda to work properly, its provided python needs to be the “default” python.</div>
<div class=""><br class="">
</div>
<div class="">We have information regarding the installation of Anaconda/Miniconda on the PyNGL/PyNIO download page:
<a href="https://www.pyngl.ucar.edu/Download/" class="">https://www.pyngl.ucar.edu/Download/</a></div>
<div class=""><br class="">
</div>
<div class="">In order to use the recommended &quot;conda-forge&quot; versions (different from the example on the linked page), create a conda environment using a command such as:</div>
<div class=""><font face="Courier New" class="">conda create --name &lt;env_name&gt; --channel conda-forge pynio pyngl</font></div>
<div class=""><br class="">
</div>
<div class="">and then activate the environment:</div>
<div class=""><font face="Courier New" class="">source activate &lt;env_name&gt;</font></div>
<div class=""><br class="">
</div>
<div class="">Note that “&lt;env_name&gt;” can be whatever you would like your conda environment to be named; for example, the linked documentation above uses “pyn_test”.</div>
<div class=""><br class="">
</div>
<div class="">If using Anaconda/Miniconda is not possible, then we will have to further troubleshoot building PyNIO from source code.</div>
<div class=""><br class="">
</div>
<div class="">Please let us know if this information helps!</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Kevin</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Dec 6, 2016, at 12:38 PM, Fan, Xingang &lt;<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">Hi,</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">I am using Enthought Canopy as my default python. I would like to get PyNIO and PyNGL installed.&nbsp;</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">I have tried to download the prebuilt binaries, none of them work for my Ubuntu environment (I have to use the VirtualBox and have a Virtual Machine of Ubuntu system on my windows machines
 for our classroom use, because I wanted to have pygrib, PyNIO, and PyNGL). Although the prebuilt packages worked for my MacBook Pro, where the Canopy was also installed.&nbsp;</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">Then I had to try to install from the source code of PyNIO. I have followed the instructions online at&nbsp;<a href="https://www.pyngl.ucar.edu/Download/build_pynio_from_src.shtml#HDF4" class="">https://www.pyngl.ucar.edu/Download/build_pynio_from_src.shtml</a>.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">And all non-optional packages have been installed without problem. However, when I get down to install PyNIO, it seemed installed, but the import Nio showed the following error messages:</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">
<div class="">import Nio</div>
<div class="">---------------------------------------------------------------------------</div>
<div class="">ImportError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Traceback (most recent call last)</div>
<div class="">&lt;ipython-input-1-d77b80fd2dfc&gt; in &lt;module&gt;()</div>
<div class="">----&gt; 1 import Nio</div>
<div class=""><br class="">
</div>
<div class="">/home/xfan/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/PyNIO/Nio.py in &lt;module&gt;()</div>
<div class="">&nbsp; &nbsp; &nbsp;61 '''</div>
<div class="">&nbsp; &nbsp; &nbsp;62&nbsp;</div>
<div class="">---&gt; 63 from nio import *</div>
<div class="">&nbsp; &nbsp; &nbsp;64 from nio import _C_API</div>
<div class="">&nbsp; &nbsp; &nbsp;65&nbsp;</div>
<div class=""><br class="">
</div>
<div class="">ImportError: /home/xfan/Canopy/appdata/canopy-1.7.4.3348.rh5-x86_64/lib/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /home/xfan/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/PyNIO/nio.so)</div>
<div class=""><br class="">
</div>
<div class="">PLEASE help see what's the problem. While installing, I have the following environment variables set:</div>
<div class="">
<div class="">export HAS_NETCDF4=1</div>
<div class="">export HAS_HDF5=1</div>
<div class="">export NETCDF_PREFIX=/usr/local</div>
<div class="">export F2CLIBS=gfortran</div>
<div class="">export F2CLIBS_PREFIX=/usr/lib/x86_64-linux-gnu</div>
</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">
<div class="">
<div class="">--&nbsp;</div>
<div class="">
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class="">Xingang Fan, Ph. D.,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Department of Geography and Geology<o:p class=""></o:p></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class="">Associate Professor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Western Kentucky University<o:p class=""></o:p></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class="">of Meteorology&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1906 College Heights Blvd., #31066<o:p class=""></o:p></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class="">270-745-5980 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bowling Green, KY 42101-1066<o:p class=""></o:p></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class=""><a href="mailto:xingang.fan@wku.edu" style="color: purple; " class="">xingang.fan@wku.edu</a><o:p class=""></o:p></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class=""><a href="http://people.wku.edu/xingang.fan" style="color: purple; " class="">http://people.wku.edu/xingang.fan</a></div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<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="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</span></div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</span>
</body>
</html>