Error loading StochasticDiffEq and DifferentialEquations in 1.10.8 (Apple Silicon)

Hi all, I’m using Julia 1.10.8 on my MacBook running Apple Silicon hardware. I am seeing some errors loading the packages StochasticDiffEq (v6.69.1) and DifferentialEquations (v7.16.0).

Anyone had any issues with these packages on 1.10.8?

I appreciate any help

Did you try to follow the instructions and actually read the error message? Also, please paste code here quoted with triple backticks

```
like this
```

instead of posting pictures. Screenshots are hard to read, not searchable and not copy-pasteable

Did you try to update your packages?

]
up

@giordano full error statement is:

PkgPrecompileError: The following 2 direct dependencies failed to precompile:

StochasticDiffEq 

Failed to precompile StochasticDiffEq [789caeaf-c7a9-5a7d-9973-96adeb23e2a0] to "/Users/cmason83/.julia/compiled/v1.10/StochasticDiffEq/jl_QbtcSk".
ERROR: LoadError: UndefVarError: `default_linear_interpolation` not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ ~/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/algorithms.jl:47
 [3] include(mod::Module, _path::String)
   @ Base ./Base.jl:495
 [4] include(x::String)
   @ OrdinaryDiffEqSymplecticRK ~/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/OrdinaryDiffEqSymplecticRK.jl:1
 [5] top-level scope
   @ ~/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/OrdinaryDiffEqSymplecticRK.jl:22
 [6] include
   @ ./Base.jl:495 [inlined]
 [7] 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:2292
 [8] top-level scope
   @ stdin:4
