<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 Xingang,<div class=""><br class=""></div><div class="">I would suggest installing everything at once using the command:</div><div class=""><font face="Courier New" class="">conda install -n metuse -c conda-forge python=2.7 basemap netcdf4 pynio pyngl</font></div><div class=""><br class=""></div><div class="">However, we are in the process of fixing an issue with the PyNGL package on conda-forge at the moment, so “import Ngl” might not work for right now.</div><div class=""><br class=""></div><div class="">Kevin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 7, 2017, at 9:14 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 class="">The basemap and/or matplotlib problem seemed stemed from installation of pynio pyngl from conda-forge.<br class=""><br class="">Both basemap and matplotlib works fine right after I activated the new env. But, the installation of pynio pyngl need to update matplotlib as shown below:<br class="">==========<br class="">(metuse) M-C02T336YFVH4:~ xng02546$ conda install -c conda-forge -c defaults pynio pyngl<br class="">Fetching package metadata ...........<br class="">Solving package specifications: .<br class=""><br class="">Package plan for installation in environment /Users/xng02546/anaconda2/envs/metuse:<br class=""><br class="">The following NEW packages will be INSTALLED:<br class=""><br class=""> pyngl: 1.5.0_beta20161122-np111py27_1 conda-forge<br class=""> pynio: 1.5.0_beta20160623-np111py27_14 conda-forge<br class=""><br class="">The following packages will be UPDATED:<br class=""><br class=""> freetype: 2.5.5-2 --> 2.6.3-1 conda-forge<br class=""> matplotlib: 2.0.0-np111py27_0 --> 2.0.0-np111py27_0 conda-forge<br class=""><br class="">The following packages will be SUPERCEDED by a higher-priority channel:<br class=""><br class=""> fontconfig: 2.12.1-3 --> 2.11.1-6 conda-forge<br class=""><br class="">Proceed ([y]/n)? <br class="">==============<br class=""><br class="">If choose yes, then basemap will have problem to import, as well as Nio.<br class=""><br class="">Thanks,<br class="">Xingang<br class=""><br class="">On 2/7/17, 9:10 PM, "Fan, Xingang" <<a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a>> wrote:<br class=""><br class=""> Hi, Kevin:<br class=""><br class=""> We had talked before about installing pynio and pyngl on my old Mac OSX 10.8. At that time, I was able to use channel ncar and khallock for them.<br class=""><br class=""> Now, I just got a new Mac system today, Mac OSX 10.12. I followed procedures that I used last time, it seems having problems again (this time I use conda-forge).<br class=""><br class=""> Here are the main steps:<br class=""><br class=""> After installed anaconda2:<br class=""> conda create –n metuse python=2.7 basemap netcdf4<br class=""> source activate metuse<br class=""> conda install –c conda-forge pynio pyngl<br class=""><br class=""> Here are the problems when I import basemap and Nio in python:<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">import numpy<br class="">from mpl_toolkits.basemap import Basemap<br class=""></blockquote></blockquote></blockquote> Traceback (most recent call last):<br class=""> File "<stdin>", line 1, in <module><br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.py", line 31, in <module><br class=""> from mpl_toolkits.axes_grid1 import make_axes_locatable<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/mpl_toolkits/axes_grid1/__init__.py", line 6, in <module><br class=""> from . import axes_size as Size<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.py", line 19, in <module><br class=""> from matplotlib.axes import Axes<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/axes/__init__.py", line 4, in <module><br class=""> from ._subplots import *<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/axes/_subplots.py", line 10, in <module><br class=""> from matplotlib.axes._axes import Axes<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 23, in <module><br class=""> import matplotlib.contour as mcontour<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/contour.py", line 23, in <module><br class=""> import matplotlib.text as text<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/text.py", line 33, in <module><br class=""> from matplotlib.backend_bases import RendererBase<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 63, in <module><br class=""> import matplotlib.textpath as textpath<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/textpath.py", line 20, in <module><br class=""> from matplotlib.mathtext import MathTextParser<br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/mathtext.py", line 62, in <module><br class=""> import matplotlib._png as _png<br class=""> ImportError: dlopen(/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/_png.so, 2): Library not loaded: @rpath/libpng16.16.dylib<br class=""> Referenced from: /Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/_png.so<br class=""> Reason: Incompatible library version: _png.so requires version 45.0.0 or later, but libpng16.16.dylib provides version 44.0.0<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">from mpl_toolkits.basemap import Basemap<br class=""></blockquote></blockquote></blockquote> Traceback (most recent call last):<br class=""> File "<stdin>", line 1, in <module><br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.py", line 30, in <module><br class=""> from mpl_toolkits.basemap import pyproj<br class=""> ImportError: cannot import name pyproj<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">import Nio<br class=""></blockquote></blockquote></blockquote> Traceback (most recent call last):<br class=""> File "<stdin>", line 1, in <module><br class=""> File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/PyNIO/Nio.py", line 83, in <module><br class=""> from nio import *<br class=""> ImportError: dlopen(/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/PyNIO/nio.so, 2): Library not loaded: @rpath/libpng16.16.dylib<br class=""> Referenced from: /Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/PyNIO/nio.so<br class=""> Reason: Incompatible library version: nio.so requires version 45.0.0 or later, but libpng16.16.dylib provides version 44.0.0<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class=""></blockquote></blockquote></blockquote><br class=""> Please see if you can identify where I went wrong.<br class=""> Thanks,<br class=""><br class=""> Xingang<br class=""><br class=""> -- <br class=""> Xingang Fan, Ph. D., | Department of Geography and Geology<br class=""> Associate Professor | Western Kentucky University<br class=""> of Meteorology | 1906 College Heights Blvd., #31066<br class=""> 270-745-5980 | Bowling Green, KY 42101-1066<br class=""> <a href="mailto:xingang.fan@wku.edu" class="">xingang.fan@wku.edu</a><br class=""> <a href="http://people.wku.edu/xingang.fan" class="">http://people.wku.edu/xingang.fan</a><br class=""><br class=""><br class=""><br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>