[pyngl-talk] missing shared library for PyNIO
Fan, Xingang
xingang.fan at wku.edu
Thu Feb 9 09:29:27 MST 2017
Hi, Kevin:
Thanks a lot! That worked for all installed, except as you mentioned, PyNGL is not working.
I used the following:
conda create -n metuse -c conda-forge python=2.7 spyder jupyter basemap netcdf4 pynio pyngl pygrib
Xingang
From: Kevin Hallock <hallock at ucar.edu>
Date: Wednesday, February 8, 2017 at 5:31 PM
To: Xingang Fan <xingang.fan at wku.edu>
Cc: "pyngl-talk at ucar.edu" <pyngl-talk at ucar.edu>
Subject: Re: [pyngl-talk] missing shared library for PyNIO
Hi Xingang,
I would suggest installing everything at once using the command:
conda install -n metuse -c conda-forge python=2.7 basemap netcdf4 pynio pyngl
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.
Kevin
On Feb 7, 2017, at 9:14 PM, Fan, Xingang <xingang.fan at wku.edu<mailto:xingang.fan at wku.edu>> wrote:
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<mailto: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<mailto:xingang.fan at wku.edu>
http://people.wku.edu/xingang.fan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20170209/bd520a84/attachment-0001.html
More information about the pyngl-talk
mailing list