[<Metabolite MAM10620ve2 at 0x7ff899d47358>, <Metabolite MAM10620sf3 at 0x7ff899d47320>, <Metabolite MAM10620sg6 at 0x7ff899d47470>]
<class 'optlang.glpk_interface.Model'>
cobra.exceptions.OptimizationError: Solver status is 'undefined'.
[<Metabolite MAM10620ve2 at 0x7ff899d47358>, <Metabolite MAM10620sf3 at 0x7ff899d47320>, <Metabolite MAM10620sg6 at 0x7ff899d47470>]
<class 'optlang.glpk_interface.Model'>
cobra.exceptions.OptimizationError: Solver status is 'undefined'.
import cobra model = cobra.io.read_sbml_model('Output.xml') print(model.metabolites[:3]) print(type(model.solver)) model.solver = 'glpk' blocked = cobra.flux_analysis.find_blocked_reactions(model) print(blocked)
[<Metabolite MAM10620ve2 at 0x7ff899d47358>, <Metabolite MAM10620sf3 at 0x7ff899d47320>, <Metabolite MAM10620sg6 at 0x7ff899d47470>] <class 'optlang.glpk_interface.Model'> cobra.exceptions.OptimizationError: Solver status is 'undefined'.
import cobra model = cobra.io.read_sbml_model('Output.xml') print(model.metabolites[:3]) print(type(model.solver)) blocked = cobra.flux_analysis.find_blocked_reactions(model) print(blocked)
[<Metabolite MAM10620ve2 at 0x7ff899d47358>, <Metabolite MAM10620sf3 at 0x7ff899d47320>, <Metabolite MAM10620sg6 at 0x7ff899d47470>] <class 'optlang.glpk_interface.Model'> cobra.exceptions.OptimizationError: Solver status is 'undefined'.
Does everyone know how I can solve this issue?