ImportError: dynamic module does not define module export function (PyInit_MPI)
Issue #58
invalid
After compiling from source, during usage I get a "ImportError: dynamic module does not define module export function (PyInit_MPI)" with this line "from mpi4py import MPI". Surprisingly, if I go to the site-packages directory then importing MPI does not raise the above error. This is quite bizarre and I don't know how to resolve this. What might be causing the problem and how can it be resolved? I am using Python 3.
Comments (3)
-
-
@dchandan Any news? Could you figure out what's going one?
-
- edited description
- changed status to invalid
This does not look like an issue in mpi4py. As the OP did not replied back, I'm closing it as invalid.
- Log in to comment
I guess you have an import path issue, and your Python 3 interpreter is picking a Python 2 mpi4py build.
What's the output of the following command?:
Does the path correspond to your Python 3 site-packages directory?