Mpirun failure for fenics 2019.1.0 installed from conda forge

I installed Fenics 2019.1.0 using miniconda as follows:

conda create -n fenics2019scipy -c conda-forge  python=3.7 scipy=1.5.1 fenics numpy=1.16.4

Following which, I am able to run scripts e.g. demo_cahn-hilliard.py perfectly fine. However, when I do an mpirun e.g.

mpirun -np 2 python demo_cahn-hilliard.py

The code hangs and my CPU usage goes to 100% on all threads. An mpirun using a container e.g. singularity seems to work fine but anaconda seems to make some noise.

Any help on this would be greatly appreciated!

Hi,

Here is the solution for the ones had the same problem.