Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

sbt build fails #3

Open
tomersagi opened this issue Jul 19, 2021 · 3 comments
Open

sbt build fails #3

tomersagi opened this issue Jul 19, 2021 · 3 comments

Comments

@tomersagi
Copy link

Running SBT as per the instructions results in the following errors:

[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/LogQuery.scala:22: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.PojoTest
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/LogQuery.scala:22: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.PojoTest
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/LogQuery.scala:31: object dkpro is not a member of package org.apache.uima
[error]           val tt = new org.apache.uima.dkpro.spark.PojoTest("/tmp/")
[error]                                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/LogQuery.scala:31: object dkpro is not a member of package org.apache.uima
[error]           val tt = new org.apache.uima.dkpro.spark.PojoTest("/tmp/")
[error]                                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/MimicSectionExtractor.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SectionSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/MimicSectionExtractor.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SectionSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SectionExtract.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SectionSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SectionExtract.scala:38: object dkpro is not a member of package org.apache.uima
[error]   @transient val tt = new org.apache.uima.dkpro.spark.SectionSegmenterPojo("ref_doc_section.csv");
[error]                                           ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SectionExtract.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SectionSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SectionExtract.scala:38: object dkpro is not a member of package org.apache.uima
[error]   @transient val tt = new org.apache.uima.dkpro.spark.SectionSegmenterPojo("ref_doc_section.csv");
[error]                                           ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SentenceSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:40: object dkpro is not a member of package org.apache.uima
[error]   @transient val tt = new org.apache.uima.dkpro.spark.SentenceSegmenterPojo();
[error]                                           ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SentenceSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:40: object dkpro is not a member of package org.apache.uima
[error]   @transient val tt = new org.apache.uima.dkpro.spark.SentenceSegmenterPojo();
[error]                                           ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:63: ambiguous implicit values:
[error]  both method newIntEncoder in class SQLImplicits of type => org.apache.spark.sql.Encoder[Int]
[error]  and method newLongEncoder in class SQLImplicits of type => org.apache.spark.sql.Encoder[Long]
[error]  match expected type org.apache.spark.sql.Encoder[U]
[error]     .map(x => tt.analyzeText(x.text).asInstanceOf[String])
[error]         ^
[error] 8 errors found
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:63: ambiguous implicit values:
[error]  both method newIntEncoder in class SQLImplicits of type => org.apache.spark.sql.Encoder[Int]
[error]  and method newLongEncoder in class SQLImplicits of type => org.apache.spark.sql.Encoder[Long]
[error]  match expected type org.apache.spark.sql.Encoder[U]
[error]     .map(x => tt.analyzeText(x.text).asInstanceOf[String])
[error]         ^
[info] No documentation generated with unsuccessful compiler run
[error] 8 errors found
[error] (compile:doc) Scaladoc generation failed
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 76 s, completed 19-Jul-2021 11:23:29

@tomersagi
Copy link
Author

I renamed all the uima-php class package names and replaces TestPojo usage with a SectionSegmenter. Now it compiles. I hope it still works...
If it does I will add a pull request with a working fork.

@tomersagi
Copy link
Author

tomersagi commented Jul 20, 2021

@parisni If you approve my pull request we can close this issue.

@parisni
Copy link
Contributor

parisni commented Jul 20, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants