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

Error in using Optim with Julia v1.0: ERROR: LoadError: LoadError: UndefVarError: InPlaceObjectiveFGHv not defined #866

Closed
ericagol opened this issue Sep 9, 2020 · 5 comments

Comments

@ericagol
Copy link

ericagol commented Sep 9, 2020

The latest version of Optim (1.0/1.1) seems to have broken the precompilation in Julia v1.0.0. See lines 3189-3223 of this build:

https://travis-ci.org/github/ericagol/TRAPPIST1_Spitzer/builds/725391351#L3304

The error seems to be triggered by the command "using Optim" in several scripts the above repository.

@fredrikekre
Copy link
Contributor

#863

@pkofod
Copy link
Member

pkofod commented Sep 11, 2020

Yeah that's a duplicate issue. Thanks though.

@pkofod pkofod closed this as completed Sep 11, 2020
@ericagol
Copy link
Author

Thanks! I have tried to use:

Pkg.add(PackageSpec(name="Optim",version="0.22.0"))
Pkg.pin(PackageSpec(name="Optim",version="0.22.0"))

but unfortunately travis continues to upgrade Optim to 1.1.

@pkofod
Copy link
Member

pkofod commented Sep 13, 2020

What about now? :)

@ericagol
Copy link
Author

@pkofod I tried changing my Julia version to 1.2, and that solved the problem. Thanks for checking in; greatly appreciated!

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

No branches or pull requests

3 participants