I tried installing h5py using 'easy_install' but I got a huge error
message that is 1500+ lines. Here is the first few lines.
---
Warning: Can't determine HDF5 version, assuming 1.6 (use --api= to
override)
h5py/h5.c:4:20: error: Python.h: No such file or directory
h5py/h5.c:5:26: error: structmember.h: No such file or directory
h5py/h5.c:7:6: error: #error Python headers needed to compile C
extensions, please install development version of Python.
h5py/h5.c:39: error: expected specifier-qualifier-list before
‘PyObject’
In file included from /usr/lib/python2.6/dist-packages/numpy/core/
include/numpy/ndarrayobject.h:61,
from /usr/lib/python2.6/dist-packages/numpy/core/
include/numpy/arrayobject.h:14,
from h5py/compat.h:20,
from h5py/h5.c:140:
/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:
30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘npy_longlong’
/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:
31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘npy_ulonglong’
In file included from /usr/lib/python2.6/dist-packages/numpy/core/
include/numpy/ndarrayobject.h:61,
from /usr/lib/python2.6/dist-packages/numpy/core/
include/numpy/arrayobject.h:14,
from h5py/compat.h:20,
from h5py/h5.c:140:
/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:
71:2: error: #error Must use Python with unicode enabled.
In file included from /usr/lib/python2.6/dist-packages/numpy/core/
include/numpy/ndarrayobject.h:61,
from /usr/lib/python2.6/dist-packages/numpy/core/
include/numpy/arrayobject.h:14,
from h5py/compat.h:20,
from h5py/h5.c:140:
/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:
267: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘npy_int64’
/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:
268: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘npy_uint64’
---
How can I fix this?
> I tried installing h5py using 'easy_install' but I got a huge error
> message that is 1500+ lines. Here is the first few lines.
> h5py/h5.c:4:20: error: Python.h: No such file or directory
It looks like you don't have the "development" version of Python
installed (Ubuntu package "python-dev"). H5py needs the Python
headers in order to compile.
You'll also need:
HDF5 (libhdf5-serial and libhdf5-serial-dev)
NumPy (python-numpy)
Hope this helps,
Andrew
--
You received this message because you are subscribed to the Google Groups "h5py" group.
To post to this group, send email to h5...@googlegroups.com.
To unsubscribe from this group, send email to h5py+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h5py?hl=en.