Error while loading GMSH mesh

Dear FEniCS community.

When reading a .gmsh mesh using dolfinx.io.gmshio I’m getting the following meshlog:

Error   : Unknown number option 'Mesh.MinQuality'
Info    : Reading 'temp.msh'...
Info    : 17 entities
Info    : 265 nodes
Info    : 419 elements
Info    : Done reading 'temp.msh'

The MWE is

from dolfinx.io import gmshio
from mpi4py import MPI

mesh, _, _ = gmshio.read_from_msh('temp.msh', MPI.COMM_WORLD, gdim=2)

where temp.msh is a generic GMSH mesh. It is important to mention that this error does not stop the code and apparently it does not affect the computations.

The system is a MAC M2 Max and using the latest fenics-dolfinx=0.9.0 conda environment. I have not observed this behavior on a x86 MAC machine with similar conda environment.

Without the actual mesh, I am not sure what you want us to do.
Please note that this is probably related to your msh file, as Mesh.MinQuality is not something that is in dolfinx, but the GMSH Python API, see: mesh.minquality · Search · GitLab

The mesh can be generated using the following .geo code:

SetFactory("Built-in");
h=1;
Point(1) = {0, 0, 0, h}; 
Point(2) = {1, 0, 0, h};
Point(3) = {1, 1, 0, h};
Point(4) = {0,1, 0, h};
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};

//+
Curve Loop(1) = {1, 2, 3, 4};
//+
Plane Surface(1) = {1};
//+
Physical Surface("1",1) = {1};
//+
Physical Curve("1", 1) = {1};
//+
Physical Curve("2", 2) = {2};
//+
Physical Curve("3", 3) = {3};
//+
Physical Curve("4", 4) = {4};

Mesh 2;

I have uploaded a temp file here
https://tmpfiles.org/dl/17235755/temp.msh

It is true, I thought that as it happened during the file reading process, there was some detail in between.

For some reason, the error came from an old version of GMSH on my conda environment. I had version 4.12.2 instead of the most recent one which is 4.13.1.

Updating the env solved the problem.