. Advertisement .
..3..
. Advertisement .
..4..
I get the ”fatal python error: pythreadstate_get: no current thread” error when running my program.
try: from boost.mpi import world
except ImportError: from mpi import world
err = run_with_mpi(infile, world, stdout, stderr, exc)
There are no issues on systems with boost.mpi installed while doing this. However, installing boost.mpi on a Mac. it gives me the error message:
Fatal Python error: PyThreadState_Get: no current thread
Can someone give me some solution for this issue?
The cause: If the
.so
file from homebrew’s formula links against a differentPython
library than the interpreter you are using, this issue can arise.Solution: You can fix the issue by running your program using the python interpreter from homebrew (which should be located in
/usr/local/bin/
)