GurobiError: HostID mismatch (licensed to 5dc163b3, hostid is 5dc16bc8) in WSL
AnsweredI have already installed (the academic version) gurobi 9.5 on my laptop (windows). I just added additional wsl. However, once I shut down and restart the system, gurobipy throws an error when I run the python code and the error is the following.
"GurobiError: HostID mismatch (licensed to 5dc163b3, hostid is 5dc16bc8)"
How could I fix this error?
-
Hello Vigneshwaran,
Thank you for posting your question. You are getting this error because each standard free academic license is associated with a specific HostID. However, rebooting your machine can change the HostID within WSL. Instructions for setting up Gurobi in WSL2 can be found in the following article:
How do I set up Gurobi in WSL2 (Windows Subsystem for Linux)?
I hope that this article helps you solve your problem. If you are still experiencing issues with your license and installation after following these instructions, you may open a support request through the Gurobi Help Center.
Thanks,
-Dan
0 -
What is a floating license? I am using Gurobi 9.5 and wls (floating license) academic license for WSL is only for Gurobi version 10.
0 -
Hello,
Same problem here with WSL.
From the article "Option 2: Using an single-machine individual Gurobi License" where can I find the information for the grbgetkey command?
grbgetkey xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx --input wsl2-hostinfo.txt
The user portal does not have the string to call the command.
0 -
Just in case someone else faces the same problem:
On the Licenses page in the user portal, you should see your licenses. You should also see an "Install" button on the right. Clicking this should show you the code for the grbgetkey command.
Cheers,
Matthias0
Please sign in to leave a comment.
Comments
4 comments