When launching the Gurobi Interactive shell via gurobi.sh or a shortcut to gurobi.bat, you will be prompted for a license key code if no license is found.
No Gurobi license found (user user, host host, hostid 12345678, cores 2)
Running grbgetkey...
info : grbgetkey version 10.0.3, build v10.0.3rc0
Please enter the Key Code for the license
(format is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx):
If you have not yet set up a license file with grbgetkey, please follow these instructions:
- For academics, see How do I obtain a free academic license?
- For others, don't hesitate to get in touch with your account manager or request a Free Evaluation.
If you have set up a license file and Gurobi is not able to locate it, please see Where do I place the Gurobi license file (gurobi.lic)?
If you receive an error such as "EOF" or "unexpected newline", then you have not entered in a valid key code.
warn : unexpected newline
error : No key code entered
Restart the Gurobi Interactive Shell to use a newly retrieved license file
Important note
Note that after the lines
Please enter the Key Code for the license
(format is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx):
you need to provide only the code, i.e.,
12345678-abcd-ABCD-1234-abcABC123456
without the grbgetkey command. You will receive the error "No key code entered" if you mistakenly add the command as well:
grbgetkey 12345678-abcd-ABCD-1234-abcABC123456
Comments
0 comments
Article is closed for comments.