[pyngl-talk] Unable to import Nio in a Linux system

lbqnj's QQMail Calendars lbqnj at qq.com
Tue Feb 12 17:31:48 MST 2019


Dear Kevin,
I have tried your suggested solution, but the PyNIO is still not working. Following is the error message:
>>> 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

Thanks for your suggestion.
Regards.
BL 

> 在 2019年2月13日,00:58,Kevin Hallock <hallock at ucar.edu> 写道:
> 
> 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.
> 
> Thanks,
> Kevin
> 
>> On Feb 12, 2019, at 2:01 AM, lbqnj's QQMail Calendars via pyngl-talk <pyngl-talk at ucar.edu <mailto: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:
>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk <http://mailman.ucar.edu/mailman/listinfo/pyngl-talk>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20190213/3ec5bb99/attachment.html>


More information about the pyngl-talk mailing list