ImportError: undefined symbol: H5Pget_fapl_mpio

1,423 views
Skip to first unread message

Brad Hollister

unread,
Oct 14, 2014, 7:52:02 PM10/14/14
to h5...@googlegroups.com
Hi,

I've successfully build hdf5-1.8.13 (for parallel usage) and have build h5py-2.3.1 with the -mpi option. I've used the following guides:


However, after installing h5py and trying to import the module, I get the following error:

ImportError: /home/behollis/.python-eggs/h5py-2.3.1-py2.7-linux-x86_64.egg-tmp/h5py/defs.so: undefined symbol: H5Pget_fapl_mpio

Any suggestions to fix this?

Regards,
Brad


Andrew Collette

unread,
Oct 15, 2014, 11:11:22 AM10/15/14
to h5...@googlegroups.com
Hi Brad,
Looks like you're not linking against Parallel HDF5 for some reason.
Double-check the value for --hdf5=/path/to/hdf5 in your build; it
should point to a directory including things like "include", "lib",
etc.

Also double-check Parallel HDF5 is built with both --enable-parallel
and --enable-shared.

Andrew

florad...@gmail.com

unread,
Aug 7, 2015, 5:41:51 AM8/7/15
to h5py
Hi,

I think you need a MPI version of libhdf5 :

$ldd /usr/local/lib/python2.7/dist-packages/h5py-2.5.0-py2.7-linux-x86_64.egg/h5py/defs.so
        linux-vdso.so.1 =>  (0x00007ffe05bfc000)
        libhdf5.so.7 => /usr/lib/libhdf5.so.7 (0x00007fbfa492d000)
        libhdf5_hl.so.7 => /usr/lib/libhdf5_hl.so.7


So try to install libhdf5-mpi-dev libhdf5-openmpi-7 libhdf5-openmpi-dev mpi-default-dev

Debian  :
#apt-get install libhdf5-mpi-dev


$dpkg -L   libhdf5-openmpi-7
/usr/lib/libhdf5.so.7
/usr/lib/libhdf5_fortran.so.7
/usr/lib/libhdf5_hl.so.7

Emmanuel
Reply all
Reply to author
Forward
0 new messages