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:898: warning: implicit declaration of function 'HEprint' pyhdf/hdfext_wrap.c: In function '_SDreaddata_0': pyhdf/hdfext_wrap.c:1036: warning: implicit declaration of function 'SDreaddata' pyhdf/hdfext_wrap.c: In function '_SDwritedata_0': pyhdf/hdfext_wrap.c:1145: warning: implicit declaration of function 'SDwritedata' pyhdf/hdfext_wrap.c: In function '_SDgetcompress': pyhdf/hdfext_wrap.c:1205: warning: implicit declaration of function 'SDgetcompress' pyhdf/hdfext_wrap.c:1217: error: 'COMP_CODE_SZIP' undeclared (first use in this function) pyhdf/hdfext_wrap.c:1217: error: (Each undeclared identifier is reported only once pyhdf/hdfext_wrap.c:1217: error: for each function it appears in.) pyhdf/hdfext_wrap.c:1218: error: 'comp_info' has no member named 'szip' pyhdf/hdfext_wrap.c:1219: error: 'comp_info' has no member named 'szip' pyhdf/hdfext_wrap.c:1220: error: 'comp_info' has no member named 'szip' pyhdf/hdfext_wrap.c:1221: error: 'comp_info' has no member named 'szip' pyhdf/hdfext_wrap.c:1222: error: 'comp_info' has no member named 'szip' pyhdf/hdfext_wrap.c: In function '_SDsetcompress': pyhdf/hdfext_wrap.c:1245: error: 'COMP_CODE_SZIP' undeclared (first use in this function) pyhdf/hdfext_wrap.c:1246: error: 'comp_info' has no member named 'szip' pyhdf/hdfext_wrap.c:1247: error: 'comp_info' has no member named 'szip' pyhdf/hdfext_wrap.c:1251: warning: implicit declaration of function 'SDsetcompress' pyhdf/hdfext_wrap.c: In function '_wrap_VSseek': pyhdf/hdfext_wrap.c:3531: warning: implicit declaration of function 'VSseek' pyhdf/hdfext_wrap.c: In function '_wrap_VSread': pyhdf/hdfext_wrap.c:3551: warning: implicit declaration of function 'VSread' pyhdf/hdfext_wrap.c: In function '_wrap_VSwrite': pyhdf/hdfext_wrap.c:3571: warning: implicit declaration of function 'VSwrite' pyhdf/hdfext_wrap.c: In function '_wrap_VSfpack': pyhdf/hdfext_wrap.c:3597: warning: implicit declaration of function 'VSfpack' error: command 'gcc' failed with exit status 1 -- http://mail.python.org/mailman/listinfo/python-list