No attribute '__qualname__' on mpi4py 3.1.6

We have seen this in the past at No attribute '__qualname__' due to mpi4py 4.0.0 , although the error there was about mpi4py 4.0, and downgrading to 3.1 fixed the issue.

Is there a specific reason why you are using mpi4py from pypi rather than from conda? It’s likely that the conda package expects mpi4py to be installed from conda rather than pypi.