lanl-ansi / Alpine.jl

A Julia/JuMP-based Global Optimization Solver for Non-convex Programs
https://lanl-ansi.github.io/Alpine.jl/latest/
Other
241 stars 39 forks source link

Cannot install Alpine on Julia 1.8 #208

Closed Shuvomoy closed 1 year ago

Shuvomoy commented 1 year ago

Hi,

When I try to install Alpine.jl using ] add Alpine, I get the following error:

    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed Alpine ─ v0.4.1
    Updating `~/.julia/environments/v1.8/Project.toml`
  [07493b3f] + Alpine v0.4.1
    Updating `~/.julia/environments/v1.8/Manifest.toml`
  [07493b3f] + Alpine v0.4.1
Precompiling project...
  ✗ Alpine
  0 dependencies successfully precompiled in 5 seconds. 121 already precompiled.
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

When I run import Pkg; Pkg.precompile() I get:

Precompiling project...
  ✗ Alpine
  0 dependencies successfully precompiled in 4 seconds. 121 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

Alpine [07493b3f-dabb-5b16-a503-4139292d7dd4]

Failed to precompile Alpine [07493b3f-dabb-5b16-a503-4139292d7dd4] to /Users/shuvomoy_das_gupta/.julia/compiled/v1.8/Alpine/jl_Pb76jm.
ERROR: LoadError: TypeError: in Union, expected Type, got a value of type typeof(JuMP.NLPEvaluator)
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/Alpine/Pn6vZ/src/MOI_wrapper/MOI_wrapper.jl:6
 [2] include(mod::Module, _path::String)
   @ Base ./Base.jl:419
 [3] include(x::String)
   @ Alpine ~/.julia/packages/Alpine/Pn6vZ/src/Alpine.jl:3
 [4] top-level scope
   @ ~/.julia/packages/Alpine/Pn6vZ/src/Alpine.jl:19
 [5] include
   @ ./Base.jl:419 [inlined]
 [6] 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, UInt64}}, source::Nothing)
   @ Base ./loading.jl:1554
 [7] top-level scope
   @ stdin:1
in expression starting at /Users/shuvomoy_das_gupta/.julia/packages/Alpine/Pn6vZ/src/MOI_wrapper/MOI_wrapper.jl:6
in expression starting at /Users/shuvomoy_das_gupta/.julia/packages/Alpine/Pn6vZ/src/Alpine.jl:3
in expression starting at stdin:1
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types ~/.julia/juliaup/julia-1.8.0+0.x64/share/julia/stdlib/v1.8/Pkg/src/Types.jl:67
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API ~/.julia/juliaup/julia-1.8.0+0.x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:1427
 [3] precompile
   @ ~/.julia/juliaup/julia-1.8.0+0.x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:1058 [inlined]
 [4] #precompile#225
   @ ~/.julia/juliaup/julia-1.8.0+0.x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:1057 [inlined]
 [5] precompile (repeats 2 times)
   @ ~/.julia/juliaup/julia-1.8.0+0.x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:1057 [inlined]
 [6] top-level scope
   @ REPL[3]:1
harshangrjn commented 1 year ago

@Shuvomoy This is fixed in the master branch, which will be released in 0.4.2. Pull Alpine from master and it should work, or give it a day and update to 0.4.2.

harshangrjn commented 1 year ago

205 #206

Shuvomoy commented 1 year ago

Okay sounds good, thanks for the info @harshangrjn