<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;" class="">Hi Xingang,<div class=""><br class=""></div><div class="">We have found that running PyNIO, PyNGL, and NCL under conda works best if you create an environment to install them in. Installing to the root environment can cause issues like what you’ve described below, especially when using Anaconda, as opposed to Miniconda.</div><div class=""><br class=""></div><div class="">Could you please try creating and activating an environment:</div><div class=""><font face="Courier New" class="">conda create --name <env_name> --channel conda-forge pynio pyngl</font></div><div class=""><font face="Courier New" class="">source activate <env_name></font></div><div class=""><br class=""></div><div class="">Once the environment is activated, you can install any other packages you may need. I would strongly recommend using “--channel conda-forge” on your “conda install …” commands in order to maintain compatibility with Nio and Ngl.</div><div class=""><br class=""></div><div class="">Kevin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 13, 2016, at 2:18 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=Windows-1252" 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! That played the trick. Finally I got all three of them working along with basemap on an Ubuntu virtual machine without any warning messages. The order of installing different packages and the updating of packages seem important though.</div>
<div class=""><br class="">
</div>
<div class="">Now, I am trying to get it to work on my Mac. All of them worked fine with my Mac installation of Anaconda. However, when I tried to use the same way to update NGL and NIO, the entire anaconda seemed messed up. I tried reinstall, still have the following
messages when importing Nio, I don't know what to do:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">(root) FXG-MacBook:site-packages xng02546$ python</div>
<div class="">Python 2.7.12 |Anaconda custom (x86_64)| (default, Jul 2 2016, 17:43:17) </div>
<div class="">[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin</div>
<div class="">Type "help", "copyright", "credits" or "license" for more information.</div>
<div class="">Anaconda is brought to you by Continuum Analytics.</div>
<div class="">Please check out: <a href="http://continuum.io/thanks" class="">http://continuum.io/thanks</a> and <a href="https://anaconda.org" class="">https://anaconda.org</a></div>
<div class="">>>> import Nio</div>
<div class="">Traceback (most recent call last):</div>
<div class=""> File "<stdin>", line 1, in <module></div>
<div class=""> File "//anaconda/lib/python2.7/site-packages/PyNIO/Nio.py", line 83, in <module></div>
<div class=""> from nio import *</div>
<div class="">ImportError: dlopen(//anaconda/lib/python2.7/site-packages/PyNIO/nio.so, 2): Library not loaded: @rpath/libicui18n.56.dylib</div>
<div class=""> Referenced from: //anaconda/lib/libgdal.20.dylib</div>
<div class=""> Reason: no suitable image found. Did find:</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>/usr/local/lib/libicui18n.56.dylib: stat() failed with errno=13</div>
</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</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 <<a href="mailto:hallock@ucar.edu" class="">hallock@ucar.edu</a>><br class="">
<span style="font-weight:bold" class="">Date: </span>Monday, December 12, 2016 11:43 AM<br class="">
<span style="font-weight:bold" class="">To: </span>Xingang Fan <<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>><br class="">
<span style="font-weight:bold" class="">Cc: </span>"<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>" <<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>><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 Xingang,
<div class=""><br class="">
</div>
<div class="">Could you please try running “conda install -c conda-forge pyngl pynio” instead of “conda install -c ncar -c khallock pyngl pynio”?</div>
<div class=""><br class="">
</div>
<div class="">Previously, using the channels “ncar” and “khallock” (with the flags “-c ncar” and “-c khallock”) was the only way to install PyNIO and PyNGL using conda, but we have since uploaded PyNIO, PyNGL, and NCL to the conda-forge channel. Conda-forge
provides excellent compatibility between packages in order to avoid the dependency issues you experienced, so I would strongly recommend using “-c conda-forge” in your case.</div>
<div class=""><br class="">
</div>
<div class="">Kevin</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Dec 10, 2016, at 7:55 AM, Fan, Xingang <<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>> 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="">I am installing the packages in virtual machine that runs Ubuntu. I got it worked one time, but when I later found that I needed basemap. So, I reinstalled everything and nw got a question I don't understand. The following was what I did:</div>
<div class=""><br class="">
</div>
<div class="">Install anaconda</div>
<div class="">Conda update --all</div>
<div class="">Created a new environment where:</div>
<div class=""> netcdf4 and basemap were installed</div>
<div class="">Cloned the above environment for adding NGL packages, where:</div>
<div class=""> pygrib was installed (conda install –c conda-forge pygrib</div>
<div class=""> Then, when I try to install: conda install –c ncar –c khallock pyngl pynio</div>
<div class=""> The following messages were given:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">UnsatisfiableError: The following specifications were found to be in conflict:</div>
<div class=""> - h5py -> hdf5 1.8.13|1.8.14|1.8.15.1|1.8.16|1.8.9</div>
<div class=""> - h5py -> numpy 1.11*|1.5*|1.6*|1.7*|1.8*</div>
<div class=""> - h5py -> python 2.6*|3.3*|3.4*|3.5*</div>
<div class=""> - pynio</div>
<div class="">Use "conda info <package>" to see the dependencies for each package.</div>
</div>
<div class=""><br class="">
</div>
<div class="">First, I don't understand who and who are in conflict. Second, how to get around?</div>
<div class=""><br class="">
</div>
<div class="">I remember the time I got pygrib, Nio, Ngl imported without problem was when I didn't have basemap in the same new environment (just create a new environment for my use, not cloned one). But I hope I can have them all in the same place.</div>
<div class=""><br class="">
</div>
<div class="">Your help is much appreciated!</div>
<div class=""><br class="">
</div>
<div class="">Xingang</div>
<div class=""><br class="">
</div>
<div class="">P.s. A full list of packages in my new environment is attached below:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">(metlab) xfan@xfan-VirtualBox:~$ conda list</div>
<div class=""># packages in environment at /home/xfan/anaconda2/envs/metlab:</div>
<div class="">#</div>
<div class="">_license 1.1 py27_1 </div>
<div class="">_nb_ext_conf 0.3.0 py27_0 </div>
<div class="">alabaster 0.7.9 py27_0 </div>
<div class="">anaconda custom py27_0 </div>
<div class="">anaconda-clean 1.0.2 py27_0 </div>
<div class="">anaconda-client 1.6.0 py27_0 </div>
<div class="">anaconda-navigator 1.3.2 py27_0 </div>
<div class="">argcomplete 1.0.0 py27_1 </div>
<div class="">astroid 1.4.7 py27_0 </div>
<div class="">astropy 1.2.1 np111py27_0 </div>
<div class="">babel 2.3.4 py27_0 </div>
<div class="">backports 1.0 py27_0 </div>
<div class="">backports_abc 0.5 py27_0 </div>
<div class="">basemap 1.0.7 np111py27_0 </div>
<div class="">beautifulsoup4 4.5.1 py27_0 </div>
<div class="">bitarray 0.8.1 py27_0 </div>
<div class="">blaze 0.10.1 py27_0 </div>
<div class="">bokeh 0.12.3 py27_0 </div>
<div class="">boto 2.43.0 py27_0 </div>
<div class="">bottleneck 1.1.0 np111py27_0 </div>
<div class="">cairo 1.12.18 6 </div>
<div class="">cdecimal 2.3 py27_2 </div>
<div class="">cffi 1.9.1 py27_0 </div>
<div class="">chest 0.2.3 py27_0 </div>
<div class="">click 6.6 py27_0 </div>
<div class="">cloudpickle 0.2.1 py27_0 </div>
<div class="">clyent 1.2.2 py27_0 </div>
<div class="">colorama 0.3.7 py27_0 </div>
<div class="">configobj 5.0.6 py27_0 </div>
<div class="">configparser 3.5.0 py27_0 </div>
<div class="">contextlib2 0.5.4 py27_0 </div>
<div class="">cryptography 1.6 py27_0 </div>
<div class="">curl 7.49.0 1 </div>
<div class="">cycler 0.10.0 py27_0 </div>
<div class="">cython 0.25.2 py27_0 </div>
<div class="">cytoolz 0.8.1 py27_0 </div>
<div class="">dask 0.12.0 py27_0 </div>
<div class="">datashape 0.5.2 py27_0 </div>
<div class="">dbus 1.10.10 0 </div>
<div class="">decorator 4.0.10 py27_1 </div>
<div class="">dill 0.2.5 py27_0 </div>
<div class="">docutils 0.12 py27_2 </div>
<div class="">dynd-python 0.7.2 py27_0 </div>
<div class="">ecmwf_grib 1.16.0 1 conda-forge</div>
<div class="">entrypoints 0.2.2 py27_0 </div>
<div class="">enum34 1.1.6 py27_0 </div>
<div class="">et_xmlfile 1.0.1 py27_0 </div>
<div class="">expat 2.1.0 0 </div>
<div class="">fastcache 1.0.2 py27_1 </div>
<div class="">filelock 2.0.7 py27_0 </div>
<div class="">flask 0.11.1 py27_0 </div>
<div class="">flask-cors 2.1.2 py27_0 </div>
<div class="">fontconfig 2.11.1 6 </div>
<div class="">freetype 2.5.5 1 </div>
<div class="">funcsigs 1.0.2 py27_0 </div>
<div class="">functools32 3.2.3.2 py27_0 </div>
<div class="">futures 3.0.5 py27_0 </div>
<div class="">geos 3.4.2 0 </div>
<div class="">get_terminal_size 1.0.0 py27_0 </div>
<div class="">gevent 1.1.2 py27_0 </div>
<div class="">glib 2.43.0 1 </div>
<div class="">greenlet 0.4.10 py27_0 </div>
<div class="">grin 1.2.1 py27_3 </div>
<div class="">gst-plugins-base 1.8.0 0 </div>
<div class="">gstreamer 1.8.0 0 </div>
<div class="">h5py 2.6.0 np111py27_2 </div>
<div class="">harfbuzz 0.9.39 1 </div>
<div class="">hdf4 4.2.12 0 </div>
<div class="">hdf5 1.8.17 1 </div>
<div class="">heapdict 1.0.0 py27_1 </div>
<div class="">icu 54.1 0 </div>
<div class="">idna 2.1 py27_0 </div>
<div class="">imagesize 0.7.1 py27_0 </div>
<div class="">ipaddress 1.0.17 py27_0 </div>
<div class="">ipykernel 4.5.2 py27_0 </div>
<div class="">ipython 5.1.0 py27_0 </div>
<div class="">ipython_genutils 0.1.0 py27_0 </div>
<div class="">ipywidgets 5.2.2 py27_0 </div>
<div class="">itsdangerous 0.24 py27_0 </div>
<div class="">jasper 1.900.1 1 conda-forge</div>
<div class="">jbig 2.1 0 </div>
<div class="">jdcal 1.3 py27_0 </div>
<div class="">jedi 0.9.0 py27_1 </div>
<div class="">jinja2 2.8 py27_1 </div>
<div class="">jpeg 8d 2 </div>
<div class="">jsonschema 2.5.1 py27_0 </div>
<div class="">jupyter 1.0.0 py27_3 </div>
<div class="">jupyter_client 4.4.0 py27_0 </div>
<div class="">jupyter_console 5.0.0 py27_0 </div>
<div class="">jupyter_core 4.2.1 py27_0 </div>
<div class="">lazy-object-proxy 1.2.1 py27_0 </div>
<div class="">libdynd 0.7.2 0 </div>
<div class="">libffi 3.2.1 0 </div>
<div class="">libgcc 5.2.0 0 </div>
<div class="">libgfortran 3.0.0 1 </div>
<div class="">libiconv 1.14 0 </div>
<div class="">libnetcdf 4.4.1 0 </div>
<div class="">libpng 1.6.26 0 conda-forge</div>
<div class="">libsodium 1.0.10 0 </div>
<div class="">libtiff 4.0.6 2 </div>
<div class="">libxcb 1.12 1 </div>
<div class="">libxml2 2.9.4 0 </div>
<div class="">libxslt 1.1.28 0 </div>
<div class="">llvmlite 0.14.0 py27_0 </div>
<div class="">locket 0.2.0 py27_1 </div>
<div class="">lxml 3.6.4 py27_0 </div>
<div class="">markupsafe 0.23 py27_2 </div>
<div class="">matplotlib 1.5.3 np111py27_1 </div>
<div class="">mistune 0.7.3 py27_0 </div>
<div class="">mkl 11.3.3 0 </div>
<div class="">mkl-service 1.1.2 py27_2 </div>
<div class="">mpmath 0.19 py27_1 </div>
<div class="">multipledispatch 0.4.9 py27_0 </div>
<div class="">nb_anacondacloud 1.2.0 py27_0 </div>
<div class="">nb_conda 2.0.0 py27_0 </div>
<div class="">nb_conda_kernels 2.0.0 py27_0 </div>
<div class="">nbconvert 4.2.0 py27_0 </div>
<div class="">nbformat 4.2.0 py27_0 </div>
<div class="">nbpresent 3.0.2 py27_0 </div>
<div class="">netcdf4 1.2.4 np111py27_0 </div>
<div class="">networkx 1.11 py27_0 </div>
<div class="">nltk 3.2.1 py27_0 </div>
<div class="">nose 1.3.7 py27_1 </div>
<div class="">notebook 4.2.3 py27_0 </div>
<div class="">numba 0.29.0 np111py27_0 </div>
<div class="">numexpr 2.6.1 np111py27_1 </div>
<div class="">numpy 1.11.2 py27_0 </div>
<div class="">odo 0.5.0 py27_1 </div>
<div class="">openpyxl 2.4.0 py27_0 </div>
<div class="">openssl 1.0.2j 0 </div>
<div class="">pandas 0.19.1 np111py27_0 </div>
<div class="">partd 0.3.6 py27_0 </div>
<div class="">patchelf 0.9 0 </div>
<div class="">path.py 8.2.1 py27_0 </div>
<div class="">pathlib2 2.1.0 py27_0 </div>
<div class="">patsy 0.4.1 py27_0 </div>
<div class="">pep8 1.7.0 py27_0 </div>
<div class="">pexpect 4.0.1 py27_0 </div>
<div class="">pickleshare 0.7.4 py27_0 </div>
<div class="">pillow 3.4.2 py27_0 </div>
<div class="">pip 9.0.1 py27_1 </div>
<div class="">pixman 0.32.6 0 </div>
<div class="">pkginfo 1.4.1 py27_0 </div>
<div class="">ply 3.9 py27_0 </div>
<div class="">prompt_toolkit 1.0.9 py27_0 </div>
<div class="">psutil 5.0.0 py27_0 </div>
<div class="">ptyprocess 0.5.1 py27_0 </div>
<div class="">py 1.4.31 py27_0 </div>
<div class="">pyasn1 0.1.9 py27_0 </div>
<div class="">pycairo 1.10.0 py27_0 </div>
<div class="">pycosat 0.6.1 py27_1 </div>
<div class="">pycparser 2.17 py27_0 </div>
<div class="">pycrypto 2.6.1 py27_4 </div>
<div class="">pycurl 7.43.0 py27_0 </div>
<div class="">pyflakes 1.3.0 py27_0 </div>
<div class="">pygments 2.1.3 py27_0 </div>
<div class="">pygrib 2.0.2 py27_0 conda-forge</div>
<div class="">pylint 1.5.4 py27_1 </div>
<div class="">pyopenssl 16.2.0 py27_0 </div>
<div class="">pyparsing 2.1.4 py27_0 </div>
<div class="">pyproj 1.9.5.1 py27_0 conda-forge</div>
<div class="">pyqt 5.6.0 py27_0 </div>
<div class="">pytables 3.3.0 np111py27_0 </div>
<div class="">pytest 3.0.5 py27_0 </div>
<div class="">python 2.7.12 1 </div>
<div class="">python-dateutil 2.6.0 py27_0 </div>
<div class="">pytz 2016.10 py27_0 </div>
<div class="">pyyaml 3.12 py27_0 </div>
<div class="">pyzmq 16.0.2 py27_0 </div>
<div class="">qt 5.6.0 1 </div>
<div class="">qtawesome 0.3.3 py27_0 </div>
<div class="">qtconsole 4.2.1 py27_1 </div>
<div class="">qtpy 1.1.2 py27_0 </div>
<div class="">readline 6.2 2 </div>
<div class="">redis 3.2.0 0 </div>
<div class="">redis-py 2.10.5 py27_0 </div>
<div class="">requests 2.12.3 py27_0 </div>
<div class="">rope 0.9.4 py27_1 </div>
<div class="">scikit-image 0.12.3 np111py27_1 </div>
<div class="">scikit-learn 0.18.1 np111py27_0 </div>
<div class="">scipy 0.18.1 np111py27_0 </div>
<div class="">setuptools 27.2.0 py27_0 </div>
<div class="">simplegeneric 0.8.1 py27_1 </div>
<div class="">singledispatch 3.4.0.3 py27_0 </div>
<div class="">sip 4.18 py27_0 </div>
<div class="">six 1.10.0 py27_0 </div>
<div class="">snowballstemmer 1.2.1 py27_0 </div>
<div class="">sockjs-tornado 1.0.3 py27_0 </div>
<div class="">sphinx 1.5 py27_0 </div>
<div class="">spyder 3.0.2 py27_0 </div>
<div class="">sqlalchemy 1.1.4 py27_0 </div>
<div class="">sqlite 3.13.0 0 </div>
<div class="">ssl_match_hostname 3.4.0.2 py27_1 </div>
<div class="">statsmodels 0.6.1 np111py27_1 </div>
<div class="">sympy 1.0 py27_0 </div>
<div class="">terminado 0.6 py27_0 </div>
<div class="">tk 8.5.18 0 </div>
<div class="">toolz 0.8.1 py27_0 </div>
<div class="">tornado 4.4.2 py27_0 </div>
<div class="">traitlets 4.3.1 py27_0 </div>
<div class="">unicodecsv 0.14.1 py27_0 </div>
<div class="">wcwidth 0.1.7 py27_0 </div>
<div class="">werkzeug 0.11.11 py27_1 </div>
<div class="">wheel 0.29.0 py27_0 </div>
<div class="">widgetsnbextension 1.2.6 py27_0 </div>
<div class="">wrapt 1.10.8 py27_0 </div>
<div class="">xlrd 1.0.0 py27_0 </div>
<div class="">xlsxwriter 0.9.4 py27_0 </div>
<div class="">xlwt 1.1.2 py27_0 </div>
<div class="">xz 5.2.2 0 </div>
<div class="">yaml 0.1.6 0 </div>
<div class="">zeromq 4.1.5 0 </div>
<div class="">zlib 1.2.8 3</div>
</div>
<div class=""><br class="">
</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 <<a href="mailto:hallock@ucar.edu" class="">hallock@ucar.edu</a>><br class="">
<span style="font-weight:bold" class="">Date: </span>Wednesday, December 7, 2016 2:19 PM<br class="">
<span style="font-weight:bold" class="">To: </span>Xingang Fan <<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>><br class="">
<span style="font-weight:bold" class="">Cc: </span>"<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>" <<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>><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 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 class="">
<blockquote type="cite" class="">
<div class="">On Dec 7, 2016, at 12:41 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="">
<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 <<a href="mailto:hallock@ucar.edu" class="">hallock@ucar.edu</a>><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 <<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>><br class="">
<span style="font-weight:bold" class="">Cc: </span>"<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>" <<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>><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 "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 class="">
<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="">
<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>
</div>
</div>
</span></div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</span></div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</span>
</div>
</div></blockquote></div><br class=""></div></body></html>