# DiffEqFlux.sciml\_train

**URL:** <https://discourse.julialang.org/t/diffeqflux-sciml-train/100814>\
**Category:** New to Julia\
**Created:** [June 25, 2023, 5:04pm UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train/100814 "2023-06-25T17:04:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maria\_Adelaide\_Loffa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_adelaide_loffa/32/51045_2.png) [@Maria\_Adelaide\_Loffa](https://discourse.julialang.org/u/Maria_Adelaide_Loffa)\
**Post date:** [June 25, 2023, 5:04pm UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train/100814/1 "2023-06-25T17:04:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [June 25, 2023, 5:20pm UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train/100814/2 "2023-06-25T17:20:34Z")

</div>

> [@Maria\_Adelaide\_Loffa](#):
>
> 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”.

That was removed years ago. What are you reading? I suggest you look at the starting tutorial:

> **[Neural Ordinary Differential Equations · DiffEqFlux.jl](https://docs.sciml.ai/DiffEqFlux/dev/examples/neural_ode/)**
>
> Documentation for DiffEqFlux.jl.

---

<div class="post-metadata">

**Author:** ![Maria\_Adelaide\_Loffa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_adelaide_loffa/32/51045_2.png) [@Maria\_Adelaide\_Loffa](https://discourse.julialang.org/u/Maria_Adelaide_Loffa)\
**Post date:** [June 29, 2023, 7:07am UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train/100814/3 "2023-06-29T07:07:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Maria\_Adelaide\_Loffa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_adelaide_loffa/32/51045_2.png) [@Maria\_Adelaide\_Loffa](https://discourse.julialang.org/u/Maria_Adelaide_Loffa)\
**Post date:** [June 29, 2023, 7:39am UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train/100814/4 "2023-06-29T07:39:55Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![avikpal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avikpal/32/6550_2.png) [@avikpal](https://discourse.julialang.org/u/avikpal)\
**Post date:** [June 29, 2023, 2:58pm UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train/100814/5 "2023-06-29T14:58:01Z")

</div>

Can you share your Project and Manifest files? ComponentArrays hasn’t been a direct dependency for Lux for a long time.
