ValueError: invalid literal for int() with base 10 when using meshconvert.py

I had the same problem and solved it by downloading an earlier version of gmsh (3.0.6) and produced the mesh that way. Then dolfin-convert can handle it.