I’m trying to run the example code for solving the heat equation with MethodofLines.jl
https://docs.sciml.ai/MethodOfLines/stable/tutorials/heat/
But when I run the julia, I get the following errors:
4 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
julia> import Pkg; Pkg.precompile()
Precompiling project...
✗ ModelingToolkit
✗ DataDrivenDiffEq
✗ MethodOfLines
✗ SymbolicNumericIntegration
0 dependencies successfully precompiled in 72 seconds. 329 already precompiled.
ERROR: The following 3 direct dependencies failed to precompile:
SymbolicNumericIntegration [78aadeae-fbc0-11eb-17b6-c7ec0477ba9e]
Failed to precompile SymbolicNumericIntegration [78aadeae-fbc0-11eb-17b6-c7ec0477ba9e] to C:\Users\DAVIDF\.julia\compiled\v1.8\SymbolicNumericIntegration\jl_1240.tmp.
ERROR: LoadError: UndefVarError: handle_varmap not defined
Stacktrace:
[1] include
@ .\Base.jl:419 [inlined]
[2] 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, UInt64}}, source::String)
@ Base .\loading.jl:1554
[3] top-level scope
@ stdin:1
in expression starting at C:\Users\DAVIDF\.julia\packages\ModelingToolkit\e7Li7\src\ModelingToolkit.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78] to C:\Users\DAVIDF\.julia\compiled\v1.8\ModelingToolkit\jl_51C9.tmp.
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:1705
[3] compilecache
@ .\loading.jl:1649 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base .\loading.jl:1200
[6] macro expansion
@ .\loading.jl:1180 [inlined]
[7] macro expansion
@ .\lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1144
[9] include
@ .\Base.jl:419 [inlined]
[10] 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, UInt64}}, source::String)
@ Base .\loading.jl:1554
[11] top-level scope
@ stdin:1
in expression starting at C:\Users\DAVIDF\.julia\packages\DataDrivenDiffEq\s9jl3\src\DataDrivenDiffEq.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile DataDrivenDiffEq [2445eb08-9709-466a-b3fc-47e12bd697a2] to C:\Users\DAVIDF\.julia\compiled\v1.8\DataDrivenDiffEq\jl_3315.tmp.
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:1705
[3] compilecache
@ .\loading.jl:1649 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base .\loading.jl:1200
[6] macro expansion
@ .\loading.jl:1180 [inlined]
[7] macro expansion
@ .\lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1144
[9] include
@ .\Base.jl:419 [inlined]
[10] 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, UInt64}}, source::Nothing)
@ Base .\loading.jl:1554
[11] top-level scope
@ stdin:1
in expression starting at C:\Users\DAVIDF\.julia\packages\SymbolicNumericIntegration\OUbIs\src\SymbolicNumericIntegration.jl:1
in expression starting at stdin:1
ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78]
Failed to precompile ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78] to C:\Users\DAVIDF\.julia\compiled\v1.8\ModelingToolkit\jl_9DD8.tmp.
ERROR: LoadError: UndefVarError: handle_varmap not defined
Stacktrace:
[1] include
@ .\Base.jl:419 [inlined]
[2] 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, UInt64}}, source::Nothing)
@ Base .\loading.jl:1554
[3] top-level scope
@ stdin:1
in expression starting at C:\Users\DAVIDF\.julia\packages\ModelingToolkit\e7Li7\src\ModelingToolkit.jl:1
in expression starting at stdin:1
MethodOfLines [94925ecb-adb7-4558-8ed8-f975c56a0bf4]
Failed to precompile MethodOfLines [94925ecb-adb7-4558-8ed8-f975c56a0bf4] to C:\Users\DAVIDF\.julia\compiled\v1.8\MethodOfLines\jl_C78A.tmp.
ERROR: LoadError: UndefVarError: handle_varmap not defined
Stacktrace:
[1] include
@ .\Base.jl:419 [inlined]
[2] 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, UInt64}}, source::String)
@ Base .\loading.jl:1554
[3] top-level scope
@ stdin:1
in expression starting at C:\Users\DAVIDF\.julia\packages\ModelingToolkit\e7Li7\src\ModelingToolkit.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78] to C:\Users\DAVIDF\.julia\compiled\v1.8\ModelingToolkit\jl_E7D4.tmp.
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:1705
[3] compilecache
@ .\loading.jl:1649 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base .\loading.jl:1200
[6] macro expansion
@ .\loading.jl:1180 [inlined]
[7] macro expansion
@ .\lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1144
[9] include
@ .\Base.jl:419 [inlined]
[10] 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, UInt64}}, source::Nothing)
@ Base .\loading.jl:1554
[11] top-level scope
@ stdin:1
in expression starting at C:\Users\DAVIDF\.julia\packages\MethodOfLines\EqHjt\src\MethodOfLines.jl:1
in expression starting at stdin:1
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\DAVIDF\AppData\Local\Programs\Julia-1.8.1\share\julia\stdlib\v1.8\Pkg\src\Types.jl:67
[2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\DAVIDF\AppData\Local\Programs\Julia-1.8.1\share\julia\stdlib\v1.8\Pkg\src\API.jl:1427
[3] precompile
@ C:\Users\DAVIDF\AppData\Local\Programs\Julia-1.8.1\share\julia\stdlib\v1.8\Pkg\src\API.jl:1058 [inlined]
[4] #precompile#225
@ C:\Users\DAVIDF\AppData\Local\Programs\Julia-1.8.1\share\julia\stdlib\v1.8\Pkg\src\API.jl:1057 [inlined]
[5] precompile (repeats 2 times)
@ C:\Users\DAVIDF\AppData\Local\Programs\Julia-1.8.1\share\julia\stdlib\v1.8\Pkg\src\API.jl:1057 [inlined]
[6] top-level scope
@ REPL[11]:1
Can anybody help?
Thanks,
Dave