Skip to content

how to run it without run it without Gurobi #3

@vincentt1999

Description

@vincentt1999

hi cogcomp,
nice repo.
I don't have gurobi license but i want use this tool. When i try to directly run it, i came across such problem:

[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------< edu.illinois.cs.cogcomp:CogCompTime >-----------------
[INFO] Building CogCompTime 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for edu.illinois.cs.cogcomp:illinois-prepsrl-model:jar:3.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- exec-maven-plugin:3.1.0:java (default-cli) @ CogCompTime ---
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Downloading the folder from datastore . . . 
                GroupId: readonly.org.cogcomp.gazetteers
                ArtifactId: 1.6/gazetteers.zip
The target /home/tianhao/.cogcomp-datastore/readonly.org.cogcomp.gazetteers/1.6/gazetteers already exists. Skipping download from the datastore . . . 
Downloading the folder from datastore . . . 
                GroupId: readonly.org.cogcomp.brown-clusters
                ArtifactId: 1.5/brown-clusters.zip
The target /home/tianhao/.cogcomp-datastore/readonly.org.cogcomp.brown-clusters/1.5/brown-clusters already exists. Skipping download from the datastore . . . 
Downloading the folder from datastore . . . 
                GroupId: readonly.edu.illinois.cs.cogcomp.ner
                ArtifactId: 4.0/ner-model-enron-conll-all-data.zip
The target /home/tianhao/.cogcomp-datastore/readonly.edu.illinois.cs.cogcomp.ner/4.0/ner-model-enron-conll-all-data already exists. Skipping download from the datastore . . . 
Model file read from /home/tianhao/.cogcomp-datastore/readonly.edu.illinois.cs.cogcomp.ner/4.0/ner-model-enron-conll-all-data/model/EnronCoNLL.model.level1
Model file read from /home/tianhao/.cogcomp-datastore/readonly.edu.illinois.cs.cogcomp.ner/4.0/ner-model-enron-conll-all-data/model/EnronCoNLL.model.level2
Downloading the file from datastore . . . 
                GroupId: readonly.org.cogcomp.levin.verb.class
                ArtifactId: 1.6/levin-verbClass
File /home/tianhao/.cogcomp-datastore/readonly.org.cogcomp.levin.verb.class/1.6/levin-verbClass already exists. Skipping download from the datastore . . . 
Downloading the folder from datastore . . . 
                GroupId: readonly.org.cogcomp.gazetteers
                ArtifactId: 1.3/gazetteers.zip
The target /home/tianhao/.cogcomp-datastore/readonly.org.cogcomp.gazetteers/1.3/gazetteers already exists. Skipping download from the datastore . . . 
Downloading the folder from datastore . . . 
                GroupId: readonly.org.cogcomp.corelex
                ArtifactId: 1.3/corelex_nouns.zip
The target /home/tianhao/.cogcomp-datastore/readonly.org.cogcomp.corelex/1.3/corelex_nouns already exists. Skipping download from the datastore . . . 
/home/tianhao/.cogcomp-datastore/readonly.org.cogcomp.corelex/1.3/corelex_nouns
Aug 09, 2023 5:05:02 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading MapBackedDictionary
Aug 09, 2023 5:05:02 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: noun] [DictionaryFile: index]
Aug 09, 2023 5:05:03 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: verb] [DictionaryFile: index]
Aug 09, 2023 5:05:03 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: adjective] [DictionaryFile: index]
Aug 09, 2023 5:05:03 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: adverb] [DictionaryFile: index]
Aug 09, 2023 5:05:03 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: noun] [DictionaryFile: data]
Aug 09, 2023 5:05:05 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: verb] [DictionaryFile: data]
Aug 09, 2023 5:05:05 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: adjective] [DictionaryFile: data]
Aug 09, 2023 5:05:05 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: adverb] [DictionaryFile: data]
Aug 09, 2023 5:05:05 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: noun] [DictionaryFile: exception]
Aug 09, 2023 5:05:05 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: verb] [DictionaryFile: exception]
Aug 09, 2023 5:05:05 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: adjective] [DictionaryFile: exception]
Aug 09, 2023 5:05:05 PM net.didion.jwnl.dictionary.MapBackedDictionary doLog
INFO: Loading [POS: adverb] [DictionaryFile: exception]
Aug 09, 2023 5:05:05 PM net.didion.jwnl.dictionary.Dictionary doLog
INFO: Installing dictionary net.didion.jwnl.dictionary.MapBackedDictionary@2c235fb8
Downloading the file from datastore . . . 
                GroupId: readonly.org.cogcomp.brown-clusters
                ArtifactId: 1.3/brown-rcv1.clean.tokenized-CoNLL03.txt-c1000-freq1.txt
