# import h5py: undefined symbol: H5Pget\_fapl\_mpio

**URL:** <https://forum.hdfgroup.org/t/import-h5py-undefined-symbol-h5pget-fapl-mpio/3457>\
**Category:** Hdf-forum archives\
**Created:** [April 28, 2015, 3:43pm UTC](https://forum.hdfgroup.org/t/import-h5py-undefined-symbol-h5pget-fapl-mpio/3457 "2015-04-28T15:43:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![afylot](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/afylot/32/1666_2.png) [@afylot](https://forum.hdfgroup.org/u/afylot)\
**Post date:** [April 28, 2015, 3:43pm UTC](https://forum.hdfgroup.org/t/import-h5py-undefined-symbol-h5pget-fapl-mpio/3457/1 "2015-04-28T15:43:44Z")

</div>

I have installed h5py 2.5.0 with mpi switched on.

I used:

&nbsp;&nbsp;&nbsp;&nbsp;export CC=mpicc  
&nbsp;&nbsp;&nbsp;&nbsp;python3 setup.py configure --mpi  
&nbsp;&nbsp;&nbsp;&nbsp;python3 setup.py build  
&nbsp;&nbsp;&nbsp;&nbsp;python3 setup.py install --prefix=/clusterdata/afylot/local/

(python3 is alias for python 3.4)  
When I import h5py from ipython3 I get

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImportError:  
/clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/  
defs.cpython-34m.so: undefined symbol: H5Pget\_fapl\_mpio

I have checked is mpi is enable by running configure:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;python3 setup.py configure  
--hdf5=/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/ --mpi

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;running configure  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Autodetected HDF5 1.8.14

> **···**
>
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary of the h5py configuration
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Path to HDF5: '/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/'  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HDF5 Version: '1.8.14'  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MPI Enabled: True  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rebuild Required: False
> 
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> Any idea welcome!

---

<div class="post-metadata">

**Author:** ![Pierre\_de\_Buyl](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/p/e0b2c6/32.png) [@Pierre\_de\_Buyl](https://forum.hdfgroup.org/u/Pierre_de_Buyl)\
**Post date:** [April 28, 2015, 3:55pm UTC](https://forum.hdfgroup.org/t/import-h5py-undefined-symbol-h5pget-fapl-mpio/3457/2 "2015-04-28T15:55:39Z")

</div>

Hi,

Is your HDF5 library built with MPI? This is the first thing to check.

> **···**
>
> On Tue, Apr 28, 2015 at 05:43:44PM +0200, simona bellavista wrote:
> 
> > I have installed h5py 2.5.0 with mpi switched on.
> > 
> > I used:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;export CC=mpicc  
> > &nbsp;&nbsp;&nbsp;&nbsp;python3 setup.py configure --mpi  
> > &nbsp;&nbsp;&nbsp;&nbsp;python3 setup.py build  
> > &nbsp;&nbsp;&nbsp;&nbsp;python3 setup.py install --prefix=/clusterdata/afylot/local/
> > 
> > (python3 is alias for python 3.4)  
> > When I import h5py from ipython3 I get
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImportError:  
> > /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/  
> > defs.cpython-34m.so: undefined symbol: H5Pget\_fapl\_mpio
> > 
> > I have checked is mpi is enable by running configure:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;python3 setup.py configure  
> > --hdf5=/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/ --mpi
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;running configure  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Autodetected HDF5 1.8.14
> > 
> > \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary of the h5py configuration
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Path to HDF5: '/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HDF5 Version: '1.8.14'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MPI Enabled: True  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rebuild Required: False
> > 
> > \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> > 
> > Any idea welcome!

---

<div class="post-metadata">

**Author:** ![afylot](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/afylot/32/1666_2.png) [@afylot](https://forum.hdfgroup.org/u/afylot)\
**Post date:** [April 28, 2015, 6:06pm UTC](https://forum.hdfgroup.org/t/import-h5py-undefined-symbol-h5pget-fapl-mpio/3457/3 "2015-04-28T18:06:42Z")

</div>

I have rebuild HDF5 (static) with MPI. I still get the same error. Could it  
be due to some directory missing from path (example: LIBRARY\_PATH, PATH,  
etc)  
By the way: I have looked into the hdf5 libraries (with 'nm  
/clusterdata/afylot/local/lib/\*.a | grep H5Pget\_fapl\_mpio') and I cannot  
find it anywhere

I report the complete error for clarity:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In [3]: import h5py

> **···**
>
> ---------------------------------------------------------------------------  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImportError Traceback (most recent call  
> last)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<ipython-input-3-e81388eeaef8\> in \<module\>()  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----\> 1 import h5py
> 
> /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/\_\_init\_\_.py  
> in \<module\>()  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;21 \_errors.silence\_errors()  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;22  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---\> 23 from . import \_conv  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;24 \_conv.register\_converters()  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;25
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/clusterdata/afylot/h5py/h5r.pxd in init h5py.\_conv  
> (/clusterdata/afylot/download/h5py-2.5.0/h5py/\_conv.c:7274)()
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/clusterdata/afylot/h5py/\_objects.pxd in init h5py.h5r  
> (/clusterdata/afylot/download/h5py-2.5.0/h5py/h5r.c:3184)()
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/clusterdata/afylot/h5py/\_objects.pyx in init h5py.\_objects  
> (/clusterdata/afylot/download/h5py-2.5.0/h5py/\_objects.c:7285)()
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImportError:  
> /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/  
> defs.cpython-34m.so: undefined symbol: H5Pget\_fapl\_mpio
> 
> 2015-04-28 17:55 GMT+02:00 Pierre de Buyl \<pierre.debuyl@chem.kuleuven.be\>:
> 
> > Hi,
> > 
> > Is your HDF5 library built with MPI? This is the first thing to check.
> > 
> > On Tue, Apr 28, 2015 at 05:43:44PM +0200, simona bellavista wrote:  
> > \> I have installed h5py 2.5.0 with mpi switched on.  
> > \>  
> > \> I used:  
> > \>  
> > \> export CC=mpicc  
> > \> python3 setup.py configure --mpi  
> > \> python3 setup.py build  
> > \> python3 setup.py install --prefix=/clusterdata/afylot/local/  
> > \>  
> > \> (python3 is alias for python 3.4)  
> > \> When I import h5py from ipython3 I get  
> > \>  
> > \> ImportError:  
> > \>  
> > /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/  
> > \> defs.cpython-34m.so: undefined symbol: H5Pget\_fapl\_mpio  
> > \>  
> > \> I have checked is mpi is enable by running configure:  
> > \>  
> > \> python3 setup.py configure  
> > \> --hdf5=/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/ --mpi  
> > \>  
> > \> running configure  
> > \> Autodetected HDF5 1.8.14  
> > \>  
> > \>  
> > \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> > \> Summary of the h5py configuration  
> > \>  
> > \> Path to HDF5: '/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/'  
> > \> HDF5 Version: '1.8.14'  
> > \> MPI Enabled: True  
> > \> Rebuild Required: False  
> > \>  
> > \>  
> > \>  
> > \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> > \>  
> > \>  
> > \> Any idea welcome!
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > Twitter: [x.com](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![Pierre\_de\_Buyl](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/p/e0b2c6/32.png) [@Pierre\_de\_Buyl](https://forum.hdfgroup.org/u/Pierre_de_Buyl)\
**Post date:** [April 28, 2015, 6:17pm UTC](https://forum.hdfgroup.org/t/import-h5py-undefined-symbol-h5pget-fapl-mpio/3457/4 "2015-04-28T18:17:28Z")

</div>

Hi,

h5py requires a shared version of HDF5 (see  
[Installation — h5py 3.12.1 documentation](http://docs.h5py.org/en/latest/build.html#building-against-parallel-hdf5) )

> **···**
>
> On Tue, Apr 28, 2015 at 08:06:42PM +0200, simona bellavista wrote:
> 
> > I have rebuild HDF5 (static) with MPI. I still get the same error. Could it  
> > be due to some directory missing from path (example: LIBRARY\_PATH, PATH,  
> > etc)  
> > By the way: I have looked into the hdf5 libraries (with 'nm  
> > /clusterdata/afylot/local/lib/\*.a | grep H5Pget\_fapl\_mpio') and I cannot  
> > find it anywhere
> > 
> > I report the complete error for clarity:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In [3]: import h5py
> > 
> > ---------------------------------------------------------------------------  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImportError Traceback (most recent call  
> > last)  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<ipython-input-3-e81388eeaef8\> in \<module\>()  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----\> 1 import h5py
> > 
> > /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/\_\_init\_\_.py  
> > in \<module\>()  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;21 \_errors.silence\_errors()  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;22  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---\> 23 from . import \_conv  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;24 \_conv.register\_converters()  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;25
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/clusterdata/afylot/h5py/h5r.pxd in init h5py.\_conv  
> > (/clusterdata/afylot/download/h5py-2.5.0/h5py/\_conv.c:7274)()
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/clusterdata/afylot/h5py/\_objects.pxd in init h5py.h5r  
> > (/clusterdata/afylot/download/h5py-2.5.0/h5py/h5r.c:3184)()
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/clusterdata/afylot/h5py/\_objects.pyx in init h5py.\_objects  
> > (/clusterdata/afylot/download/h5py-2.5.0/h5py/\_objects.c:7285)()
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImportError:  
> > /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/  
> > defs.cpython-34m.so: undefined symbol: H5Pget\_fapl\_mpio
> > 
> > 2015-04-28 17:55 GMT+02:00 Pierre de Buyl \<pierre.debuyl@chem.kuleuven.be\>:
> > 
> > \> Hi,  
> > \>  
> > \> Is your HDF5 library built with MPI? This is the first thing to check.  
> > \>  
> > \> On Tue, Apr 28, 2015 at 05:43:44PM +0200, simona bellavista wrote:  
> > \> \> I have installed h5py 2.5.0 with mpi switched on.  
> > \> \>  
> > \> \> I used:  
> > \> \>  
> > \> \> export CC=mpicc  
> > \> \> python3 setup.py configure --mpi  
> > \> \> python3 setup.py build  
> > \> \> python3 setup.py install --prefix=/clusterdata/afylot/local/  
> > \> \>  
> > \> \> (python3 is alias for python 3.4)  
> > \> \> When I import h5py from ipython3 I get  
> > \> \>  
> > \> \> ImportError:  
> > \> \>  
> > \> /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/  
> > \> \> defs.cpython-34m.so: undefined symbol: H5Pget\_fapl\_mpio  
> > \> \>  
> > \> \> I have checked is mpi is enable by running configure:  
> > \> \>  
> > \> \> python3 setup.py configure  
> > \> \> --hdf5=/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/ --mpi  
> > \> \>  
> > \> \> running configure  
> > \> \> Autodetected HDF5 1.8.14  
> > \> \>  
> > \> \>  
> > \> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> > \> \> Summary of the h5py configuration  
> > \> \>  
> > \> \> Path to HDF5: '/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/'  
> > \> \> HDF5 Version: '1.8.14'  
> > \> \> MPI Enabled: True  
> > \> \> Rebuild Required: False  
> > \> \>  
> > \> \>  
> > \> \>  
> > \> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> > \> \>  
> > \> \>  
> > \> \> Any idea welcome!  
> > \>  
> > \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> Hdf-forum is for HDF software users discussion.  
> > \> Hdf-forum@lists.hdfgroup.org  
> > \> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > \> Twitter: [x.com](https://twitter.com/hdf5)  
> > \>
> 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > Twitter: [x.com](https://twitter.com/hdf5)
> 
> --  
> -----------------------------------------------------------  
> Pierre de Buyl  
> KU Leuven - Institute for Theoretical Physics  
> T +32 16 3 27355  
> W [http://pdebuyl.be/](http://pdebuyl.be/)  
> -----------------------------------------------------------

---

<div class="post-metadata">

**Author:** ![afylot](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/afylot/32/1666_2.png) [@afylot](https://forum.hdfgroup.org/u/afylot)\
**Post date:** [April 28, 2015, 9:20pm UTC](https://forum.hdfgroup.org/t/import-h5py-undefined-symbol-h5pget-fapl-mpio/3457/5 "2015-04-28T21:20:50Z")

</div>

thank you, solved

> **···**
>
> 2015-04-28 20:17 GMT+02:00 Pierre de Buyl \<pierre.debuyl@chem.kuleuven.be\>:
> 
> > Hi,
> > 
> > h5py requires a shared version of HDF5 (see  
> > [Installation — h5py 3.12.1 documentation](http://docs.h5py.org/en/latest/build.html#building-against-parallel-hdf5) )
> > 
> > On Tue, Apr 28, 2015 at 08:06:42PM +0200, simona bellavista wrote:  
> > \> I have rebuild HDF5 (static) with MPI. I still get the same error. Could  
> > it  
> > \> be due to some directory missing from path (example: LIBRARY\_PATH, PATH,  
> > \> etc)  
> > \> By the way: I have looked into the hdf5 libraries (with 'nm  
> > \> /clusterdata/afylot/local/lib/\*.a | grep H5Pget\_fapl\_mpio') and I cannot  
> > \> find it anywhere  
> > \>  
> > \> I report the complete error for clarity:  
> > \>  
> > \> In [3]: import h5py  
> > \>  
> > \>  
> > ---------------------------------------------------------------------------  
> > \> ImportError Traceback (most recent  
> > call  
> > \> last)  
> > \> \<ipython-input-3-e81388eeaef8\> in \<module\>()  
> > \> ----\> 1 import h5py  
> > \>  
> > \>  
> > \>  
> > /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/\_\_init\_\_.py  
> > \> in \<module\>()  
> > \> 21 \_errors.silence\_errors()  
> > \> 22  
> > \> ---\> 23 from . import \_conv  
> > \> 24 \_conv.register\_converters()  
> > \> 25  
> > \>  
> > \> /clusterdata/afylot/h5py/h5r.pxd in init h5py.\_conv  
> > \> (/clusterdata/afylot/download/h5py-2.5.0/h5py/\_conv.c:7274)()  
> > \>  
> > \> /clusterdata/afylot/h5py/\_objects.pxd in init h5py.h5r  
> > \> (/clusterdata/afylot/download/h5py-2.5.0/h5py/h5r.c:3184)()  
> > \>  
> > \> /clusterdata/afylot/h5py/\_objects.pyx in init h5py.\_objects  
> > \> (/clusterdata/afylot/download/h5py-2.5.0/h5py/\_objects.c:7285)()  
> > \>  
> > \> ImportError:  
> > \>  
> > /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/  
> > \> defs.cpython-34m.so: undefined symbol: H5Pget\_fapl\_mpio  
> > \>  
> > \>  
> > \>  
> > \> 2015-04-28 17:55 GMT+02:00 Pierre de Buyl \<  
> > pierre.debuyl@chem.kuleuven.be\>:  
> > \>  
> > \> \> Hi,  
> > \> \>  
> > \> \> Is your HDF5 library built with MPI? This is the first thing to check.  
> > \> \>  
> > \> \> On Tue, Apr 28, 2015 at 05:43:44PM +0200, simona bellavista wrote:  
> > \> \> \> I have installed h5py 2.5.0 with mpi switched on.  
> > \> \> \>  
> > \> \> \> I used:  
> > \> \> \>  
> > \> \> \> export CC=mpicc  
> > \> \> \> python3 setup.py configure --mpi  
> > \> \> \> python3 setup.py build  
> > \> \> \> python3 setup.py install --prefix=/clusterdata/afylot/local/  
> > \> \> \>  
> > \> \> \> (python3 is alias for python 3.4)  
> > \> \> \> When I import h5py from ipython3 I get  
> > \> \> \>  
> > \> \> \> ImportError:  
> > \> \> \>  
> > \> \>  
> > /clusterdata/afylot/local/lib64/python3.4/site-packages/h5py-2.5.0-py3.4-linux-x86\_64.egg/h5py/  
> > \> \> \> defs.cpython-34m.so: undefined symbol: H5Pget\_fapl\_mpio  
> > \> \> \>  
> > \> \> \> I have checked is mpi is enable by running configure:  
> > \> \> \>  
> > \> \> \> python3 setup.py configure  
> > \> \> \> --hdf5=/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/ --mpi  
> > \> \> \>  
> > \> \> \> running configure  
> > \> \> \> Autodetected HDF5 1.8.14  
> > \> \> \>  
> > \> \> \>  
> > \> \>  
> > \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> > \> \> \> Summary of the h5py configuration  
> > \> \> \>  
> > \> \> \> Path to HDF5:  
> > '/clusterdata/afylot/local/hdf5-1.8.14/hdf5/lib/'  
> > \> \> \> HDF5 Version: '1.8.14'  
> > \> \> \> MPI Enabled: True  
> > \> \> \> Rebuild Required: False  
> > \> \> \>  
> > \> \> \>  
> > \> \> \>  
> > \> \>  
> > \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> > \> \> \>  
> > \> \> \>  
> > \> \> \> Any idea welcome!  
> > \> \>  
> > \> \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> \> Hdf-forum is for HDF software users discussion.  
> > \> \> Hdf-forum@lists.hdfgroup.org  
> > \> \>  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > \> \> Twitter: [x.com](https://twitter.com/hdf5)  
> > \> \>
> > 
> > \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> Hdf-forum is for HDF software users discussion.  
> > \> Hdf-forum@lists.hdfgroup.org  
> > \> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > \> Twitter: [x.com](https://twitter.com/hdf5)
> > 
> > --  
> > -----------------------------------------------------------  
> > Pierre de Buyl  
> > KU Leuven - Institute for Theoretical Physics  
> > T +32 16 3 27355  
> > W [http://pdebuyl.be/](http://pdebuyl.be/)  
> > -----------------------------------------------------------
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > Twitter: [x.com](https://twitter.com/hdf5)
