Issues with DifferentialEquations compiling

Hello,
I am currently learning Julia for my bachelor thesis and have ran into a problem with using DifferentialEquations.


When I try to compile DifferentialEquations, these four dependencies error and I cannot see to get around this. The result is I am unable to solve even a simple ODE (I am using JupyterNotebook), and therefore I cannot move further with my thesis.
Any help is appreciated

How did you install Julia? If not via juliaup or a binary from julialang.org then please uninstall Julia and use one these methods.

Please run ]precompile and post the resulting output enclosed in ``` so we can see the actual error message.
Additionally, please post the output of ]status.

We had a hiccup with the DifferentiationInterface release. Should be fixed in a little bit.

2 Likes

What’s up? Can I help?

1 Like

Okay so apparently it’s an issue with the PR that started using DI, not with DI per se? I see the following precompilation errors:

Precompiling project...
  ✗ BoundaryValueDiffEqFIRK
  ✗ BoundaryValueDiffEqMIRK
  ✗ BoundaryValueDiffEq
  174 dependencies successfully precompiled in 98 seconds. 91 already precompiled.
  3 dependencies had output during precompilation:
┌ BoundaryValueDiffEqMIRKN
│  WARNING: could not import BoundaryValueDiffEqCore.__sparse_jacobian_cache into BoundaryValueDiffEqMIRKN
└  
┌ BoundaryValueDiffEqAscher
│  WARNING: could not import BoundaryValueDiffEqCore.__sparse_jacobian_cache into BoundaryValueDiffEqAscher
└  
┌ BoundaryValueDiffEqShooting
│  WARNING: could not import BoundaryValueDiffEqCore.ColoredMatrix into BoundaryValueDiffEqShooting
│  WARNING: could not import BoundaryValueDiffEqCore.__sparse_jacobian_cache into BoundaryValueDiffEqShooting
│  WARNING: could not import BoundaryValueDiffEqCore.__sparsity_detection_alg into BoundaryValueDiffEqShooting
└  
  3 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

BoundaryValueDiffEq 

Failed to precompile BoundaryValueDiffEq [764a87c0-6b3e-53db-9096-fe964310641d] to "/Users/guillaumedalle/.julia/compiled/v1.11/BoundaryValueDiffEq/jl_WJuiqZ".
WARNING: could not import BoundaryValueDiffEqCore.__sparse_jacobian_cache into BoundaryValueDiffEqFIRK
WARNING: could not import BoundaryValueDiffEqCore.__sparsity_detection_alg into BoundaryValueDiffEqFIRK
WARNING: could not import BoundaryValueDiffEqCore.ColoredMatrix into BoundaryValueDiffEqFIRK
ERROR: LoadError: TaskFailedException

    nested task error: UndefVarError: `__sparse_jacobian_cache` not defined in `BoundaryValueDiffEqFIRK`
    Stacktrace:
      [1] __construct_nlproblem(cache::BoundaryValueDiffEqFIRK.FIRKCacheExpand{true, Float64, Tuple{Int64}, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, typeof(BoundaryValueDiffEqFIRK.bc1!), SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, SciMLBase.StandardBVProblem, SciMLBase.NullParameters, BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}, BoundaryValueDiffEqFIRK.FIRKTableau{false, Int64, Matrix{Float64}, Vector{Float64}, Vector{Float64}}, BoundaryValueDiffEqFIRK.FIRKInterpTableau{false, Matrix{Float64}, Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{PreallocationTools.DiffCache{Matrix{Float64}, Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}, Vector{Float64}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Tuple{Int64}, @NamedTuple{abstol::Float64, dt::Float64, adaptive::Bool}}, y::Vector{Float64}, loss_bc::BoundaryValueDiffEqFIRK.var"#115#121"{SciMLBase.StandardBVProblem, BoundaryValueDiffEqFIRK.FIRKCacheExpand{true, Float64, Tuple{Int64}, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, typeof(BoundaryValueDiffEqFIRK.bc1!), SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, SciMLBase.StandardBVProblem, SciMLBase.NullParameters, BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}, BoundaryValueDiffEqFIRK.FIRKTableau{false, Int64, Matrix{Float64}, Vector{Float64}, Vector{Float64}}, BoundaryValueDiffEqFIRK.FIRKInterpTableau{false, Matrix{Float64}, Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{PreallocationTools.DiffCache{Matrix{Float64}, Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}, Vector{Float64}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Tuple{Int64}, @NamedTuple{abstol::Float64, dt::Float64, adaptive::Bool}}}, loss_collocation::BoundaryValueDiffEqFIRK.var"#117#123"{BoundaryValueDiffEqFIRK.FIRKCacheExpand{true, Float64, Tuple{Int64}, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, typeof(BoundaryValueDiffEqFIRK.bc1!), SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, SciMLBase.StandardBVProblem, SciMLBase.NullParameters, BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}, BoundaryValueDiffEqFIRK.FIRKTableau{false, Int64, Matrix{Float64}, Vector{Float64}, Vector{Float64}}, BoundaryValueDiffEqFIRK.FIRKInterpTableau{false, Matrix{Float64}, Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{PreallocationTools.DiffCache{Matrix{Float64}, Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}, Vector{Float64}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Tuple{Int64}, @NamedTuple{abstol::Float64, dt::Float64, adaptive::Bool}}}, loss::BoundaryValueDiffEqFIRK.var"#119#125"{BoundaryValueDiffEqFIRK.FIRKCacheExpand{true, Float64, Tuple{Int64}, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, typeof(BoundaryValueDiffEqFIRK.bc1!), SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, SciMLBase.StandardBVProblem, SciMLBase.NullParameters, BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}, BoundaryValueDiffEqFIRK.FIRKTableau{false, Int64, Matrix{Float64}, Vector{Float64}, Vector{Float64}}, BoundaryValueDiffEqFIRK.FIRKInterpTableau{false, Matrix{Float64}, Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{PreallocationTools.DiffCache{Matrix{Float64}, Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}, Vector{Float64}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Tuple{Int64}, @NamedTuple{abstol::Float64, dt::Float64, adaptive::Bool}}, SciMLBase.StandardBVProblem, BoundaryValueDiffEqCore.EvalSol{BoundaryValueDiffEqFIRK.FIRKCacheExpand{true, Float64, Tuple{Int64}, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, typeof(BoundaryValueDiffEqFIRK.bc1!), SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, SciMLBase.StandardBVProblem, SciMLBase.NullParameters, BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}, BoundaryValueDiffEqFIRK.FIRKTableau{false, Int64, Matrix{Float64}, Vector{Float64}, Vector{Float64}}, BoundaryValueDiffEqFIRK.FIRKInterpTableau{false, Matrix{Float64}, Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{PreallocationTools.DiffCache{Matrix{Float64}, Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}, Vector{Float64}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Tuple{Int64}, @NamedTuple{abstol::Float64, dt::Float64, adaptive::Bool}}, Vector{Vector{Float64}}, Vector{Float64}}}, ::SciMLBase.StandardBVProblem)
        @ BoundaryValueDiffEqFIRK ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/firk.jl:452
      [2] __construct_nlproblem
        @ ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/firk.jl:433 [inlined]
      [3] __perform_firk_iteration(cache::BoundaryValueDiffEqFIRK.FIRKCacheExpand{true, Float64, Tuple{Int64}, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, typeof(BoundaryValueDiffEqFIRK.bc1!), SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, SciMLBase.StandardBVProblem, SciMLBase.NullParameters, BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}, BoundaryValueDiffEqFIRK.FIRKTableau{false, Int64, Matrix{Float64}, Vector{Float64}, Vector{Float64}}, BoundaryValueDiffEqFIRK.FIRKInterpTableau{false, Matrix{Float64}, Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{PreallocationTools.DiffCache{Matrix{Float64}, Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}, Vector{Float64}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Tuple{Int64}, @NamedTuple{abstol::Float64, dt::Float64, adaptive::Bool}}, abstol::Float64, adaptive::Bool; nlsolve_kwargs::@NamedTuple{}, kwargs::@Kwargs{abstol::Float64, adaptive::Bool})
        @ BoundaryValueDiffEqFIRK ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/firk.jl:356
      [4] __perform_firk_iteration
        @ ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/firk.jl:354 [inlined]
      [5] solve!(cache::BoundaryValueDiffEqFIRK.FIRKCacheExpand{true, Float64, Tuple{Int64}, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, typeof(BoundaryValueDiffEqFIRK.bc1!), SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, SciMLBase.StandardBVProblem, SciMLBase.NullParameters, BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}, BoundaryValueDiffEqFIRK.FIRKTableau{false, Int64, Matrix{Float64}, Vector{Float64}, Vector{Float64}}, BoundaryValueDiffEqFIRK.FIRKInterpTableau{false, Matrix{Float64}, Float64}, Vector{Float64}, Vector{Float64}, Vector{Float64}, Vector{PreallocationTools.DiffCache{Matrix{Float64}, Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Vector{PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}}, PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}}, Vector{Float64}, RecursiveArrayTools.VectorOfArray{Float64, 2, Vector{Vector{Float64}}}, Tuple{Int64}, @NamedTuple{abstol::Float64, dt::Float64, adaptive::Bool}})
        @ BoundaryValueDiffEqFIRK ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/firk.jl:309
      [6] __solve(::SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, ::BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}; kwargs::@Kwargs{dt::Float64})
        @ BoundaryValueDiffEqCore ~/.julia/packages/BoundaryValueDiffEqCore/YqNKE/src/BoundaryValueDiffEqCore.jl:36
      [7] __solve
        @ ~/.julia/packages/BoundaryValueDiffEqCore/YqNKE/src/BoundaryValueDiffEqCore.jl:33 [inlined]
      [8] #solve_call#35
        @ ~/.julia/packages/DiffEqBase/HGITF/src/solve.jl:635 [inlined]
      [9] solve_call
        @ ~/.julia/packages/DiffEqBase/HGITF/src/solve.jl:592 [inlined]
     [10] solve_up(prob::SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, sensealg::Nothing, u0::Vector{Float64}, p::SciMLBase.NullParameters, args::BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}; kwargs::@Kwargs{dt::Float64})
        @ DiffEqBase ~/.julia/packages/DiffEqBase/HGITF/src/solve.jl:1128
     [11] solve_up
        @ ~/.julia/packages/DiffEqBase/HGITF/src/solve.jl:1106 [inlined]
     [12] solve(prob::SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}, args::BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}; sensealg::Nothing, u0::Nothing, p::Nothing, wrap::Val{true}, kwargs::@Kwargs{dt::Float64})
        @ DiffEqBase ~/.julia/packages/DiffEqBase/HGITF/src/solve.jl:1043
     [13] solve
        @ ~/.julia/packages/DiffEqBase/HGITF/src/solve.jl:1033 [inlined]
     [14] (::BoundaryValueDiffEqFIRK.var"#175#198"{BoundaryValueDiffEqFIRK.RadauIIa5{Nothing, BoundaryValueDiffEqCore.BVPJacobianAlgorithm{ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}, ADTypes.AutoForwardDiff{2, Nothing}}, Float64}, SciMLBase.BVProblem{Vector{Float64}, Tuple{Float64, Float64}, true, false, SciMLBase.NullParameters, SciMLBase.BVPFunction{true, SciMLBase.FullSpecialize, false, typeof(BoundaryValueDiffEqFIRK.f1!), typeof(BoundaryValueDiffEqFIRK.bc1!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing, Nothing, Dict{Any, Any}}, Nothing}, SciMLBase.StandardBVProblem, @Kwargs{}}})()
        @ BoundaryValueDiffEqFIRK ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/BoundaryValueDiffEqFIRK.jl:100

...and 3 more exceptions.

Stacktrace:
  [1] sync_end(c::Channel{Any})
    @ Base ./task.jl:466
  [2] macro expansion
    @ ./task.jl:499 [inlined]
  [3] macro expansion
    @ ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/BoundaryValueDiffEqFIRK.jl:99 [inlined]
  [4] macro expansion
    @ ~/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:78 [inlined]
  [5] macro expansion
    @ ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/BoundaryValueDiffEqFIRK.jl:98 [inlined]
  [6] macro expansion
    @ ~/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:140 [inlined]
  [7] top-level scope
    @ ~/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/BoundaryValueDiffEqFIRK.jl:59
  [8] include
    @ ./Base.jl:557 [inlined]
  [9] 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:2881
 [10] top-level scope
    @ stdin:6
in expression starting at /Users/guillaumedalle/.julia/packages/BoundaryValueDiffEqFIRK/KTJvZ/src/BoundaryValueDiffEqFIRK.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile BoundaryValueDiffEqFIRK [85d9eb09-370e-4000-bb32-543851f73618] to "/Users/guillaumedalle/.julia/compiled/v1.11/BoundaryValueDiffEqFIRK/jl_Iwp8LR".
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; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
    @ Base ./loading.jl:3174
  [3] (::Base.var"#1110#1111"{Base.PkgId})()
    @ Base ./loading.jl:2579
  [4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
  [5] #mkpidlock#6
    @ ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
  [7] #invokelatest#2
    @ ./essentials.jl:1057 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1052 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3698
 [10] maybe_cachefile_lock
    @ ./loading.jl:3695 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2565
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [13] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [14] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [16] macro expansion
    @ ./loading.jl:2314 [inlined]
 [17] macro expansion
    @ ./lock.jl:273 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [19] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [20] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
 [22] include
    @ ./Base.jl:557 [inlined]
 [23] 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:2881
 [24] top-level scope
    @ stdin:6
in expression starting at /Users/guillaumedalle/.julia/packages/BoundaryValueDiffEq/PQI6Y/src/BoundaryValueDiffEq.jl:1
in expression starting at stdin:

It seems to be working now, I uninstalled again and when I reinstalled there were no issues. Will post here if it occurs again.
Thank you for the help!

1 Like

Small remark: In many cases DiffEqBase is good enough and faster to install.

1 Like

Not really, it’s a result of BoundaryValueDiffEq.jl merging things for all subpackages and not having Monorepo Packages via Submodules/Subpackages: Support in Pkg and Julia Compiler · Issue #55516 · JuliaLang/julia · GitHub so it’s just hard to keep 8 packages in sync or whatnot. We had two that we forgot to lock-step release.

1 Like

I believe I am experiencing a related, but not identical issue. Using DifferentialEquations.jl, I get an error loading it in Pluto.jl. Here is the code,

begin
using Pkg
Pkg.activate()
using CairoMakie
using Random, Distributions
using StatsBase, Statistics
using Unitful
using CSV, DataFrames
using LsqFit
using Glob
using ClipData
using DifferenceEquations
end

and the Pluto.jl error message:

" The package DifferenceEquations.jl could not load because it failed to initialize.
That’s not nice! Things you could try:

  • Restart the notebook.
  • Try a different Julia version.
  • Contact the developers of DifferenceEquations.jl about this error.
    You might find useful information in the package installation log:

This new issue, as the code written about a year ago has been very useful to me in the past. The package precompiles well, but testing fails. The error message is,

Precompiling project for configuration --code-coverage=none --color=yes --check-bounds=yes --warn-overwrite=yes --depwarn=yes --inline=yes --startup-file=no --track-allocation=none…
281 dependencies successfully precompiled in 164 seconds. 35 already precompiled.
Testing Running tests…
Test Summary: | Pass Total Time
Default Discrete Algorithm | 1 1 1.3s
1.385784 seconds (7.28 M allocations: 397.675 MiB, 15.57% gc time, 99.61% compilation time: <1% of which was recompilation)
Default Steady State Algorithm: Error During Test at /Users/seb/.julia/packages/DifferentialEquations/he2qQ/test/default_steady_state_alg_test.jl:12
Test threw exception
Expression: DifferentialEquations.NonlinearSolve.get_name(sol.alg) === :NewtonRaphson
UndefVarError: get_name not defined in NonlinearSolve
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:42
[2] macro expansion
@ ~/.julia/juliaup/julia-1.11.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Test/src/Test.jl:676 [inlined]
[3] top-level scope
@ ~/.julia/packages/DifferentialEquations/he2qQ/test/default_steady_state_alg_test.jl:515
Test Summary: | Error Total Time
Default Steady State Algorithm | 1 1 1.9s
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/seb/.julia/packages/DifferentialEquations/he2qQ/test/runtests.jl:4
ERROR: Package DifferentialEquations errored during testing

I tried removing and reinstalling DifferentialEquations.jl a few times. Tried with Julia 1.11.2, 1.11.3, and 1.11.4. I tried with a clean install with only this package, but I always get this error.

That is all the info I have for now. Thanks for any help on this matter and, thank so much, for developing and maintaining this wonderful package.
Seb

P.S. Sorry if syntax highlighting is not activated, I could not find how to activate it.

Did you try to just install DifferentialEquations on its own:

mkdir test
cd test
julia --project=.

and then in Julia

using Pkg
Pkg.add("DifferentialEquations")

?

Thanks for you reply. I did try exactly as you have suggested. I get what seems to be the same error message. Here is a screenshot

I stand ready to try other suggestions…

Wrong package?

I played with so many things trying to solve the initial error that adding the package back I did this embarrassing mistake. In works fine in Pluto now.

If nothing has been changed in the past week in DifferentialEquations.jl or its dependencies, then, I will go under a rock and hide for a little while.

Sorry and thanks!
S.