Failing to install OrdinaryDiffEq in the new Julia update

I installed the latest version of Julia (in Windows), and I am encountering issues with the ODE package. Neither launching nor importing it resolves the problem. I initially thought the issue might be due to an incorrect reinstallation of version 1.11.6. However, all other packages are functioning properly, and everything else seems to be working well. What follows is a selection of the error messages I receive. Am I doing something wrong? Is there a way to fix this?

julia> import Pkg; Pkg.add(“OrdinaryDiffEq”)

**** some stuff***

✗ OrdinaryDiffEqRosenbrock

✗ OrdinaryDiffEqDefault

✗ OrdinaryDiffEq

0 dependencies successfully precompiled in 21 seconds. 393 already precompiled.

3 dependencies errored.

julia> using OrdinaryDiffEq

Precompiling OrdinaryDiffEq…
Info Given OrdinaryDiffEq was explicitly requested, output will be shown live
WARNING: could not import OrdinaryDiffEqCore.recursivefill! into OrdinaryDiffEq

*** lots of stuff follows****

ERROR: LoadError: UndefVarError: MacroTools not defined in OrdinaryDiffEqRosenbrock

ERROR: LoadError: Failed to precompile OrdinaryDiffEqRosenbrock [43230ef6-c299-4910-a778-202eb28ce4ce] to “C:\Users\gmarc\.julia\compiled\v1.11\OrdinaryDiffEqRosenbrock\jl_2FF5.tmp”.

✗ OrdinaryDiffEqRosenbrock

✗ OrdinaryDiffEqDefault

✗ OrdinaryDiffEq

0 dependencies successfully precompiled in 19 seconds. 238 already precompiled.

ERROR: The following 1 direct dependency failed to precompile: OrdinaryDiffEq

Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to “C:\Users\gmarc\.julia\compiled\v1.11\OrdinaryDiffEq\jl_2382.tmp”.

WARNING: could not import OrdinaryDiffEqCore.recursivefill! into OrdinaryDiffEq

ERROR: LoadError: UndefVarError: MacroTools not defined in OrdinaryDiffEqRosenbrock

ERROR: LoadError: Failed to precompile OrdinaryDiffEqRosenbrock [43230ef6-c299-4910-a778-202eb28ce4ce] to “C:\Users\gmarc\.julia\compiled\v1.11\OrdinaryDiffEqRosenbrock\jl_2FF5.tmp”.

Perhaps this is related to this issue: DifferentialEquations.jl return errors - #2 by ChrisRackauckas

Yes. @Marco_Masi can you show what version of OrdinaryDiffEqRosenbrock you have?

Hmm.. how does one check this? In the OrdinaryDiffEqRosenbrock directory there are two subdirs “0D4j9” and “8sxst” with Project.toml file telling version 1.13.0 and 1.2.0 respectively. So, I guess these are old versions. I tried to add Pkg.add(“OrdinaryDiffEqRosenbrock”) but it still gives the message “3 dependencies errored”.

Do ]st or Pkg.status()

]status -m OrdinaryDiffEqRosenbrock

(if OrdinaryDiffEqRosenbrock isn’t a direct dependency of your environment it won’t show up with just ]status)

It is v1.14.0. I tried to update it but, again, get “3 dependencies errored”. OrdinaryDiffeEq doesn’t work. Then, I did exactly the same OrdinaryDiffEqRosenbrock update on an older Julia version 1.10.5 (I have an old version on desktop, the new one on laptop), and it gave some warnings but no dependencies errors. OrdinaryDiffEq continues to work well in Julia v1.10.5, but not in 1.11.6.