I am an absolute beginner to Julia trying to get started with the first NeuralPDE.jl tutorial at: https://neuralpde.sciml.ai/dev/examples/ode/
I am using Julia 1.5.2
and understand that I need to install some packages before I can get started with the tutorial. But I am not clear as to what exactly as I don’t see specific documentation about that. [1]
What I have tried so far is to get into pkg
mode and run the following:
add DifferentialEquations
add Flux
add Optim
add NeuralPDE
But when I then try to follow the run the tutorial’s first lines, I stumble into the following:
julia> using NeuralPDE
[ Info: Precompiling NeuralPDE [315f7962-48a3-4962-8226-d0f33b1235f0]
WARNING: could not import DiffEqBase.OptimizationFunction into GalacticOptim
WARNING: could not import DiffEqBase.AbstractADType into GalacticOptim
ERROR: LoadError: LoadError: UndefVarError: AbstractADType not defined
Stacktrace:
[1] top-level scope at /Users/harish/.julia/packages/GalacticOptim/TzUrT/src/function.jl:1
[2] include(::Function, ::Module, ::String) at ./Base.jl:380
[3] include at ./Base.jl:368 [inlined]
[4] include(::String) at /Users/harish/.julia/packages/GalacticOptim/TzUrT/src/GalacticOptim.jl:1
[5] top-level scope at /Users/harish/.julia/packages/GalacticOptim/TzUrT/src/GalacticOptim.jl:15
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /Users/harish/.julia/packages/GalacticOptim/TzUrT/src/function.jl:1
in expression starting at /Users/harish/.julia/packages/GalacticOptim/TzUrT/src/GalacticOptim.jl:15
ERROR: LoadError: Failed to precompile GalacticOptim [a75be94c-b780-496d-a8a9-0878b188d577] to /Users/harish/.julia/compiled/v1.5/GalacticOptim/fP6Iz_l9FIb.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /Users/harish/.julia/packages/NeuralPDE/7SDF6/src/NeuralPDE.jl:9
ERROR: Failed to precompile NeuralPDE [315f7962-48a3-4962-8226-d0f33b1235f0] to /Users/harish/.julia/compiled/v1.5/NeuralPDE/uYXxU_l9FIb.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
Could someone point me to what I should be trying to do to correct this? I imagine I should be uninstalling/reinstalling different variants of these requirements, or maybe an additional package DiffEqBase
(?), but I am not sure.
[1] I will independently write on GitHub and see if the authors are interested in additions to the documentation that help beginners like me.