0

As I am trying to run parallel hdf5 with h5py and mpi4py, I am met with the following error:

 NameError: global name 'mpi4py' is not defined

Googling suggests that this is because h5py is not "mpi-aware" and suggests recompiling. I would like to do this within the package system, such that I can update packages safely, etc. How can I achieve this?

4
  • How did you install mpi4py?
    – edwinksl
    Jun 28, 2016 at 10:24
  • Like this: sudo apt-get install python-mpi4py Jun 28, 2016 at 10:37
  • You are using Python 2 I assume?
    – edwinksl
    Jun 28, 2016 at 10:41
  • I tried with both 2 and 3. The difference is that python3 will not say "global" in front of name in the error message. Jun 28, 2016 at 10:44

0

You must log in to answer this question.

Browse other questions tagged .