<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="">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 "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 "conda-forge" 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 <env_name> --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 <env_name></font></div><div class=""><br class=""></div><div class="">Note that “<env_name>” 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><blockquote type="cite" class=""><div class="">On Dec 6, 2016, at 12:38 PM, Fan, Xingang <<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" 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. </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. </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 <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 Traceback (most recent call last)</div>
<div class=""><ipython-input-1-d77b80fd2dfc> in <module>()</div>
<div class="">----> 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 <module>()</div>
<div class=""> 61 '''</div>
<div class=""> 62 </div>
<div class="">---> 63 from nio import *</div>
<div class=""> 64 from nio import _C_API</div>
<div class=""> 65 </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="">-- </div>
<div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class="">Xingang Fan, Ph. D., | Department of Geography and Geology<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class="">Associate Professor | Western Kentucky University<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt;" class="">of Meteorology | 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 | 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></body></html>