Hi, I am new to Julia and lately I was studying some examples about NeuralODEs.
In many of the, “DiffEqFlux.sciml_train” it’s used, but I am not able to run it, and i get and error about “method matching”.
Even by copying and paste the code from the example, it still doesn’t work.
Any suggestions?
That was removed years ago. What are you reading? I suggest you look at the starting tutorial:
Hi, thank you, but I’m having problems installing the Lux package.
Apparently installation is successful but as soons as I try to use it I get the following error. What should I do?
Thank you in advance
[ Info: Precompiling Lux [b2108857-7c20-44ae-9111-449ecde12c47]
ERROR: LoadError: UndefVarError: print_type_stacktrace
not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base .\Base.jl:31
[2] top-level scope
@ C:\Users\Michele.julia\packages\ComponentArrays\V4pnU\src\show.jl:39
[3] include(mod::Module, _path::String)
@ Base .\Base.jl:457
[4] include(x::String)
@ ComponentArrays C:\Users\Michele.julia\packages\ComponentArrays\V4pnU\src\ComponentArrays.jl:1
[5] top-level scope
@ C:\Users\Michele.julia\packages\ComponentArrays\V4pnU\src\ComponentArrays.jl:45
[6] include
@ .\Base.jl:457 [inlined]
[7] 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, UInt128}}, source::String)
@ Base .\loading.jl:2010
[8] top-level scope
@ stdin:2
in expression starting at C:\Users\Michele.julia\packages\ComponentArrays\V4pnU\src\show.jl:38
in expression starting at C:\Users\Michele.julia\packages\ComponentArrays\V4pnU\src\ComponentArrays.jl:1
in expression starting at stdin:2
ERROR: LoadError: Failed to precompile ComponentArrays [b0b7db55-cfe3-40fc-9ded-d10e2dbeff66] to “C:\Users\Michele\.julia\compiled\v1.9\ComponentArrays\jl_1DB8.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:2260
[3] compilecache
@ .\loading.jl:2127 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1770
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1625
[6] macro expansion
@ .\loading.jl:1613 [inlined]
[7] macro expansion
@ .\lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1576
[9] include
@ .\Base.jl:457 [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, UInt128}}, source::Nothing)
@ Base .\loading.jl:2010
[11] top-level scope
@ stdin:2
in expression starting at C:\Users\Michele.julia\packages\Lux\wsZ6r\src\Lux.jl:1
in expression starting at stdin:2
ERROR: Failed to precompile Lux [b2108857-7c20-44ae-9111-449ecde12c47] to “C:\Users\Michele\.julia\compiled\v1.9\Lux\jl_BC6F.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:2260
[3] compilecache
@ .\loading.jl:2127 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1770
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1625
[6] macro expansion
@ .\loading.jl:1613 [inlined]
[7] macro expansion
@ .\lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1576
I 've just realized that I’m not able to use also other packages (none of them I guess).
I tried with componentarrays and I have the same problem!
Can you share your Project and Manifest files? ComponentArrays hasn’t been a direct dependency for Lux for a long time.