[pyngl-talk] PyNIO-1.3.0b1

Scott Shaw sshaw at sgi.com
Sun Feb 8 11:45:04 MST 2015


Just an fyi, I resolved the library reference issue by recompiling and installing the HDF4 &5 libs.  After the build of the support libs I was able to build and install PyNIO python modules.  But now I have a new issue with Nio.options as shown below.

Python 2.6.8 (unknown, Jul 16 2013, 14:48:55)
[GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/nas/sshaw/bmarks/NCAR-2015/pyResBench/local/lib64/python2.6/site-packages', '/nas/sshaw/bmarks/NCAR-2015/pyResBench/pyreshaper', '/usr/lib/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/Numeric', '/usr/local/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/chkfeature', '/usr/lib64/python2.6/site-packages/gtk-2.0']

>>> import Nio
>>> import numpy
>>> from mpi4py import MPI
>>>
>>> opt = Nio.options()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'options'

When running the pyResBench tests the execution aborts with the following errors.

cy002 pyResBench/pyResBench> ./runbench
Traceback (most recent call last):
  File "/nas/sshaw/bmarks/NCAR-2015/pyResBench/pyreshaper/bin/slice2series", line 84, in <module>
Traceback (most recent call last):
  File "/nas/sshaw/bmarks/NCAR-2015/pyResBench/pyreshaper/bin/slice2series", line 84, in <module>
    reshpr = reshaper.create_reshaper(spec, serial=serial, verbosity=verbosity, once=once)
  File "/nas/sshaw/bmarks/NCAR-2015/pyResBench/pyreshaper/pyreshaper/reshaper.py", line 67, in create_reshaper
    reshpr = reshaper.create_reshaper(spec, serial=serial, verbosity=verbosity, once=once)
  File "/nas/sshaw/bmarks/NCAR-2015/pyResBench/pyreshaper/pyreshaper/reshaper.py", line 67, in create_reshaper
    once=once)
  File "/nas/sshaw/bmarks/NCAR-2015/pyResBench/pyreshaper/pyreshaper/reshaper.py", line 307, in __init__
    once=once)
  File "/nas/sshaw/bmarks/NCAR-2015/pyResBench/pyreshaper/pyreshaper/reshaper.py", line 307, in __init__
    opt = Nio.options()
AttributeError: 'module' object has no attribute 'options'
    opt = Nio.options()
AttributeError: 'module' object has no attribute 'options'

In the reshaper.py file line 307 - 309 shows the following.
        # Setup PyNIO options (including disabling the default PreFill option)
        opt = Nio.options()
        opt.PreFill = False



Any ideas how to resolve this new issue?

Thanks,
Scott Shaw
SGI - Apps Engineering
Ph: 248.719.7689


From: Scott Shaw
Sent: Friday, February 06, 2015 4:27 PM
To: pyngl-talk at ucar.edu
Subject: PyNIO-1.3.0b1

In the build environment for PyNIO I am only using GRIB2 and NetCDF-4 but when loading the nio python module I get the following error.

>>> import nio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /nas/sshaw/bmarks/NCAR-2015/pyResBench/PyNIO/lib64/python2.6/site-packages/PyNIO/nio.so: undefined symbol: HE5_GDdetach

I believe this symbol is located in the HDF-EOS2 libs but I did not build this optional package.  Prior to executing the "python setup.py build" for PyNIO I only requested Grib2 and Netcdf4 using the env settings detailed in the INSTALL file as shown below.  Any ideas how to get around this issue?

PyNIO/PyNIO-1.3.0b1> env | grep HAS
HAS_GRIB2=1
HAS_NETCDF4=1

I have the following packages installed using a common external-files directory for lib, include, bin, share and man directories.

g2clib-1.4.0
hdf-4.2.10
jasper-1.900.1
jpeg-6b
libpng-1.6.16
netcdf-4.3.1
szip-2.1
zlib-1.2.5

external-files> ls
bin  examples  include  lib  man  ncl_ncarg  share  src

OS: SUSE Linux Enterprise Server 11 (x86_64) SP3
Compiler: gcc version 4.3.4

Thanks,
Scott Shaw
SGI - Apps Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20150208/b6730305/attachment.html 


More information about the pyngl-talk mailing list