You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the newest gurobipy version 12.0 that was released just 2 days ago, optlang returns the following error and stops due to a change in gurobipy's addConstr() function. Here's the relevant part of this error (used from within CNApy->cobrapy->optlang):
File "/.../cnapy-dev-310/lib/python3.10/site-packages/cobra/core/model.py", line 755, in add_reactions
self._populate_solver(pruned)
File "/.../cnapy-dev-310/lib/python3.10/site-packages/cobra/core/model.py", line 1130, in _populate_solver
if reaction.id not in self.variables:
File "/.../envs/cnapy-dev-310/lib/python3.10/site-packages/cobra/core/model.py", line 1015, in variables
return self.solver.variables
File "/.../envs/cnapy-dev-310/lib/python3.10/site-packages/optlang/interface.py", line 1248, in variables
self.update()
File "/.../envs/cnapy-dev-310/lib/python3.10/site-packages/optlang/gurobi_interface.py", line 671, in update
super(Model, self).update(callback=self.problem.update)
File "/.../envs/cnapy-dev-310/lib/python3.10/site-packages/optlang/interface.py", line 1473, in update
self._add_constraints(add_constr)
File "/.../envs/cnapy-dev-310/lib/python3.10/site-packages/optlang/gurobi_interface.py", line 728, in _add_constraints
self.problem.addConstr(lhs, sense, rhs, name=constraint.name)
File "src/gurobipy/_model.pyx", line 3894, in gurobipy._model.Model.addConstr
TypeError: addConstr() takes at most 3 positional arguments (4 given)
The text was updated successfully, but these errors were encountered:
With the newest gurobipy version 12.0 that was released just 2 days ago, optlang returns the following error and stops due to a change in gurobipy's addConstr() function. Here's the relevant part of this error (used from within CNApy->cobrapy->optlang):
The text was updated successfully, but these errors were encountered: