Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested clarification to documentation to fix "Error downloading org.clulab:glove-840b-300d-10f" issue #360

Open
AbeHandler opened this issue Dec 22, 2021 · 4 comments

Comments

@AbeHandler
Copy link

Hi,

Cool project! I am interested in Odinson but don't have much experience with sbt. I had some trouble with the build instructions on the docs page that I was eventually able to fix. I am posting this here in case others run into the same issue. I think updating the docs to describe this issue would save others time and headaches in the future.

Backstory

I tried to build by following the sbt build instructions here but got an error "Error downloading org.clulab:glove-840b-300d-10f".

I did some research, including looking at the processors library and eventually realized I needed to add a resolver to the build file. I thought that was all I needed but I kept hitting more errors. From this stackoverflow post I realized I needed to add withAllowInsecureProtocol(true) when adding the resolver.

Improvements requested:

If you could show how to add an http resolver by adding the following line to the demo build.sbt I think it would be very helpful for those unfamiliar with sbt.

resolvers += ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release").withAllowInsecureProtocol(true)


libraryDependencies ++= {
  val odinsonVer = "0.5.0"
  Seq(
      "ai.lum"        %% "odinson-core"             % odinsonVer,
      "ai.lum"        %% "odinson-extra"            % odinsonVer
  )
}
@myedibleenso
Copy link
Member

Thanks, @AbeHandler .

Just to confirm: things are working for you after you added that resolver?

(That one relates to a dependency of odinson-extra).

@AbeHandler
Copy link
Author

AbeHandler commented Dec 23, 2021

@myedibleenso yes things are working in the sense that $sbt compile runs successfully and without error with the change I outlined above. Note you have to add the withAllowInsecureProtocol call (as shown above) or things do not work.

@zhyongwei
Copy link

Hi, @AbeHandler , after adding resolvers += ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release").withAllowInsecureProtocol(true) I got some error messges. Things do not work for me.

K:\software\odinson-0.5.0>sbt compile
[info] Loading settings for project odinson-0-5-0-build from plugins.sbt ...
[info] Loading project definition from K:\software\odinson-0.5.0\project
K:\software\odinson-0.5.0\build.sbt:178: error: value withAllowInsecureProtocol is not a member of sbt.librarymanagement.MavenRepository
resolvers += ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release").withAllowInsecureProtocol(true)
                                                                                                 ^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? r
[info] Loading settings for project odinson-0-5-0-build from plugins.sbt ...
[info] Loading project definition from K:\software\odinson-0.5.0\project
K:\software\odinson-0.5.0\build.sbt:178: error: value withAllowInsecureProtocol is not a member of sbt.librarymanagement.MavenRepository
resolvers += ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release").withAllowInsecureProtocol(true)
                                                                                                 ^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

@kwalcock
Copy link
Contributor

Whether or not .withAllowInsecureProtocol(true) is needed or allowed is dependent on sbt version. It looks like it isn't being allowed, so please try without.

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

No branches or pull requests

4 participants