[pyngl-talk] missing shared library for PyNIO
Fan, Xingang
xingang.fan at wku.edu
Tue Feb 7 21:14:43 MST 2017
The basemap and/or matplotlib problem seemed stemed from installation of pynio pyngl from conda-forge.
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:
==========
(metuse) M-C02T336YFVH4:~ xng02546$ conda install -c conda-forge -c defaults pynio pyngl
Fetching package metadata ...........
Solving package specifications: .
Package plan for installation in environment /Users/xng02546/anaconda2/envs/metuse:
The following NEW packages will be INSTALLED:
pyngl: 1.5.0_beta20161122-np111py27_1 conda-forge
pynio: 1.5.0_beta20160623-np111py27_14 conda-forge
The following packages will be UPDATED:
freetype: 2.5.5-2 --> 2.6.3-1 conda-forge
matplotlib: 2.0.0-np111py27_0 --> 2.0.0-np111py27_0 conda-forge
The following packages will be SUPERCEDED by a higher-priority channel:
fontconfig: 2.12.1-3 --> 2.11.1-6 conda-forge
Proceed ([y]/n)?
==============
If choose yes, then basemap will have problem to import, as well as Nio.
Thanks,
Xingang
On 2/7/17, 9:10 PM, "Fan, Xingang" <xingang.fan at wku.edu> wrote:
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