preCICE not loading on Ubuntu 26.04

I recently faced the following issue on two different installations of Ubuntu 26.04, which should also affect newer versions. I am documenting here until we find a better place:

preCICE does not load. Any run.sh script of any tutorial hangs, without any preCICE output. In a Python shell, import precice never returns. However, precice-version and other simple tools seem to work.

The problem originated from MPI, as mpirun was not starting either. The solution was to set a different byte transport layer for OpenMPI (more documentation):

export OMPI_MCA_btl=self,sm