Application error
Awaiting user inputI have installed Gurobi and when I try to run my code I get the following error.
File "C:\Users\kumudua\Anaconda3\lib\site-packages\pyomo\solvers\plugins\solvers\GUROBI_RUN.py", line 61, in gurobi_run
model = read(model_file)
File "src\gurobipy\gurobi.pxi", line 3571, in gurobipy.read
File "src\gurobipy\gurobi.pxi", line 80, in gurobipy.gurobi.read
File "src\gurobipy\gurobi.pxi", line 32, in gurobipy.gurobi._getdefaultenv
File "src\gurobipy\env.pxi", line 62, in gurobipy.Env.__init__
gurobipy.GurobiError: Unable to open Gurobi license file ' C:\gurobi950\gurobi.lic'
ERROR: Solver (gurobi) returned non-zero return code (1)
ERROR: See the solver log above for diagnostic information.
I referred to the previously posted questions and noticed a similar issue and has been advised to run the following command. So I tried that also and get this;
Error 10009: Unable to open Gurobi license file ' C:\gurobi950\gurobi.lic'
My licence is valid till Nov 2022 and cannot figure out the issue. Please advise.
Kumudu
gurobi_cl /Library/gurobi903/mac64/examples/data/misc07.lp
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Kumudu,
A few things are mixed up here, it seems. You are running on Windows I presume, judging by the paths in your error message. Yet, the command you tried to run is using a macOS path.
Can you please check whether there is a license file in "C:\gurobi950\gurobi.lic"? You may also try moving this license file to "C:\gurobi\gurobi.lic", instead.
I hope that helps.
Cheers,
Matthias0
Post is closed for comments.
Comments
2 comments