in expression starting at /Users/cmason83/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/algorithms.jl:47
in expression starting at /Users/cmason83/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/OrdinaryDiffEqSymplecticRK.jl:1
in expression starting at stdin:4
ERROR: LoadError: Failed to precompile OrdinaryDiffEqSymplecticRK [fa646aed-7ef9-47eb-84c4-9443fc8cbfa8] to "/Users/cmason83/.julia/compiled/v1.10/OrdinaryDiffEqSymplecticRK/jl_BP7coo".
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:2539
  [3] compilecache
    @ ./loading.jl:2411 [inlined]
  [4] (::Base.var"#969#970"{Base.PkgId})()
    @ Base ./loading.jl:2044
  [5] mkpidlock(f::Base.var"#969#970"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93
  [6] #mkpidlock#6
    @ /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/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"#969#970"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3054
 [11] maybe_cachefile_lock
    @ ./loading.jl:3051 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2040
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1882
 [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:1873
 [17] macro expansion
    @ ./loading.jl:1860 [inlined]
 [18] macro expansion
    @ ./lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1823
 [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:1816
 [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::String)
    @ Base ./loading.jl:2292
 [25] top-level scope
    @ stdin:4
in expression starting at /Users/cmason83/.julia/packages/OrdinaryDiffEq/lkUcI/src/OrdinaryDiffEq.jl:1
in expression starting at stdin:4
ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to "/Users/cmason83/.julia/compiled/v1.10/OrdinaryDiffEq/jl_wTlF7v".
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:2539
  [3] compilecache
    @ ./loading.jl:2411 [inlined]
  [4] (::Base.var"#969#970"{Base.PkgId})()
    @ Base ./loading.jl:2044
  [5] mkpidlock(f::Base.var"#969#970"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93
  [6] #mkpidlock#6
    @ /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/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"#969#970"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3054
 [11] maybe_cachefile_lock
    @ ./loading.jl:3051 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2040
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1882
 [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:1873
 [17] macro expansion
    @ ./loading.jl:1860 [inlined]
 [18] macro expansion
    @ ./lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1823
 [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:1816
 [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:2292
 [25] top-level scope
    @ stdin:4
in expression starting at /Users/cmason83/.julia/packages/StochasticDiffEq/t06NJ/src/StochasticDiffEq.jl:1
in expression starting at stdin:4
DifferentialEquations 

Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to "/Users/cmason83/.julia/compiled/v1.10/DifferentialEquations/jl_ec5O1G".
ERROR: LoadError: UndefVarError: `default_linear_interpolation` not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ ~/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/algorithms.jl:47
 [3] include(mod::Module, _path::String)
   @ Base ./Base.jl:495
 [4] include(x::String)
   @ OrdinaryDiffEqSymplecticRK ~/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/OrdinaryDiffEqSymplecticRK.jl:1
 [5] top-level scope
   @ ~/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/OrdinaryDiffEqSymplecticRK.jl:22
 [6] include
   @ ./Base.jl:495 [inlined]
 [7] 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:2292
 [8] top-level scope
   @ stdin:4
in expression starting at /Users/cmason83/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/algorithms.jl:47
in expression starting at /Users/cmason83/.julia/packages/OrdinaryDiffEqSymplecticRK/8SXKX/src/OrdinaryDiffEqSymplecticRK.jl:1
in expression starting at stdin:4
ERROR: LoadError: Failed to precompile OrdinaryDiffEqSymplecticRK [fa646aed-7ef9-47eb-84c4-9443fc8cbfa8] to "/Users/cmason83/.julia/compiled/v1.10/OrdinaryDiffEqSymplecticRK/jl_HVLINC".
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:2539
  [3] compilecache
    @ ./loading.jl:2411 [inlined]
  [4] (::Base.var"#969#970"{Base.PkgId})()
    @ Base ./loading.jl:2044
  [5] mkpidlock(f::Base.var"#969#970"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93
  [6] #mkpidlock#6
    @ /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/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"#969#970"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3054
 [11] maybe_cachefile_lock
    @ ./loading.jl:3051 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2040
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1882
 [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:1873
 [17] macro expansion
    @ ./loading.jl:1860 [inlined]
 [18] macro expansion
    @ ./lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1823
 [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:1816
 [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::String)
    @ Base ./loading.jl:2292
 [25] top-level scope
    @ stdin:4
in expression starting at /Users/cmason83/.julia/packages/OrdinaryDiffEq/lkUcI/src/OrdinaryDiffEq.jl:1
in expression starting at stdin:4
ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to "/Users/cmason83/.julia/compiled/v1.10/OrdinaryDiffEq/jl_blpJyJ".
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:2539
  [3] compilecache
    @ ./loading.jl:2411 [inlined]
  [4] (::Base.var"#969#970"{Base.PkgId})()
    @ Base ./loading.jl:2044
  [5] mkpidlock(f::Base.var"#969#970"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93
  [6] #mkpidlock#6
    @ /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/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"#969#970"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3054
 [11] maybe_cachefile_lock
    @ ./loading.jl:3051 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2040
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1882
 [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:1873
 [17] macro expansion
    @ ./loading.jl:1860 [inlined]
 [18] macro expansion
    @ ./lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1823
 [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:1816
 [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::String)
    @ Base ./loading.jl:2292
 [25] top-level scope
    @ stdin:4
in expression starting at /Users/cmason83/.julia/packages/StochasticDiffEq/t06NJ/src/StochasticDiffEq.jl:1
in expression starting at stdin:4
ERROR: LoadError: Failed to precompile StochasticDiffEq [789caeaf-c7a9-5a7d-9973-96adeb23e2a0] to "/Users/cmason83/.julia/compiled/v1.10/StochasticDiffEq/jl_b47chI".
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:2539
  [3] compilecache
    @ ./loading.jl:2411 [inlined]
  [4] (::Base.var"#969#970"{Base.PkgId})()
    @ Base ./loading.jl:2044
  [5] mkpidlock(f::Base.var"#969#970"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93
  [6] #mkpidlock#6
    @ /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/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"#969#970"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3054
 [11] maybe_cachefile_lock
    @ ./loading.jl:3051 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2040
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1882
 [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:1873
 [17] macro expansion
    @ ./loading.jl:1860 [inlined]
 [18] macro expansion
    @ ./lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1823
 [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:1816
 [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:2292
 [25] top-level scope
    @ stdin:4
in expression starting at /Users/cmason83/.julia/packages/DifferentialEquations/he2qQ/src/DifferentialEquations.jl:1
in expression starting at stdin:4

And @ufechner7 yes I tried updating the package and the results don’t seem to change:

Please, share:

  • the full stacktrace
  • the output of versioninfo()
  • the ouput of:
]
st

Background:
Often some packages block the update of other packages and you need to cleanup your environment.

Remove OptimizationFlux.jl, that was deprecated a few years ago (for OptimizationOptimisers.jl) and is holding some things back.