Instantiating a Model with solver=GRB results in InterfacingError('Gurobi environment could not be loaded, check your license.')
69 views
Skip to first unread message
Sean Kelley
unread,
Jul 3, 2023, 5:22:09 PM7/3/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python-MIP
The install instructions for Python-MIP with Gurobi did not work for me. I had to set the GRB_LICENSE_FILE environment variable as well, even though my license file is in my home directory. When I use Gurobi outside of Python-MIP it has no issue finding the license (as it says in Gurobi's docs this is the default place it checks). Would anyone be able to help me understand why I had this issue?
I posted this question on stack overflow as well so hopefully more people will find it.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python-MIP
Ok, so setting the GRB_LICENSE_FILE variable actually didn't help - I just hadn't gotten far enough with my debugger to see it error out. Anyways, could someone have a look on stack overflow and let me know what else I need to do to install Python-MIP to run with Gurobi?
Sean
Sean Kelley
unread,
Jul 3, 2023, 5:53:27 PM7/3/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python-MIP
Looks like the issue is not that I can't run Gurobi through Python MIP but my Gurobi license no longer allows for multiple models that can access Gurobi to be in memory at the same time. I'll take it up with them. Sorry for the bother!