-
Notifications
You must be signed in to change notification settings - Fork 17
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 when adding EAGO #133
Comments
What other packages do you have installed in your environment? |
Currently these: |
I am able to install all of these and EAGO in an empty environment without any issues. What information do you see when you check |
I removed all the other packages now. My file looks like this: import Pkg using JuMP, EAGO, PiecewiseLinearOpt m = Model(EAGO.Optimizer) @variable(m, -2 <= x <= 2) d = [-2, -1, 0, 1, 2] z = piecewiselinear(m, x, d, fd) @objective(m, Min, z) optimize!(m) solution = (value(x), value(f(x))) This is the error that is shown in julia> show(err): ERROR: LoadError: Failed to precompile ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] to "C:\Users\kikiv\.julia\compiled\v1.10\ForwardDiff\jl_984E.tmp".Stacktrace: Failed to precompile EAGO [bb8be931-2a91-5aca-9f87-79e1cb69959a] to "C:\Users\kikiv\.julia\compiled\v1.10\EAGO\jl_D16E.tmp". When I run the requested Pkg.build("SpecialPackages") I get another error that looks like this: ERROR: LoadError: Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232] to "C:\Users\kikiv\.julia\compiled\v1.10\BinaryProvider\jl_73A5.tmp". |
Ah, this is because of PiecewiseLinearOpt. Adding that package will downgrade JuMP and EAGO to versions that were designed in earlier versions of Julia and likely will not work in Julia v1.10. |
Just confirming that PiecewiseLinearOpt was the culprit. I moved it to jump-dev two days ago to take over the maintenance, precisely to avoid issues like this in the future! I hadn't gotten around to tagging a new release yet, so I've just tagged a new version. |
Hello!
Since EAGO is a registered Julia package, I should be able to install it using the Julia Pkg manager. However, when I try to do this I get the following error message;
(@v1.10) pkg> add EAGO
Resolving package versions...
No Changes to
C:\Users\kikiv\.julia\environments\v1.10\Project.toml
No Changes to
C:\Users\kikiv\.julia\environments\v1.10\Manifest.toml
Precompiling project...
✗ CPLEX
✗ Gurobi
✗ Xpress
✗ PiecewiseLinearOpt
✗ Alpine
0 dependencies successfully precompiled in 14 seconds. 74 already precompiled. 8 skipped during auto due to previous errors.
5 dependencies errored.
For a report of the errors see
julia> err
. To retry usepkg> precompile
Does anyone know how I can solve this issue?
The text was updated successfully, but these errors were encountered: