[pyngl-talk] Unable to import Nio in a Linux system
hallock at ucar.edu
Tue Feb 12 09:58:57 MST 2019
Hi B. Liu,
Could you please try running the following commands:
source activate ncl_to_python
conda update -c conda-forge —all
python -c "import Nio; print(Nio.__version__)" # should print "1.5.4"
There was an issue with the PyNIO package on conda-forge several weeks ago that caused the “libgdal.so.20” error you’re seeing, but it should be fixable by updating all of the packages in your ncl_to_python environment.
Please let us know if this does not help so that we can try additional steps to solve the problem.
> On Feb 12, 2019, at 2:01 AM, lbqnj's QQMail Calendars via pyngl-talk <pyngl-talk at ucar.edu> wrote:
> Dear all,
> I’m a user changing from NCL to pynio.
> Recently I have install the pynio using the recommended conda way (conda create -n ncl_to_python -c conda-forge xarray netcdf4 scipy pyngl pynio ncl).
> When I activate the ncl_to_python environment, I cannot import Nio correctly, although the Ngl is running well. The error message is as following:
> >>> import Nio
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/data2/anaconda3/envs/ncl_to_python/lib/python3.6/site-packages/PyNIO/Nio.py", line 83, in <module>
> from _nio import *
> ImportError: /data2/anaconda3/envs/ncl_to_python/lib/python3.6/site-packages/PyNIO/../../../libgdal.so.20: undefined symbol: _ZN6libdap3DDSC1EPNS_15BaseTypeFactoryERKSs
> Attached is my system information provided by “uname -a”:
> Linux R910 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux.
> Is it a bug in the PyNIO 1.5.4, or any other problems in my Linux system?
> Many thanks for your help.
> Best wishes.
> B. Liu
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pyngl-talk