By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,325 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

pyhdf

P: n/a
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

May 16 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

May 18 '07 #2

P: n/a
On Wednesday 16 May 2007 09:36, js*****@gmail.com 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
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ *ID 0xDB26D7CE

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

May 18 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.