Welcome!
Take a read of Please read: make it easier to help you. It’s easier to help if you provide a minimal working example.
Are you sure changing the solver to Gurobi is the problem? That error doesn’t look like it has anything to do with GLPK or Gurobi?