tanhevg / GpABC.jl

MIT License
54 stars 15 forks source link

Failing to install #71

Closed shenkev closed 2 years ago

shenkev commented 2 years ago

Installation with "add GpABC" is failing. In particular the dependency OrdinaryDiffEq isn't being installed properly. When running "using GpABC", I get the following error message:

Julia version: v"1.7.1"

`[ Info: Precompiling GpABC [e850a1a4-d859-11e8-3d54-a195e6d045d3] WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface at /home/username/.julia/packages/ArrayInterface/R0AhD/src/ArrayInterface.jl:199 overwritten in module ArrayInterfaceCore at /home/username/.julia/packages/ArrayInterfaceCore/edbd7/src/ArrayInterfaceCore.jl:115. incremental compilation may be fatally broken for this module

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterface at /home/username/.julia/packages/ArrayInterface/R0AhD/src/ArrayInterface.jl:194 overwritten in module ArrayInterfaceCore at /home/username/.julia/packages/ArrayInterfaceCore/edbd7/src/ArrayInterfaceCore.jl:110. incremental compilation may be fatally broken for this module

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterface at /home/username/.julia/packages/ArrayInterface/R0AhD/src/ArrayInterface.jl:188 overwritten in module ArrayInterfaceCore at /home/username/.julia/packages/ArrayInterfaceCore/edbd7/src/ArrayInterfaceCore.jl:104. incremental compilation may be fatally broken for this module

ERROR: LoadError: UndefVarError: allowscomplex not defined Stacktrace: [1] check_prob_alg_pairing(prob::SciMLBase.ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, SciMLBase.NullParameters, SciMLBase.ODEFunction{true, OrdinaryDiffEq.var"#lorenz#526", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, alg::OrdinaryDiffEq.BS3{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}) @ DiffEqBase ~/.julia/packages/DiffEqBase/fI1KN/src/solve.jl:933 [2] #solve_up#30 @ ~/.julia/packages/DiffEqBase/fI1KN/src/solve.jl:685 [inlined] [3] solve_up @ ~/.julia/packages/DiffEqBase/fI1KN/src/solve.jl:675 [inlined] [4] #solve#29 @ ~/.julia/packages/DiffEqBase/fI1KN/src/solve.jl:670 [inlined] [5] solve(prob::SciMLBase.ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, SciMLBase.NullParameters, SciMLBase.ODEFunction{true, OrdinaryDiffEq.var"#lorenz#526", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, args::OrdinaryDiffEq.BS3{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}) @ DiffEqBase ~/.julia/packages/DiffEqBase/fI1KN/src/solve.jl:665 [6] top-level scope @ ~/.julia/packages/OrdinaryDiffEq/1Xl3n/src/OrdinaryDiffEq.jl:195 [7] include @ ./Base.jl:418 [inlined] [8] 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::String) @ Base ./loading.jl:1318 [9] top-level scope @ none:1 [10] eval @ ./boot.jl:373 [inlined] [11] eval(x::Expr) @ Base.MainInclude ./client.jl:453 [12] top-level scope @ none:1 in expression starting at /home/username/.julia/packages/OrdinaryDiffEq/1Xl3n/src/OrdinaryDiffEq.jl:1 ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to /home/username/.julia/compiled/v1.7/OrdinaryDiffEq/jl_YKTe66. Stacktrace: [1] error(s::String) @ Base ./error.jl:33 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool) @ Base ./loading.jl:1466 [3] compilecache(pkg::Base.PkgId, path::String) @ Base ./loading.jl:1410 [4] _require(pkg::Base.PkgId) @ Base ./loading.jl:1120 [5] require(uuidkey::Base.PkgId) @ Base ./loading.jl:1013 [6] require(into::Module, mod::Symbol) @ Base ./loading.jl:997 [7] include @ ./Base.jl:418 [inlined] [8] 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:1318 [9] top-level scope @ none:1 [10] eval @ ./boot.jl:373 [inlined] [11] eval(x::Expr) @ Base.MainInclude ./client.jl:453 [12] top-level scope @ none:1 in expression starting at /home/username/.julia/packages/GpABC/o0EN1/src/GpABC.jl:1 ERROR: Failed to precompile GpABC [e850a1a4-d859-11e8-3d54-a195e6d045d3] to /home/username/.julia/compiled/v1.7/GpABC/jl_OY2Vwy. Stacktrace: [1] error(s::String) @ Base ./error.jl:33 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool) @ Base ./loading.jl:1466 [3] compilecache(pkg::Base.PkgId, path::String) @ Base ./loading.jl:1410 [4] _require(pkg::Base.PkgId) @ Base ./loading.jl:1120 [5] require(uuidkey::Base.PkgId) @ Base ./loading.jl:1013 [6] require(into::Module, mod::Symbol) @ Base ./loading.jl:997 `

tanhevg commented 2 years ago

What versions of GpABC and OrdinaryDiffEq are you using? Could you please provide the output of pkg> status on your project?

On a clean installation of Julia 1.7.1 my versions get resolved to GpABC:v0.1.1 and OrdinaryDiffEq:v6.17.0. Everything works fine and all tests pass

import Pkg
Pkg.test("GpABC") 
shenkev commented 2 years ago

I think after updating Julia it's working, thanks!