Dolphin-convert fails to convert from gmsh to xml

Hello,
I created a spherical mesh you gmsh. I’d like to use it in my Fenics code so I tried to convert it by running dolfin-convert my_mesh.msh my_mesh.xml but I get the folowing error:

ValueError: invalid literal for int() with base 10: ‘4 4746\n’

I can’t see how to fix it.

I’m open to all remarks, the final purpose only being to be able to use a spherical mesh inside Fenics.
Thank’s !

Eloi.

I believe dolfin-convert is considered deprecated now. Take a look at meshio: https://github.com/nschloe/meshio

There is also a huge thread on this forum about meshing, which contains many examples: Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio