segrelab / comets

Computation of Microbial Ecosystems in Time and Space
19 stars 10 forks source link

Error 'runComets' #51

Closed 2132030 closed 4 months ago

2132030 commented 4 months ago

I am using Linux system and MATLAB R2021b.

runComets(layout,cometsDirectory) Executing COMETS in the directory /home/name/CometsRunDir Warning: Invalid file or directory '/usr/gurobi/gurobi1100/linux64/'.

In javaclasspath>local_validate_dynamic_path (line 271) In javaclasspath>local_javapath (line 187) In javaclasspath (line 103) In runCometsOnDirectory (line 35) In runComets (line 41)

ans =

'-script
 running script file: comets_script.txt
 Current Java version: 21.0.2
 Loading layout file 'comets_layout.txt'...
 null/COMETS_manifest.txt (No such file or directory)
 Unable to initialize manifest file. 
 Continuing without writing manifest file.
 Found 14 model files!
 Loading 'iYO844xml.txt' ...
 Exception in thread "main" java.lang.NoClassDefFoundError: gurobi/GRBException
    at edu.bu.segrelab.comets.fba.FBAModel.<init>(FBAModel.java:224)
    at edu.bu.segrelab.comets.fba.FBAModel.<init>(FBAModel.java:287)
    at edu.bu.segrelab.comets.fba.FBAModel.loadModelFromFile(FBAModel.java:2648)
    at edu.bu.segrelab.comets.fba.FBACometsLoader.loadModelFromFile(FBACometsLoader.java:2918)
    at edu.bu.segrelab.comets.fba.FBACometsLoader.parseModelFileLine(FBACometsLoader.java:1168)
    at edu.bu.segrelab.comets.fba.FBACometsLoader.loadLayoutFile(FBACometsLoader.java:316)
    at edu.bu.segrelab.comets.Comets.loadLayoutFile(Comets.java:1657)
    at edu.bu.segrelab.comets.Comets.runScript(Comets.java:541)
    at edu.bu.segrelab.comets.Comets.<init>(Comets.java:233)
    at edu.bu.segrelab.comets.Comets.main(Comets.java:2159)
 Caused by: java.lang.ClassNotFoundException: gurobi.GRBException
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
    ... 10 more
dukovski commented 4 months ago

Hi,

It seems like you don't have Gurobi working properly. Did you get a license for Gurobi?

2132030 commented 4 months ago

yes, I got

dukovski commented 4 months ago

This conversation moved to cometspy, so should I close this issue?

Ql-cy commented 1 week ago

Hi, I got the same error. Did you solve it?

dukovski commented 1 week ago

Hi, I got the same error. Did you solve it?

You need to have gurobi working properly, and have latest version of comets installed with latest version of gurobi. Try that and let me know if all ok.

Ql-cy commented 4 days ago

Hi dukovski,     My gurobi is the version 11. It might be the latest version. But I am not sure the comet-toolbox is the latest. Could you provide it for me? the matlab version.

Best, Lu     ------------------ Original ------------------ From: @.>; Date:  Fri, Jun 28, 2024 10:48 PM To: @.>; Cc: @.>; @.>; Subject:  Re: [segrelab/comets] Error 'runComets' (Issue #51)

 

Hi, I got the same error. Did you solve it?

You need to have gurobi working properly, and have latest version of comets installed with latest version of gurobi. Try that and let me know if all ok.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

dukovski commented 3 days ago

We are behind with the Matlab toolbox development. Can you migrate to cometspy, the python toolbox/interface?

Ql-cy commented 3 days ago

Hi dukovski,     Since we usually use MATLAB, so we want to use the matlab toolbox. If there is no newer version of comets toolbox, could you please tell me the gurobi version that match current comets matlab toolbox?

Best, Lu     ------------------ Original ------------------ From: @.>; Date:  Fri, Jul 5, 2024 06:04 AM To: @.>; Cc: @.>; @.>; Subject:  Re: [segrelab/comets] Error 'runComets' (Issue #51)

 

We are behind with the Matlab toolbox development. Can you migrate to cometspy, the python toolbox/interface?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>