Import from gmsh and define boundary conditions

Please take some time to carefully format your question such that code snippets and mathematical formulae are correctly presented.

Furthermore construct a minimal working example as described here.

The more succinct your question, the more likely it is that people will be able to offer help.

For your specific question, there is a long thread, Where I have covered most of the different issues you can get when importing external meshes, see Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio