PDEsystems has version conflict?

I am new to Julia. I installed today the latest version of Julia, Atom and Juno and the packages to run the examples on the NeuralPDE.jl website. I cannot run any command from the package ModelingToolkit that uses “PDESystems”. I leave below a link to the example code and another link to a discussion about the same error I am getting. It appears that this is a version issue, but all my packages and Julia versions are up to date (I installed everything today).

The link to the example is here

Link to the same issue I am having

Exact error I get:

MethodError: no method matching PDESystem(::Equation, ::Vector{Equation}, ::Vector{Symbolics.VarDomainPairing}, ::Vector{Num}, ::Vector{Sym{SymbolicUtils.FnType{Tuple, Real}, Nothing}}, ::SciMLBase.NullParameters; name=:pde_system)
Closest candidates are:
  PDESystem(::Any, ::Any, ::Any, ::Any, ::Any, ::Any; defaults, connection_type) at C:\Users\Username\.julia\packages\ModelingToolkit\yGWxM\src\systems\pde\pdesystem.jl:59 got unsupported keyword argument "name"
  PDESystem(::Any, ::Any, ::Any, ::Any, ::Any) at C:\Users\Username\.julia\packages\ModelingToolkit\yGWxM\src\systems\pde\pdesystem.jl:59 got unsupported keyword argument "name"
kwerr(::NamedTuple{(:name,), Tuple{Symbol}}, ::Type, ::Equation, ::Vector{Equation}, ::Vector{Symbolics.VarDomainPairing}, ::Vector{Num}, ::Vector{Sym{SymbolicUtils.FnType{Tuple, Real}, Nothing}}, ::SciMLBase.NullParameters) at error.jl:157
(::Core.var"#Type##kw")(::NamedTuple{(:name,), Tuple{Symbol}}, ::Type{PDESystem}, eqs::Equation, bcs::Vector{Equation}, domain::Vector{Symbolics.VarDomainPairing}, indvars::Vector{Num}, depvars::Vector{Sym{SymbolicUtils.FnType{Tuple, Real}, Nothing}}, ps::SciMLBase.NullParameters) at pdesystem.jl:64
(::Core.var"#Type##kw")(::NamedTuple{(:name,), Tuple{Symbol}}, ::Type{PDESystem}, eqs::Equation, bcs::Vector{Equation}, domain::Vector{Symbolics.VarDomainPairing}, indvars::Vector{Num}, depvars::Vector{Sym{SymbolicUtils.FnType{Tuple, Real}, Nothing}}) at pdesystem.jl:64
top-level scope at untitled-fee6ca1a8cc3740f970fc07e9e7f469a:25
eval at boot.jl:360 [inlined]

The link to the example looks fine.
The link to the issue looks suspicious too me. Could you please search for a better one?

1 Like

Just installing packages for your example on 1.7.0-rc3: package manager is downgrading a lot of packages for me.

 [dce04be8] - ArgCheck v2.1.0
  [ec485272] ↓ ArnoldiMethod v0.2.0 ⇒ v0.1.0
  [15f4f7f2] - AutoHashEquals v0.2.0
  [198e06fe] - BangBang v0.3.32
  [9718e550] - Baselet v0.1.1
  [34da2185] ↑ Compat v3.39.0 ⇒ v3.40.0
  [a33af91c] - CompositionsBase v0.1.1
  [8a292aeb] + Cuba v2.2.0
  [667455a9] + Cubature v1.5.1
  [82cc6244] ↓ DataInterpolations v3.7.0 ⇒ v3.6.1
  [244e2a9f] - DefineSingletons v0.1.1
  [c894b116] ↓ DiffEqJump v8.0.0 ⇒ v7.3.1
  [b4f34e82] ↑ Distances v0.10.5 ⇒ v0.10.6
  [ffbed154] ↑ DocStringExtensions v0.8.5 ⇒ v0.8.6
  [5789e2e9] ↑ FileIO v1.11.1 ⇒ v1.11.2
  [19dc6840] + HCubature v1.5.0
  [cd3eb016] ↑ HTTP v0.9.16 ⇒ v0.9.17
  [22cec73e] - InitialValues v0.2.11
  [093fc24a] + LightGraphs v1.3.5
  [1914dd2f] ↑ MacroTools v0.5.8 ⇒ v0.5.9
  [e9d8d322] - Metatheory v1.3.2
  [128add7d] - MicroCollections v0.1.1
  [961ee093] ↓ ModelingToolkit v7.1.2 ⇒ v6.7.1
  [4886b29c] + MonteCarloIntegration v0.0.3
  [315f7962] + NeuralPDE v4.0.1
  [65888b18] ↓ ParameterizedFunctions v5.12.2 ⇒ v5.12.1
  [69de0a69] ↑ Parsers v2.0.6 ⇒ v2.1.2
  [2dfb63ee] ↑ PooledArrays v1.3.0 ⇒ v1.4.0
  [67601950] + Quadrature v1.12.0
  [42d2dcc6] - Referenceables v0.1.2
  [171d559e] - SplittablesBase v0.1.14
  [82ae8749] ↑ StatsAPI v1.0.0 ⇒ v1.1.0
  [2913bbd2] ↑ StatsBase v0.33.12 ⇒ v0.33.13
  [d1185830] ↓ SymbolicUtils v0.18.1 ⇒ v0.16.0
  [0c5d862f] ↓ Symbolics v4.1.0 ⇒ v3.5.1
  [8ea1fca8] ↓ TermInterface v0.2.3 ⇒ v0.1.8
  [ac1d9e8a] - ThreadsX v0.1.8
  [28d57a85] - Transducers v0.4.67
  [3bed1096] + Cuba_jll v4.2.2+0
  [7bc98958] + Cubature_jll v1.0.5+0
  [2381bf8a] ↑ Wayland_protocols_jll v1.18.0+4 ⇒ v1.23.0+0 

Looks like NeuralPDE isn’t that up to date.

1 Like

After that and installing a couple more packages the example seems to work for me…

1 Like

Thanks @goerch. The link is safe. I found it by copy pasting the first line of the error I got.

1 Like

@goerch thank you for your response. I have Julia version 1.6.4. I updated all my packages just right now and I still cant get PDESystems to work. Im not sure what to do… Should I change my julia version to 1.7.0-rc3?

But it looks like copy&pasta from somewhere(i.e. not a trustworthy site).

1 Like

I’m just a data point. Probably your best bet would be to use a local environment.

1 Like

OK. Ill give that a try. Thanks

If you encounter more problems I’ll check with 1.6.4. All the best!

1 Like

Now I’m on 1.6.4 and after some package installing everything works for me still. Will investigate your error message next…

1 Like

I followed this example: https://stackoverflow.com/a/60134591 and now I have ModelingToolkit version 6.7.1 and it runs. Before, just updating was not giving me a later version of ModelingToolkit.

1 Like

Best match to your error message seems to be: https://github.com/SciML/NeuralPDE.jl/issues/131
Not sure what to make of this, though.

I don’t do enough Pkg.update() myself;)

BTW: if you are on that old of a version, I’d recommend to upgrade: AFAIU 1.6.x will be the next LTS.

1 Like

Thanks. Im new to Julia; what does AFAIU and LTS mean? :confused:

1 Like

(A)s (F)ar (A)s (I) (U)nderstand and (L)ong (T)erm (S)upport. Gotta love acronyms;)

1 Like

Hahahah OK, that makes sense. Thanks!

1 Like

Yeah, v1.6 is LTS and so we have no intention to support previous versions.

1 Like