Problem running h5py on mac osx 10.6.8 python 2.7.2 (32-bit)

40 views
Skip to first unread message

kwb

unread,
Nov 27, 2011, 9:48:28 PM11/27/11
to h5py
Hi,

I'm having problems getting h5py to work. Installation/compilation
seems to be successful (albeit with a lot of warnings), but importing
h5py fails due to not finding the library ("Reason: image not found").
It seems to pick up a hard-coded library path from somewhere.

I have the 32-bit version (for compatibility with matplotlib) of
python 2.7.2 from python.org and installed the 32-bit binaries of hdf5
from here: http://www.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.7/bin/mac-intel/hdf5-1.8.7-mac-intel-shared.tar.gz
installed in /usr/local

When I download h5py-2.0.1 and build (with python setup.py build --
hdf5=/usr/local) & test I get: http://pastebin.com/BytF3RyD

It seems to be looking for the library in: /mnt/scr1/release-binary/
hdf5/v187/builds/tejeda/lib/libhdf5.7.dylib which has nothing to do
with anything on my system AFAIK.

But the library is right there in /usr/local:

$ file /usr/local/lib/libhdf5.dylib
/usr/local/lib/libhdf5.dylib: Mach-O dynamically linked shared library
i386

$ python --version
Python 2.7.2

$ file `which python`
/Library/Frameworks/Python.framework/Versions/2.7/bin/python: Mach-O
universal binary with 2 architectures
/Library/Frameworks/Python.framework/Versions/2.7/bin/python (for
architecture ppc): Mach-O executable ppc
/Library/Frameworks/Python.framework/Versions/2.7/bin/python (for
architecture i386): Mach-O executable i386

$ python
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 14:13:39)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>


Any thoughts?


Many thanks,


Reply all
Reply to author
Forward
0 new messages