File /home/tianhao/.cogcomp-datastore/readonly.org.cogcomp.brown-clusters/1.3/brown-rcv1.clean.tokenized-CoNLL03.txt-c1000-freq1.txt already exists. Skipping download from the datastore . . . 
ojAlgo includes a small set of predefined hardware profiles,
none of which were deemed suitable for the hardware you're currently using.
You should set org.ojalgo.OjAlgoUtils.ENVIRONMENT to something that matches the hardware/OS/JVM you're running on.
Additionally it would be appreciated if you contribute your hardware profile to ojAlgo.
https://lists.sourceforge.net/lists/listinfo/ojalgo-user
Model file /home/tianhao/relation_extraction/CogCompTime/models/eventDetector/eventPerceptronDetector_win2_cls0.lc located in a jar file
Model file /home/tianhao/relation_extraction/CogCompTime/models/tempRel/eeTempRelClsBugFix_sent0_labelMode0_clsMode0_win3.lc located in a jar file
Model file /home/tianhao/relation_extraction/CogCompTime/models/tempRel/eeTempRelClsBugFix_sent1_labelMode0_clsMode0_win3.lc located in a jar file
Model file /home/tianhao/relation_extraction/CogCompTime/models/tempRel_ET/etTempRelCls_sent0_labelMode0_clsMode0_win3.lc located in a jar file
Cannot instantiate configuration.

Loading WordNet data and index...
        # of noun synset: 82116
        # of verb synset: 13768
        # of adj synset: 18157
        # of adv synset: 3622
        # of noun: 117798
        # of verb: 11529
        # of adj: 21479
        # of adv: 4481
Done.
[WARNING] 
java.lang.UnsatisfiedLinkError: no GurobiJni65 in java.library.path
    at java.lang.ClassLoader.loadLibrary (ClassLoader.java:1860)
    at java.lang.Runtime.loadLibrary0 (Runtime.java:871)
    at java.lang.System.loadLibrary (System.java:1122)
    at gurobi.GurobiJni.<clinit> (GurobiJni.java:198)
    at gurobi.GRBEnv.<init> (GRBEnv.java:16)
    at gurobi.GRBEnv.<init> (GRBEnv.java:11)
    at edu.illinois.cs.cogcomp.infer.ilp.GurobiHook.<init> (GurobiHook.java:84)
    at edu.illinois.cs.cogcomp.infer.ilp.GurobiHook.<init> (GurobiHook.java:74)
    at edu.illinois.cs.cogcomp.temporal.datastruct.Temporal.TempRelInferenceWrapper.<init> (TempRelInferenceWrapper.java:20)
    at edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator.eeTempRelAnnotator (TempRelAnnotator.java:281)
    at edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator.annotator (TempRelAnnotator.java:164)
    at edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator.rawtext2temprel (TempRelAnnotator.java:448)
    at edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator.main (TempRelAnnotator.java:460)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
    at java.lang.Thread.run (Thread.java:748)
[WARNING] thread Thread[ForkJoinPool-1-worker-2,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] was interrupted but is still alive after waiting at least 14999msecs
[WARNING] thread Thread[ForkJoinPool-1-worker-2,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-11,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-4,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-6,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-15,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-8,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-1,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-10,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-3,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] thread Thread[ForkJoinPool-1-worker-12,5,edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator] will linger despite being asked to die via interruption
[WARNING] NOTE: 10 thread(s) did not finish despite being asked to via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
[WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=edu.illinois.cs.cogcomp.temporal.TemporalRelationExtractor.TempRelAnnotator,maxpri=10]
java.lang.IllegalThreadStateException
    at java.lang.ThreadGroup.destroy (ThreadGroup.java:778)
    at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:319)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:58 min
[INFO] Finished at: 2023-08-09T17:06:15+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:java (default-cli) on project CogCompTime: An exception occurred while executing the Java class. no GurobiJni65 in java.library.path -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

how to solve it?
thanks

@cttsai @mayhewsw @shatu @shyamupa @anjanatiha @HeglerTissot @qiangning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions