It looks like the path to the installed HDF5 library is messed up and I think 
you need shared HDF5 in order to work with H5Py

I installed H5Py on my Mac 10.6.8 by building HDF5

./configure --with-szip=/path_to_szip_install_dir --enable-shared 
--prefix=/path_to_where_install_hdf5
make 
make check
make install

Then I used

python setup.py build --hdf5=<path_to_where_install_hdf5>

Worked like magic :-)

Hope this helps.

Elena


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal  The HDF Group  http://hdfgroup.org   
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



On Oct 19, 2012, at 9:53 AM, Axel Perschmann wrote:

> Hello, 
> 
> I finally managed to install HDF5 following this tutorial: 
> http://cdx.jpl.nasa.gov/documents/technical-design/accessing-hdf-data-from-python-on-mac-os-x/
> 
> But now I'm stuck with h5py ... 
> Here I tried to follow following tutorial: 
> http://h5py.alfven.org/docs-2.1/intro/build.html
> 
> This is the answer i recieve: 
> python setup.py build
> 
> running build
> running build_py
> running build_ext
> building 'h5py.defs' extension
> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g 
> -O2 -DNDEBUG -g -O3 -DH5_USE_16_API 
> -I/Library/Python/2.7/site-packages/numpy-1.8.0.dev_9597b1f_20120920-py2.7-macosx-10.8-x86_64.egg/numpy/core/include
>  -I/Volumes/DatenHD/axelperschmann/Downloads/Python/h5py-2.0.1/lzf 
> -I/Library/Frameworks/Python.framework/Versions/2.7/lib/libhdf5.a/include 
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
> h5py/defs.c -o build/temp.macosx-10.6-intel-2.7/h5py/defs.o
> cc1: error: 
> /Library/Frameworks/Python.framework/Versions/2.7/lib/libhdf5.a/include: Not 
> a directory
> cc1: error: 
> /Library/Frameworks/Python.framework/Versions/2.7/lib/libhdf5.a/include: Not 
> a directory
> lipo: can't figure out the architecture type of: 
> /var/folders/bs/4rlp9mrd7bs1s_462ptr41p80000gn/T//ccL1e4xx.out
> error: command 'gcc-4.2' failed with exit status 1
> 
> Can anyone help me? 
> In one forumpost I read, I might try following command: 
> python setup.py build --hdf5=<path to hdf5>  
> 
> but where exactly is hdf5 located? within 
> /Library/Frameworks/Python.framework/Versions/2.7/lib are several files with 
> hdf5 in their names. 
> 
> thanks, 
> Axel         
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to