{"action":"closed","issue":{"url":"https://api.github.com/repos/h5py/h5py/issues/1093","repository_url":"https://api.github.com/repos/h5py/h5py","labels_url":"https://api.github.com/repos/h5py/h5py/issues/1093/labels{/name}","comments_url":"https://api.github.com/repos/h5py/h5py/issues/1093/comments","events_url":"https://api.github.com/repos/h5py/h5py/issues/1093/events","html_url":"https://github.com/h5py/h5py/issues/1093","id":359065061,"node_id":"MDU6SXNzdWUzNTkwNjUwNjE=","number":1093,"title":"NameError: name 'mpi4py' is not defined when trying to use the \"mpio\" driver on a Linux cluster","user":{"login":"tmaric","id":4638502,"node_id":"MDQ6VXNlcjQ2Mzg1MDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4638502?v=4","gravatar_id":"","url":"https://api.github.com/users/tmaric","html_url":"https://github.com/tmaric","followers_url":"https://api.github.com/users/tmaric/followers","following_url":"https://api.github.com/users/tmaric/following{/other_user}","gists_url":"https://api.github.com/users/tmaric/gists{/gist_id}","starred_url":"https://api.github.com/users/tmaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmaric/subscriptions","organizations_url":"https://api.github.com/users/tmaric/orgs","repos_url":"https://api.github.com/users/tmaric/repos","events_url":"https://api.github.com/users/tmaric/events{/privacy}","received_events_url":"https://api.github.com/users/tmaric/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-11T14:09:00Z","updated_at":"2018-09-21T13:40:04Z","closed_at":"2018-09-21T13:40:04Z","author_association":"NONE","body":"I get  NameError: name 'mpi4py' is not defined when trying to use the \"mpio\" driver with \"h5py\" on a Linux cluster. I have installed \"mpi4py\" and \"h5py\" locally using \r\n\r\n```\r\npip install mpi4py --user\r\npip install h5py --user\r\n```\r\nI have tried to build both \"mpi4py\" as well as \"h5py\" (with MPI support) from source and succeeded, but then I get other MPI run-time errors. \r\n\r\nIs the \"h5py\" that is available via \"pip\" built with MPI support? If not, should I try to build \"h5py\" from source with \"MPI\" support and a path to a parallel HDF5 library?\r\n\r\n * Operating System CentOS Linux release 7.4.1708 (Core)\r\n * Python version Python 3.6.2\r\n * system Python Linux\r\n * h5py version 2.8.0\r\n * HDF5 version hdf5/parallel/1.10.2\r\n * The full traceback/stack trace shown\r\n\r\n  1 --------------------------------------------------------------------------                                                                                                                \r\n  2 A process has executed an operation involving a call to the                                                                                                                               \r\n  3 \"fork()\" system call to create a child process.  Open MPI is currently                                                                                                                    \r\n  4 operating in a condition that could result in memory corruption or                                                                                                                        \r\n  5 other system errors; your job may hang, crash, or produce silent                                                                                                                          \r\n  6 data corruption.  The use of fork() (or system() or other calls that                                                                                                                      \r\n  7 create child processes) is strongly discouraged.                                                                                                                                          \r\n  8                                                                                                                                                                                           \r\n  9 The process that invoked fork was:                                                                                                                                                        \r\n 10                                                                                                                                                                                           \r\n 11   Local host:          [[24011,0],0] (PID 30576)                                                                                                                                          \r\n 12                                                                                                                                                                                           \r\n 13 If you are *absolutely sure* that your application will successfully                                                                                                                      \r\n 14 and correctly survive a call to fork(), you may disable this warning                                                                                                                      \r\n 15 by setting the mpi_warn_on_fork MCA parameter to 0.                                                                                                                                       \r\n 16 --------------------------------------------------------------------------                                                                                                                \r\n 17 --------------------------------------------------------------------------                                                                                                                \r\n 18 A process has executed an operation involving a call to the                                                                                                                               \r\n 19 \"fork()\" system call to create a child process.  Open MPI is currently                                                                                                                    \r\n 20 operating in a condition that could result in memory corruption or                                                                                                                        \r\n 21 other system errors; your job may hang, crash, or produce silent                                                                                                                          \r\n 22 data corruption.  The use of fork() (or system() or other calls that                                                                                                                      \r\n 23 create child processes) is strongly discouraged.                                                                                                                                          \r\n 24                                                                                                                                                                                           \r\n 25 The process that invoked fork was:                                                                                                                                                        \r\n 26                                                                                                                                                                                           \r\n 27   Local host:          [[24011,0],1] (PID 30577)                                                                                                                                          \r\n 28                                                                                                                                                                                           \r\n 29 If you are *absolutely sure* that your application will successfully                                                                                                                      \r\n 30 and correctly survive a call to fork(), you may disable this warning                                                                                                                      \r\n 31 by setting the mpi_warn_on_fork MCA parameter to 0.                                                                                                                                       \r\n 32 -------------------------------------------------------------------------- \r\nRank = 0                                                                                                                                                                                  \r\n 34 Rank = 1                                                                                                                                                                                  \r\n 35 Traceback (most recent call last):                                                                                                                                                        \r\n 36   File \"test-h5py.py\", line 12, in <module>                                                                                                                                               \r\n 37     rbfPolyFile = h5py.File(\"testFile.h5\", 'w', driver=\"mpio\", comm=comm)                                                                                                                 \r\n 38   File \"/home/user/.local/lib/python3.6/site-packages/h5py/_hl/files.py\", line 311, in __init__                                                                                       \r\n 39     fapl = make_fapl(driver, libver, **kwds)                                                                                                                                              \r\n 40   File \"/home/user/.local/lib/python3.6/site-packages/h5py/_hl/files.py\", line 117, in make_fapl                                                                                      \r\n 41     set_fapl(plist, **kwds)                                                                                                                                                               \r\n 42   File \"/home/user/.local/lib/python3.6/site-packages/h5py/_hl/files.py\", line 43, in _set_fapl_mpio                                                                                  \r\n 43     kwargs.setdefault('info', mpi4py.MPI.Info())                                                                                                                                          \r\n 44 NameError: name 'mpi4py' is not defined                                                                                                                                                   \r\n 45 Traceback (most recent call last):                                                                                                                                                        \r\n 46   File \"test-h5py.py\", line 12, in <module>                                                                                                                                               \r\n 47     rbfPolyFile = h5py.File(\"testFile.h5\", 'w', driver=\"mpio\", comm=comm)                                                                                                                 \r\n 48   File \"/home/user/.local/lib/python3.6/site-packages/h5py/_hl/files.py\", line 311, in __init__                                                                                       \r\n 49     fapl = make_fapl(driver, libver, **kwds)                                                                                                                                              \r\n 50   File \"/home/user/.local/lib/python3.6/site-packages/h5py/_hl/files.py\", line 117, in make_fapl                                                                                      \r\n 51     set_fapl(plist, **kwds)                                                                                                                                                               \r\n 52   File \"/home/user/.local/lib/python3.6/site-packages/h5py/_hl/files.py\", line 43, in _set_fapl_mpio                                                                                  \r\n 53     kwargs.setdefault('info', mpi4py.MPI.Info())                                                                                                                                          \r\n 54 NameError: name 'mpi4py' is not defined                                                                                                                                                   \r\n 55 srun: error: hpa0231: tasks 0-1: Exited with exit code \r\n\r\n\r\n"}}
{"actor":{"display_login":"tacaswell"}}