OSError when `import openmc.lib` or `import openmc.deplete`

I have installed openMC on Ubuntu16lts-x86_64 system by cmake after I installed mpich, libmpich-dev, openmpi, libopenmpi-dev, libhdf5-dev and hdf5. The python API has been installed by python3 steup.py install. Everything seems fine when I tested examples.
However, when I tested import openmc.lib or import openmc.deplete, error happened as following:

import openmc.lib

>>>

Ma,

Interesting. Can you provide more information on your build steps? How did you install the dependencies, specifically HDF5? It looks like OpenMC isn’t linked against your HDF5 library. What command did you use to build OpenMC?

Thanks,

Andrew

Andrew,

Thanks for your attention. The problem has been solved. There were several ‘libhdf5.so’ on the location of PATH in my system. When I installed OpenMC by source, it caused chaos. After I specified only one right libhdf5.so file, the compilation was right.

Thanks!

Ma

在 2020年1月5日星期日 UTC+8上午1:20:06,Andrew Johnson写道: