How are you scheduling this? (e.g. what parameters do you define in your SLURM script or similar)
The explanation for the error is given in the message – MPI doesn’t find the two necessary slots (e.g. you request only one task in the scheduling script).