License problem
AnsweredI have an active academic license for using gurobi, and I worked with that a lot. today, I got an error like below. I check the directory the license was there as well. please guide me. It doesn't work anymore.
GurobiError: Unable to open Gurobi license file ' C:\gurobi800\c\gurobi.lic'
-
Hi Fatemeh,
Please check whether your GRB_LICENSE_FILE environment variable is set correctly and points to the actual location of the license file. You can also copy the license file to C:\gurobi\gurobi.lic.
Cheers,
Matthias0 -
Hi Matties,
I have to uninstall anaconda and gurobi and install all again an follow all procedures, but the problem is it still hints to the previous directory and version of the gurobi that at this moment is not on the computer.
I tried to change directory but still doesn't work. my OS is windows 64.
0 -
I only want to tell that I fix the problem, I share my mistake with others. maybe it can help.
2 -
I received an academic license today and tried to run my model using gurobi. I get this error:
ERROR: Solver (gurobi) returned non-zero return code (1)
ERROR: Solver log: Using license file C:\Users\kaise Traceback (most recent
call last):
File "<stdin>", line 5, in <module> File
"C:\Users\kaise\anaconda3\lib\site-
packages\pyomo\solvers\plugins\solvers\GUROBI_RUN.py", line 61, in
gurobi_run
model = read(model_file)
File "gurobi.pxi", line 3198, in gurobipy.read File "gurobi.pxi", line
80, in gurobipy.gurobi.read File "gurobi.pxi", line 32, in
gurobipy.gurobi._getdefaultenv File "env.pxi", line 67, in
gurobipy.Env.__init__
gurobipy.GurobiError: Unable to open Gurobi license file 'C:\Users\kaise'I used this code to check for the license:
gurobi_cl --license
And received the following error:
Using license file C:\Users\kaise
Set parameter LogFile to value gurobi.logFailed to set up a license
ERROR 10009: Unable to open Gurobi license file 'C:\Users\kaise'
This is the default location and has been set as a system variable.
Any help would be much appreciated!
0 -
If your license file is saved as \(\texttt{C:\Users\kaise\gurobi.lic}\), you shouldn't need to set the \(\texttt{GRB_LICENSE_FILE}\) system environment variable. If you do set \(\texttt{GRB_LICENSE_FILE}\), it should be set to the full path of the license file, including the filename. E.g., setting the environment variable \(\texttt{GRB_LICENSE_FILE}\) to \(\texttt{C:\Users\kaise\gurobi.lic}\) should work, but \(\texttt{C:\Users\kaise}\) may not.
1 -
Once I restarted anaconda, this fix worked!
Thank you so much!
0
Please sign in to leave a comment.
Comments
6 comments