Skip to content

Error while Installing/Compiling the requirements #14

@mazzespazze

Description

@mazzespazze

Hello,

I am encountering an error when installing your requirements. You stated that you tested with SBT 0.31. According to the same link you provide, such version of SBT is no longer available (or it even seems it never existed)

Therefore I just downloaded the most recent version from here.
Then I run the code as you suggest with the following command

sbt "runMain ch.ethz.dalab.web2text.ExtractPageFeatures index.html desired_output"

Sadly after some downloads, I encountered the following errors:

[error] web2text/cdom/Node.scala:39:33: missing parameter type

[error] val c = for (c <- children; l <- c.toString.lines) yield {"  " + l}
                            ^
[error] web2text/src/main/scala/ch/ethz/dalab/web2text/cleaneval/CleanEval.scala:140:54: value drop is not a member of java.util.stream.Stream[String]

[error] val contents = if (f.startsWith("URL:")) f.lines.drop(1).mkString("\n")
                                            ^
[error] web2text/src/main/scala/ch/ethz/dalab/web2text/features/PageFeatures.scala:29:63: type mismatch;

[error] found   : java.util.stream.Stream[String]

[error] required: Iterator[?]

[error] (blockFeatureLabels.toIterator zip blockFeatures.toString.lines)               
                                         
[error] three errors found

[error] (Compile / compileIncremental) Compilation failed

[error] Total time: 6 s, completed Dec 23, 2020, 5:07:31 PM

How else can I compile your code? Is there any docker image you made back then that it is possible to run today?

Thanks!

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