DiffEqTutorials not working in Julia 1.5.0

Hi all,

I’ve decided to give differential equations a go, and wanted to follow along with the notebooks, I have Julia 1.5.0 installed. The documentation for DifferentialEquations.jl says to run

using Pkg
pkg"add https://github.com/JuliaDiffEq/DiffEqTutorials.jl"
using DiffEqTutorials
DiffEqTutorials.open_notebooks()

but I get

julia> using Pkg

julia> pkg"add https://github.com/JuliaDiffEq/DiffEqTutorials.jl"
   Updating git-repo `https://github.com/JuliaDiffEq/DiffEqTutorials.jl`
  Resolving package versions...
Updating `C:\Users\aaron\.julia\environments\v1.5\Project.toml`
  [30cb0354] ~ SciMLTutorials v0.8.0 `https://github.com/SciML/SciMLTutorials.jl#master` ⇒ v0.8.0 `https://github.com/JuliaDiffEq/DiffEqTutorials.jl#master`
Updating `C:\Users\aaron\.julia\environments\v1.5\Manifest.toml`
  [30cb0354] ~ SciMLTutorials v0.8.0 `https://github.com/SciML/SciMLTutorials.jl#master` ⇒ v0.8.0 `https://github.com/JuliaDiffEq/DiffEqTutorials.jl#master`

julia> using DiffEqTutorials
ERROR: ArgumentError: Package DiffEqTutorials not found in current path:
- Run `import Pkg; Pkg.add("DiffEqTutorials")` to install the DiffEqTutorials package.

Stacktrace:
 [1] require(::Module, ::Symbol) at .\loading.jl:893

I did as the error message said, i.e. import Pkg; Pkg.add("DiffEqTutorials") but then I get:

julia> using DiffEqTutorials
[ Info: Precompiling DiffEqTutorials [6d1b261a-3be8-11e9-3f2f-0b112a9a8436]
ERROR: LoadError: InitError: Evaluation into the closed module `Markdown` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `Markdown` with `eval` during precompilation - don't do this.
Stacktrace:
 [1] eval at .\boot.jl:331 [inlined]
 [2] eval at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Markdown\src\Markdown.jl:6 [inlined]
 [3] __init__() at C:\Users\aaron\.julia\packages\Weave\zT0iu\src\WeaveMarkdown\markdown.jl:10
 [4] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:697
 [5] _require_from_serialized(::String) at .\loading.jl:749
 [6] _require(::Base.PkgId) at .\loading.jl:1040
 [7] require(::Base.PkgId) at .\loading.jl:928
 [8] require(::Module, ::Symbol) at .\loading.jl:923
 [9] include(::Function, ::Module, ::String) at .\Base.jl:380
 [10] include(::Module, ::String) at .\Base.jl:368
 [11] top-level scope at none:2
 [12] eval at .\boot.jl:331 [inlined]
 [13] eval(::Expr) at .\client.jl:467
 [14] top-level scope at .\none:3
during initialization of module WeaveMarkdown
in expression starting at C:\Users\aaron\.julia\packages\DiffEqTutorials\80vOQ\src\DiffEqTutorials.jl:3
ERROR: Failed to precompile DiffEqTutorials [6d1b261a-3be8-11e9-3f2f-0b112a9a8436] to C:\Users\aaron\.julia\compiled\v1.5\DiffEqTutorials\czp8y_1vuzP.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
 [3] _require(::Base.PkgId) at .\loading.jl:1030
 [4] require(::Base.PkgId) at .\loading.jl:928
 [5] require(::Module, ::Symbol) at .\loading.jl:923

I’ve also tried SciMLTutorials but I get a similar error.

This is an upstream issue with Weave.jl that we notified the developers about.

1 Like