Hello!
I am new to Julia and want to learn coding with SciML.Followed the tutorial but got the following error:
julia> Pkg.add("DifferentialEquations")
Updating registry at `~/.julia/registries/General.toml`
Resolving package versions...
Installed PrecompileTools β v1.2.1
Updating `~/projects/my-julia-project/Project.toml`
[0c46a032] + DifferentialEquations v8.0.2
Updating `~/projects/my-julia-project/Manifest.toml`
[47edcb42] + ADTypes v1.22.1
[14f7f29c] + AMD v0.5.3
[7d9f7c33] + Accessors v0.1.45
[79e6a3ab] + Adapt v4.7.0
[4fba245c] + ArrayInterface v7.27.0
[b2a6c25c] + BinaryHeaps v1.0.1
[70df07ce] + BracketingNonlinearSolve v1.12.2
[38540f10] + CommonSolve v0.2.9
[bbf7d656] + CommonSubexpressions v0.3.1
[34da2185] + Compat v4.18.1
[a33af91c] + CompositionsBase v0.1.2
[2569d6c7] + ConcreteStructs v0.2.5
[187b0558] + ConstructionBase v1.6.0
[2b5f629d] + DiffEqBase v7.6.0
[163ba53b] + DiffResults v1.1.0
[b552c78f] + DiffRules v1.16.0
[0c46a032] + DifferentialEquations v8.0.2
[a0c0ee7d] + DifferentiationInterface v0.7.19
[ffbed154] + DocStringExtensions v0.9.5
[4e289a0a] + EnumX v1.0.7
[f151be2c] + EnzymeCore v0.8.21
[e2ba6199] + ExprTools v0.1.10
[7034ab61] + FastBroadcast v1.3.3
[9aa1b823] + FastClosures v0.3.2
[a4df4552] + FastPower v1.3.3
[6a86dc24] + FiniteDiff v2.31.1
[f6369f11] + ForwardDiff v1.4.1
[069b7b12] + FunctionWrappers v1.1.3
[77dc65aa] + FunctionWrappersWrappers v1.10.0
[46192b85] + GPUArraysCore v0.2.0
[3587e190] + InverseFunctions v0.1.17
[92d709cd] + IrrationalConstants v0.2.6
[82899510] + IteratorInterfaceExtensions v1.0.0
[692b3bcd] + JLLWrappers v1.8.0
[ba0b0d4f] + Krylov v0.10.8
[87fe0de2] + LineSearch v0.1.10
[7ed4a6bd] + LinearSolve v4.2.0
[2ab3a3ac] + LogExpFunctions v1.0.1
[e6f89c97] + LoggingExtras v1.2.0
[1914dd2f] + MacroTools v0.5.16
[bb5d69b7] + MaybeInplace v0.1.5
[46d2c3a1] + MuladdMacro v0.2.6
[77ba4419] + NaNMath v1.1.4
[8913a72c] + NonlinearSolve v4.20.2
[be0214bd] + NonlinearSolveBase v2.33.0
[5959db7a] + NonlinearSolveFirstOrder v2.1.3
[9a2c21bd] + NonlinearSolveQuasiNewton v1.13.3
[26075421] + NonlinearSolveSpectralMethods v1.7.2
[1dea7af3] + OrdinaryDiffEq v7.1.1
[6ad6398a] + OrdinaryDiffEqBDF v2.2.3
[bbf590c4] + OrdinaryDiffEqCore v4.6.0
[50262376] + OrdinaryDiffEqDefault v2.2.2
[4302a76b] + OrdinaryDiffEqDifferentiation v3.2.3
[127b3ac7] + OrdinaryDiffEqNonlinearSolve v2.0.2
[43230ef6] + OrdinaryDiffEqRosenbrock v2.3.2
[b4bd8bb3] + OrdinaryDiffEqRosenbrockTableaus v2.1.2
[2d112036] + OrdinaryDiffEqSDIRK v2.7.1
[b1df2697] + OrdinaryDiffEqTsit5 v2.0.2
[79d7bb75] + OrdinaryDiffEqVerner v2.1.1
[d236fae5] + PreallocationTools v1.2.1
β
[aea7be01] + PrecompileTools v1.2.1
[21216c6a] + Preferences v1.5.2
[0c0d3e7f] + PureKLU v1.1.0
[3cdcf5f2] + RecipesBase v1.3.4
[731186ca] + RecursiveArrayTools v4.3.2
[189a3867] + Reexport v1.2.2
[7e49a35a] + RuntimeGeneratedFunctions v0.5.21
[0bca4576] + SciMLBase v3.33.0
[19f34311] + SciMLJacobianOperators v0.1.14
[a6db7da4] + SciMLLogging v2.0.1
[c0aeaf25] + SciMLOperators v1.24.0
[431bcebd] + SciMLPublic v1.2.1
[53ae85a6] + SciMLStructures v1.10.1
[efcf1570] + Setfield v1.1.2
[727e6d20] + SimpleNonlinearSolve v2.12.1
[a57abbd0] + SparseColumnPivotedQR v2.1.2
[0a514795] + SparseMatrixColorings v0.4.27
[276daf66] + SpecialFunctions v2.8.0
[1e83bf80] + StaticArraysCore v1.4.4
[10745b16] + Statistics v1.11.1
[2efcf032] + SymbolicIndexingInterface v0.3.49
[a759f4b9] + TimerOutputs v0.5.29
[781d530d] + TruncatedStacktraces v1.4.0
[1d5cc7b8] + IntelOpenMP_jll v2025.2.0+0
[856f044c] + MKL_jll v2025.2.0+0
[efe28fd5] + OpenSpecFun_jll v0.5.6+0
[1317d2d5] + oneTBB_jll v2022.3.0+0
[0dad84c5] + ArgTools v1.1.2
[56f22d72] + Artifacts v1.11.0
[2a0f44e3] + Base64 v1.11.0
[ade2ca70] + Dates v1.11.0
[8ba89e20] + Distributed v1.11.0
[f43a241f] + Downloads v1.6.0
[7b1f6079] + FileWatching v1.11.0
[9fa8497b] + Future v1.11.0
[b77e0a4c] + InteractiveUtils v1.11.0
[4af54fe1] + LazyArtifacts v1.11.0
[b27032c2] + LibCURL v0.6.4
[76f85450] + LibGit2 v1.11.0
[8f399da3] + Libdl v1.11.0
[37e2e46d] + LinearAlgebra v1.11.0
[56ddb016] + Logging v1.11.0
[d6f4376e] + Markdown v1.11.0
[ca575930] + NetworkOptions v1.2.0
[44cfe95a] + Pkg v1.11.0
[de0858da] + Printf v1.11.0
[9a3f8284] + Random v1.11.0
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization v1.11.0
[6462fe0b] + Sockets v1.11.0
[2f01184e] + SparseArrays v1.11.0
[fa267f1f] + TOML v1.0.3
[a4e569a6] + Tar v1.10.0
[cf7118a7] + UUIDs v1.11.0
[4ec0a83e] + Unicode v1.11.0
[e66e0078] + CompilerSupportLibraries_jll v1.1.1+0
[deac9b47] + LibCURL_jll v8.6.0+0
[e37daf67] + LibGit2_jll v1.7.2+0
[29816b5a] + LibSSH2_jll v1.11.0+1
[c8ffd9c3] + MbedTLS_jll v2.28.6+0
[14a3606d] + MozillaCACerts_jll v2023.12.12
[4536629a] + OpenBLAS_jll v0.3.27+1
[05823500] + OpenLibm_jll v0.8.5+0
[bea87d4a] + SuiteSparse_jll v7.7.0+0
[83775a58] + Zlib_jll v1.2.13+1
[8e850b90] + libblastrampoline_jll v5.11.0+0
[8e850ede] + nghttp2_jll v1.59.0+0
[3f19e933] + p7zip_jll v17.4.0+2
Info Packages marked with β
have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`
Precompiling project...
β OrdinaryDiffEqRosenbrock
β OrdinaryDiffEqDefault
β OrdinaryDiffEq
β DifferentialEquations
131 dependencies successfully precompiled in 136 seconds. 32 already precompiled.
1 dependency had output during precompilation:
β SciMLBase
β β Warning: Replacing docs for `SciMLBase.AlgorithmInterpretation :: Union{}` in module `SciMLBase.AlgorithmInterpretation`
β β @ Base.Docs docs/Docs.jl:243
β
4 dependencies errored.
For a report of the errors see `julia> err`. To retry use `pkg> precompile`
I tried installing this package with Julia 1.11.9 and 1.20.7 (latest), and got the same error. I wrote err to see what went wrong, and I got this:
PkgPrecompileError: The following 1 direct dependency failed to precompile:
DifferentialEquations
Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to "/home/jonat/.julia/compiled/v1.11/DifferentialEquations/jl_hkKDTn".
WARNING: could not import OrdinaryDiffEqDifferentiation.TimeDerivativeWrapper into OrdinaryDiffEqRosenbrock
WARNING: could not import OrdinaryDiffEqDifferentiation.TimeGradientWrapper into OrdinaryDiffEqRosenbrock
ERROR: LoadError: UndefVarError: `TimeGradientWrapper` not defined in `OrdinaryDiffEqRosenbrock`
Not sure what else to do. Does anyone else have this problem, and did anyone resolve this?
Thanks a lot.