[pyngl-talk] missing shared library for PyNIO
Fan, Xingang
xingang.fan at wku.edu
Tue Feb 7 20:10:40 MST 2017
Hi, Kevin:
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.
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).
Here are the main steps:
After installed anaconda2:
conda create –n metuse python=2.7 basemap netcdf4
source activate metuse
conda install –c conda-forge pynio pyngl
Here are the problems when I import basemap and Nio in python:
>>> import numpy
>>> from mpl_toolkits.basemap import Basemap
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.py", line 31, in <module>
from mpl_toolkits.axes_grid1 import make_axes_locatable
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/mpl_toolkits/axes_grid1/__init__.py", line 6, in <module>
from . import axes_size as Size
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.py", line 19, in <module>
from matplotlib.axes import Axes
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/axes/__init__.py", line 4, in <module>
from ._subplots import *
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/axes/_subplots.py", line 10, in <module>
from matplotlib.axes._axes import Axes
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 23, in <module>
import matplotlib.contour as mcontour
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/contour.py", line 23, in <module>
import matplotlib.text as text
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/text.py", line 33, in <module>
from matplotlib.backend_bases import RendererBase
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 63, in <module>
import matplotlib.textpath as textpath
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/textpath.py", line 20, in <module>
from matplotlib.mathtext import MathTextParser
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/mathtext.py", line 62, in <module>
import matplotlib._png as _png
ImportError: dlopen(/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/_png.so, 2): Library not loaded: @rpath/libpng16.16.dylib
Referenced from: /Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/matplotlib/_png.so
Reason: Incompatible library version: _png.so requires version 45.0.0 or later, but libpng16.16.dylib provides version 44.0.0
>>>
>>> from mpl_toolkits.basemap import Basemap
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.py", line 30, in <module>
from mpl_toolkits.basemap import pyproj
ImportError: cannot import name pyproj
>>>
>>> import Nio
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/PyNIO/Nio.py", line 83, in <module>
from nio import *
ImportError: dlopen(/Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/PyNIO/nio.so, 2): Library not loaded: @rpath/libpng16.16.dylib
Referenced from: /Users/xng02546/anaconda2/envs/metuse/lib/python2.7/site-packages/PyNIO/nio.so
Reason: Incompatible library version: nio.so requires version 45.0.0 or later, but libpng16.16.dylib provides version 44.0.0
>>>
Please see if you can identify where I went wrong.
Thanks,
Xingang
--
Xingang Fan, Ph. D., | Department of Geography and Geology
Associate Professor | Western Kentucky University
of Meteorology | 1906 College Heights Blvd., #31066
270-745-5980 | Bowling Green, KY 42101-1066
xingang.fan at wku.edu
http://people.wku.edu/xingang.fan
More information about the pyngl-talk
mailing list