pyhdf

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jsaacmk@gmail.com

    #1

    pyhdf

    Has anyone had success installing the pyhdf library with python 2.4
    under linux 2.6.18 (debian)? I have installed the HDF library and
    development package from apt and have downloaded the pyhdf
    installation files.

    I've had failures in two ways:

    1) When I install, I do not wish to use the szip library, so I disable
    it in the setup.py. The install finishes and I try to use the library:
    >>from pyhdf.SD import *
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "/usr/lib/python2.4/site-packages/pyhdf/SD.py", line 991, in ?
    import hdfext as _C
    File "/usr/lib/python2.4/site-packages/pyhdf/hdfext.py", line 4,
    in ?
    import _hdfext
    ImportError: /usr/lib/python2.4/site-packages/pyhdf/_hdfext.so:
    undefined symbol: SDgetcompress

    2) So I try it with szip enabled. I download the source for the
    library and ./configure it. Make it. Then Make install it. I then try
    to install the pyhdf package.

    $ sudo python setup.py install
    pyhdf/hdfext_wrap.c: In function '_HEprint':
    pyhdf/hdfext_wrap.c:8 98: warning: implicit declaration of function
    'HEprint'
    pyhdf/hdfext_wrap.c: In function '_SDreaddata_0' :
    pyhdf/hdfext_wrap.c:1 036: warning: implicit declaration of function
    'SDreaddata'
    pyhdf/hdfext_wrap.c: In function '_SDwritedata_0 ':
    pyhdf/hdfext_wrap.c:1 145: warning: implicit declaration of function
    'SDwritedata'
    pyhdf/hdfext_wrap.c: In function '_SDgetcompress ':
    pyhdf/hdfext_wrap.c:1 205: warning: implicit declaration of function
    'SDgetcompress'
    pyhdf/hdfext_wrap.c:1 217: error: 'COMP_CODE_SZIP ' undeclared (first
    use in this function)
    pyhdf/hdfext_wrap.c:1 217: error: (Each undeclared identifier is
    reported only once
    pyhdf/hdfext_wrap.c:1 217: error: for each function it appears in.)
    pyhdf/hdfext_wrap.c:1 218: error: 'comp_info' has no member named
    'szip'
    pyhdf/hdfext_wrap.c:1 219: error: 'comp_info' has no member named
    'szip'
    pyhdf/hdfext_wrap.c:1 220: error: 'comp_info' has no member named
    'szip'
    pyhdf/hdfext_wrap.c:1 221: error: 'comp_info' has no member named
    'szip'
    pyhdf/hdfext_wrap.c:1 222: error: 'comp_info' has no member named
    'szip'
    pyhdf/hdfext_wrap.c: In function '_SDsetcompress ':
    pyhdf/hdfext_wrap.c:1 245: error: 'COMP_CODE_SZIP ' undeclared (first
    use in this function)
    pyhdf/hdfext_wrap.c:1 246: error: 'comp_info' has no member named
    'szip'
    pyhdf/hdfext_wrap.c:1 247: error: 'comp_info' has no member named
    'szip'
    pyhdf/hdfext_wrap.c:1 251: warning: implicit declaration of function
    'SDsetcompress'
    pyhdf/hdfext_wrap.c: In function '_wrap_VSseek':
    pyhdf/hdfext_wrap.c:3 531: warning: implicit declaration of function
    'VSseek'
    pyhdf/hdfext_wrap.c: In function '_wrap_VSread':
    pyhdf/hdfext_wrap.c:3 551: warning: implicit declaration of function
    'VSread'
    pyhdf/hdfext_wrap.c: In function '_wrap_VSwrite' :
    pyhdf/hdfext_wrap.c:3 571: warning: implicit declaration of function
    'VSwrite'
    pyhdf/hdfext_wrap.c: In function '_wrap_VSfpack' :
    pyhdf/hdfext_wrap.c:3 597: warning: implicit declaration of function
    'VSfpack'
    error: command 'gcc' failed with exit status 1

  • bernhard.voigt@gmail.com

    #2
    Re: pyhdf

    Hi, I can't help here, just a recommendation:

    I am using pytables (http://www.pytables.org) build upon hdf5. If
    you're not bound to hdf4, go and try pytables instead of pyhdf.

    Bernhard

    Comment

    • Joshua J. Kugler

      #3
      Re: pyhdf

      On Wednesday 16 May 2007 09:36, jsaacmk@gmail.c om wrote:
      Has anyone had success installing the pyhdf library with python 2.4
      under linux 2.6.18 (debian)? I have installed the HDF library and
      development package from apt and have downloaded the pyhdf
      installation files.
      I've had success with PyTables, which is a wrapper for HDF5. Or are we not
      talking about the same HDF? :)

      j

      --
      Joshua Kugler
      Lead System Admin -- Senior Programmer

      PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

      --
      Posted via a free Usenet account from http://www.teranews.com

      Comment

      Working...