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
It is running a snakemake file. However when using the gurobi solver, I get the following error:
Running SMETANA for sample bin.122 ...
Loading community: all
Running SCS for community all on medium M8...
Restricted license - for non-production use only - expires 2026-11-23
Traceback (most recent call last):
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/bin/smetana", line 89, in <module>
main(
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/lib/python3.11/site-packages/smetana/interface.py", line 345, in main
entries = run_detailed(comm_id, community, medium_id, excluded_mets, env, verbose, min_mol_weight,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/lib/python3.11/site-packages/smetana/interface.py", line 174, in run_detailed
scs = sc_score(community, environment=env, verbose=verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/lib/python3.11/site-packages/smetana/smetana.py", line 38, in sc_score
solver = solver_instance(community.merged)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/lib/python3.11/site-packages/reframed/solvers/__init__.py", line 104, in solver_instance
return solvers[solver](model)
^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/lib/python3.11/site-packages/reframed/solvers/gurobi_solver.py", line 57, in __init__
self.build_problem(model)
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/lib/python3.11/site-packages/reframed/solvers/solver.py", line 99, in build_problem
self.update()
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/lib/python3.11/site-packages/reframed/solvers/solver.py", line 80, in update
self.add_constraints(self._cached_constrs)
File "/mnt/lscratch/users/rparise/Thesis/Envs/ece8ca1e4744f5192f12549dd720d25d_/lib/python3.11/site-packages/reframed/solvers/gurobi_solver.py", line 72, in add_constraints
self.problem.addConstr(expr, sense_mapping[sense], rhs, constr_id)
File "src/gurobipy/_model.pyx", line 3894, in gurobipy._model.Model.addConstr
TypeError: addConstr() takes at most 3 positional arguments (5 given)
Could you help me find out what is causing this error and how I can fix that addConstr() error? Thank you
The text was updated successfully, but these errors were encountered:
This is my smetana command:
Could you help me find out what is causing this error and how I can fix that addConstr() error? Thank you
The text was updated successfully, but these errors were encountered: