sbt Issue using Epic model
jiangss opened this issue · comments
Hi,
I tried to use Epic model in my project, I have a problem with the sbt dependencies. The following is the error I got:
"unresolved dependency: org.scala-sbt#sbt;0.13.1: not found"
Here is the code I use that can reproduce the error.
https://github.com/jiangss/epic-example
Please advise.
Thanks!
I use the sbt 0.13.5 version.
When I switch to sbt0.13.1, there is no issue there. Once sbt0.13.1 is downloaded, then I switch to 0.13.2 or 0.13.5. NO Issue happens.
It seems Epic model depends on sbt 0.13.1 version, but once the sbt0.13.1version is downloaded, then updating to later ones, there should be no problem.
Thanks.
I cloned your project, killed ~/.ivy/cache
and ran sbt compile
. Same problem. Before I killed the cache, no problem.
Dependency tree: https://gist.github.com/reactormonk/393a7f371b42931bf2b2
The offender is com.typesafe.sbt:sbt-pgp:0.8.3
. So a) bug them b) kick sbt-pgp
out of the dependencies.
So, I nuked my ivy2 cache and it built fine, using sbt 0.13.5. I've also updated a bunch of dependencies, which might be the difference? (new dependency graph: https://gist.github.com/dlwh/8c9a1ef767a905bb8e98)
At any rate, try now.
Hi, David,
Now works fine! Thanks!
Hi,
getting the same issue as @jiangss . @dlwh you say you updated a bunch of dependencies - how do I emulate that? I just made a clean dir and booted sbt, then
set libraryDependencies += "org.scalanlp" % "epic_2.10" % "0.1"
set resolvers += "Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/"
set scalaVersion := "2.10.3"
console
And I get the same dependency error. What can I do to update the dependency? Thanks, Alan
I'd suspected that was the case so tried to build from source, didn't work yet. Will try again and also see about a new release.
I use the dependence in this way:
LibraryDependencies += "org.scalanlp" %% "epic-parser-en-span" % "2014.6.3-SNAPSHOT"
Or, you can use LibraryDependencies += "org.scalanlp" %% "epic" % "0.2-SNAPSHOT"
New release is hopefully coming by end of week, sorry.
I've published new snapshots (models are 2014.7.29-SNAPSHOT). didn't test anything other than English, but hopefully all's ok. Pushing out a new demo today too.
(demo is at https://github.com/dlwh/epic-demo)
@dlwh Working great in my case. Thanks!