I am passing an mpi communicator from python to C. I chose to use boost\'s mpi communicator as mpi4py does not seem to have good C support. Check it out:
This problem may occur if the .so
file from homebrew's formula links against a different python
library than the interpreter you are running, see also this thread and this response.
If you have no other dependencies then running your program using the python interpreter from homebrew (which should be located in /usr/local/bin/
) may solve the issue.