klamt-lab / straindesign

StrainDesign is a python package for the computational design of metabolic networks and based on COBRApy
Apache License 2.0
33 stars 6 forks source link

Too many active session and over the baseline (Gurobi) #21

Open cjrodriguez98 opened 4 months ago

cjrodriguez98 commented 4 months ago

Trying to calculate de gMCS of iJN1463 I get the following error, I think the issue starts when SD tries to trim some GPRs that exceeds the character limit.

WARNING:root: GPR rule integration automatically generates new reactions and metabolites. One of the generated reaction names is beyond or close to the limit of 255 characters permitted by GLPK and Gurobi. The name of the newly generated reaction or metabolite:

ERROR:root:Error code 10030: Overage for too long, 4 active sessions and over the baseline for 34 minutes

VonAlphaBisZulu commented 4 months ago

Thank you very much! I will look into it

VonAlphaBisZulu commented 4 months ago

You said you were using Gurobi with a WSL license or a named-user license? I think I don't get the same error with my named-user license. If the issue is that old Gurobi instances are cluttering, a good destructor should probably be added to https://github.com/klamt-lab/straindesign/blob/main/straindesign/gurobi_interface.py

But then again, why should there be multiple sessions over the baseline for so long.. 🤔