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 when adding EAGO #133

Closed
KikivanElsen opened this issue Sep 11, 2024 · 6 comments
Closed

Error when adding EAGO #133

KikivanElsen opened this issue Sep 11, 2024 · 6 comments

Comments

@KikivanElsen
Copy link

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 use pkg> precompile

Does anyone know how I can solve this issue?

@DimitriAlston
Copy link
Member

What other packages do you have installed in your environment?

@KikivanElsen
Copy link
Author

Currently these:
Pkg.add("JuMP")
Pkg.add("GLPK")
Pkg.add("Ipopt")
Pkg.add("Gurobi")
Pkg.add("HiGHS")

@DimitriAlston
Copy link
Member

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 julia> err?

@KikivanElsen
Copy link
Author

KikivanElsen commented Sep 11, 2024

I removed all the other packages now. My file looks like this:

import Pkg
Pkg.add("JuMP")
Pkg.add("EAGO")

using JuMP, EAGO, PiecewiseLinearOpt

m = Model(EAGO.Optimizer)
f(x) = x^2

@variable(m, -2 <= x <= 2)

d = [-2, -1, 0, 1, 2]
fd = f.(d)

z = piecewiselinear(m, x, d, fd)

@objective(m, Min, z)

optimize!(m)

solution = (value(x), value(f(x)))
print(solution)

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:
[1] error(s::String)
@ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:2468
[3] compilecache
@ .\loading.jl:2340 [inlined]
[4] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1974
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[6] #mkpidlock#6
@ C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[8] #invokelatest#2
@ .\essentials.jl:894 [inlined]
[9] invokelatest
@ .\essentials.jl:889 [inlined]
[10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2983
[11] maybe_cachefile_lock
@ .\loading.jl:2980 [inlined]
[12] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1970
[13] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1812
[14] #invoke_in_world#3
@ .\essentials.jl:926 [inlined]
[15] invoke_in_world
@ .\essentials.jl:923 [inlined]
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1803
[17] macro expansion
@ .\loading.jl:1790 [inlined]
[18] macro expansion
@ .\lock.jl:267 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1753
[20] #invoke_in_world#3
@ .\essentials.jl:926 [inlined]
[21] invoke_in_world
@ .\essentials.jl:923 [inlined]
[22] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1746
[23] include
@ .\Base.jl:495 [inlined]
[24] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base .\loading.jl:2222
[25] top-level scope
@ stdin:3
in expression starting at C:\Users\kikiv.julia\packages\JuMP\klrjG\src\JuMP.jl:11
in expression starting at stdin:3
EAGO [bb8be931-2a91-5aca-9f87-79e1cb69959a]

Failed to precompile EAGO [bb8be931-2a91-5aca-9f87-79e1cb69959a] to "C:\Users\kikiv\.julia\compiled\v1.10\EAGO\jl_D16E.tmp".
ERROR: LoadError: SpecialFunctions is not installed properly, run Pkg.build("SpecialFunctions"),restart Julia and try again
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] top-level scope
@ C:\Users\kikiv.julia\packages\SpecialFunctions\ne2iw\src\SpecialFunctions.jl:6
[3] include
@ .\Base.jl:495 [inlined]
[4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base .\loading.jl:2222
[5] top-level scope
@ stdin:3
in expression starting at C:\Users\kikiv.julia\packages\SpecialFunctions\ne2iw\src\SpecialFunctions.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] to "C:\Users\kikiv\.julia\compiled\v1.10\SpecialFunctions\jl_D603.tmp".
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:2468
[3] compilecache
@ .\loading.jl:2340 [inlined]
[4] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1974
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[6] #mkpidlock#6
@ C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[8] #invokelatest#2
@ .\essentials.jl:894 [inlined]
[9] invokelatest
@ .\essentials.jl:889 [inlined]
[10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2983
[11] maybe_cachefile_lock
@ .\loading.jl:2980 [inlined]
[12] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1970
[13] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1812
[14] #invoke_in_world#3
@ .\essentials.jl:926 [inlined]
[15] invoke_in_world
@ .\essentials.jl:923 [inlined]
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1803
[17] macro expansion
@ .\loading.jl:1790 [inlined]
[18] macro expansion
@ .\lock.jl:267 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1753
[20] #invoke_in_world#3
@ .\essentials.jl:926 [inlined]
[21] invoke_in_world
@ .\essentials.jl:923 [inlined]
[22] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1746
[23] include
@ .\Base.jl:495 [inlined]
[24] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base .\loading.jl:2222
[25] top-level scope
@ stdin:3
in expression starting at C:\Users\kikiv.julia\packages\EAGO\5sz05\src\EAGO.jl:14
in expression starting at stdin:3
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Types.jl:70
[2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, _from_loading::Bool, kwargs::@kwargs{io::Base.TTY})
@ Pkg.API C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:1659
[3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@kwargs{_from_loading::Bool})
@ Pkg.API C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:159
[4] precompile
@ C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:147 [inlined]
[5] #precompile#114
@ C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:146 [inlined]
[6] #invokelatest#2
@ .\essentials.jl:894 [inlined]
[7] invokelatest
@ .\essentials.jl:889 [inlined]
[8] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1963
[9] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1812
[10] #invoke_in_world#3
@ .\essentials.jl:926 [inlined]
[11] invoke_in_world
@ .\essentials.jl:923 [inlined]
[12] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1803
[13] macro expansion
@ .\loading.jl:1790 [inlined]
[14] macro expansion
@ .\lock.jl:267 [inlined]
[15] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1753
[16] #invoke_in_world#3
@ .\essentials.jl:926 [inlined]
[17] invoke_in_world
@ .\essentials.jl:923 [inlined]
[18] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1746
[19] eval
@ .\boot.jl:385 [inlined]
[20] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:2076
[21] include_string(m::Module, txt::String, fname::String)
@ Base .\loading.jl:2086
[22] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::@kwargs{})
@ Base .\essentials.jl:892
[23] invokelatest(::Any, ::Any, ::Vararg{Any})
@ Base .\essentials.jl:889
[24] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\eval.jl:271
[25] (::VSCodeServer.var"#69#74"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\eval.jl:181
[26] withpath(f::VSCodeServer.var"#69#74"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\repl.jl:276
[27] (::VSCodeServer.var"#68#73"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\eval.jl:179
[28] hideprompt(f::VSCodeServer.var"#68#73"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\repl.jl:38
[29] (::VSCodeServer.var"#67#72"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\eval.jl:150
[30] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:515
[31] with_logger
@ .\logging.jl:627 [inlined]
[32] (::VSCodeServer.var"#66#71"{VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\eval.jl:263
[33] #invokelatest#2
@ .\essentials.jl:892 [inlined]
[34] invokelatest(::Any)
@ Base .\essentials.jl:889
[35] (::VSCodeServer.var"#64#65")()
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\eval.jl:34
in expression starting at Untitled-1:6

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".
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:2468
[3] compilecache
@ .\loading.jl:2340 [inlined]
[4] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1974
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[6] #mkpidlock#6
@ C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[8] #invokelatest#2
@ .\essentials.jl:894 [inlined]
[9] invokelatest
@ .\essentials.jl:889 [inlined]
[10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2983
[11] maybe_cachefile_lock
@ .\loading.jl:2980 [inlined]
[12] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1970
[13] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1812
[14] #invoke_in_world#3
@ .\essentials.jl:926 [inlined]
[15] invoke_in_world
@ .\essentials.jl:923 [inlined]
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1803
[17] macro expansion
@ .\loading.jl:1790 [inlined]
[18] macro expansion
@ .\lock.jl:267 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1753
[20] #invoke_in_world#3
@ .\essentials.jl:926 [inlined]
[21] invoke_in_world
@ .\essentials.jl:923 [inlined]
[22] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1746
[23] include(fname::String)
@ Base.MainInclude .\client.jl:489
[24] top-level scope
@ none:5
in expression starting at C:\Users\kikiv.julia\packages\SpecialFunctions\ne2iw\deps\build.jl:1
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Types.jl:70
[2] (::Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String})()
@ Pkg.Operations C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1157
[3] withenv(::Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, ::Pair{String, String}, ::Vararg{Pair{String}})
@ Base .\env.jl:257
[4] (::Pkg.Operations.var"#117#122"{String, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.PackageSpec})()
@ Pkg.Operations C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1825
[5] with_temp_env(fn::Pkg.Operations.var"#117#122"{String, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.PackageSpec}, temp_env::String)
@ Pkg.Operations C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1706
[6] (::Pkg.Operations.var"#115#120"{Dict{String, Any}, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String})(tmp::String)
@ Pkg.Operations C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1795
[7] mktempdir(fn::Pkg.Operations.var"#115#120"{Dict{String, Any}, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String}, parent::String; prefix::String)
@ Base.Filesystem .\file.jl:766
[8] mktempdir(fn::Function, parent::String)
@ Base.Filesystem .\file.jl:762
[9] mktempdir
@ .\file.jl:762 [inlined]
[10] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project; preferences::Dict{String, Any}, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
@ Pkg.Operations C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1753
[11] build_versions(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}; verbose::Bool)
@ Pkg.Operations C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1138
[12] build_versions
@ C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1056 [inlined]
[13] build(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}, verbose::Bool)
@ Pkg.Operations C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:996
[14] build(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; verbose::Bool, kwargs::@kwargs{io::Base.TTY})
@ Pkg.API C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:1056
[15] build(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@kwargs{})
@ Pkg.API C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:159
[16] build(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:148
[17] build
@ C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:147 [inlined]
[18] build(pkg::String)
@ Pkg.API C:\Users\kikiv.julia\juliaup\julia-1.10.3+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Pkg\src\API.jl:146
[19] top-level scope
@ REPL[51]:1
[20] eval
@ .\boot.jl:385 [inlined]
[21] eval
@ .\Base.jl:88 [inlined]
[22] repleval(m::Module, code::Expr, ::String)
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\repl.jl:229
[23] (::VSCodeServer.var"#112#114"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\repl.jl:192
[24] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:515
[25] with_logger
@ .\logging.jl:627 [inlined]
[26] (::VSCodeServer.var"#111#113"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\repl.jl:193
[27] #invokelatest#2
@ .\essentials.jl:892 [inlined]
[28] invokelatest(::Any)
@ Base .\essentials.jl:889
[29] (::VSCodeServer.var"#64#65")()
@ VSCodeServer c:\Users\kikiv.vscode\extensions\julialang.language-julia-1.120.2\scripts\packages\VSCodeServer\src\eval.jl:34

@DimitriAlston
Copy link
Member

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.
If you need to use PiecewiseLinearOpt with a more recent version of JuMP, you should post an issue here: https://github.com/jump-dev/PiecewiseLinearOpt.jl/issues.
Alternatively, you can try downgrading Julia to a version compatible with these packages. EAGO v0.6.1 should work in Julia v1.6.

@odow
Copy link
Contributor

odow commented Sep 12, 2024

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.

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