473,387 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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: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
2 4249
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: teraom | last post by:
Hi, I am working on porting an existing windows application to mac OS X and I am stuck. I am not able to install pyhdf on my mac. I have HDF installed through macports. Easy_install does...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.