Re: 'import Nio' doesn't work

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 10 2010 - 13:47:16 MDT

Max,

It looks like your HDF4 library may not have been build with "--disable-netcdf".

Please see:

http://www.pyngl.ucar.edu/Download/build_pynio_from_src.shtml#HDF4

--Mary

On Sep 9, 2010, at 5:46 AM, Max Maahn wrote:

> Hi Mary,
>
> thanks for your help. No, these files are not installed. However
> creating them doesn't help much... I built PyNIO and NGL from the source
> code.
>
> Max
>
> In [2]: import Nio
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
>
> /usr/local/lib64/python2.6/site-packages/<ipython console> in <module>()
>
> /usr/local/lib64/python2.6/site-packages/PyNIO/Nio.py in <module>()
> 61 '''
> 62
> ---> 63 from nio import *
> 64 from nio import _C_API
> 65
>
> ImportError: /usr/local/lib64/python2.6/site-packages/PyNIO/nio.so:
> undefined symbol: sd_ncvarinq
>
> In [3]: import Ngl
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
>
> /usr/local/lib64/python2.6/site-packages/<ipython console> in <module>()
>
> /usr/local/lib64/python2.6/site-packages/PyNGL/Ngl.py in <module>()
> 36
> 37 # PyNGL analysis functions
>
> ---> 38 import fplib
> 39
> 40 import sys
>
> ImportError: /usr/local/lib64/python2.6/site-packages/PyNGL/fplib.so:
> undefined symbol: _gfortran_st_write_done
>
> In [4]:
>
>
>
> Am 09.09.2010 13:36, schrieb Mary Haley:
>> Hi Max,
>>
>> Do you have a "Nio.pth" and "Ngl.pth" file in /usr/local/lib64/python2.6/site-packages?
>>
>> If you don't, this may be the problem. I'm not sure why they wouldn't be there.
>>
>> These files need to be there, with just "PyNGL" (without the quotes) in the Ngl.path file, and "PyNIO" in the Nio.pth file.
>>
>> Did you build from source code or install from a precompiled binary?
>>
>> --Mary
>>
>>
> --
> Max Maahn
> Meteorologisches Institut Universitšt Bonn, R.011
> Auf dem Huegel 20
> D-53121 Bonn
> +49 228 73 5108
> maahn@uni-bonn.de
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Fri Sep 10 13:47:20 2010

This archive was generated by hypermail 2.1.8 : Mon Oct 04 2010 - 09:57:00 MDT