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:
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
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 *
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
Comment