Hi! I’m new to Julia and Catalyst.jl. I am trying to follow the tutorial of Introduction to learn how to use catalyst. I install packages, including
Blockquote
StatusC:\Users\23954749\.julia\environments\v1.10\Project.toml
⌃ [479239e8] Catalyst v12.1.1
⌃ [0c46a032] DifferentialEquations v6.20.0
[f80590ac] JuliaFEM v0.5.1
⌅ [98e50ef6] JuliaFormatter v0.15.11
⌅ [961ee093] ModelingToolkit v6.4.9
[2774e3e8] NLsolve v4.5.1
⌅ [1dea7af3] OrdinaryDiffEq v5.71.2
[91a5bcdd] Plots v1.40.9
⌅ [47a9eef4] SparseDiffTools v1.21.0
[24249f21] SymPy v2.2.1
Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why usestatus --outdated
I directly copied the codes in tutorial of constructing the reaction network, as shown below,
Blockquote
using Catalyst
using OrdinaryDiffEq
using Plots
rn = @reaction_network begin
b, 0 → X
d, X → 0
end
Julia returned errors that I can’t solve, which I hope to get helped so I can keep going on.
Blockquote
ERROR: MethodError: no method matching validate(::ReactionSystem{Nothing, Catalyst.NetworkProperties{Int64, Term{Real, Base.ImmutableDict{DataType, Any}}}})
Closest candidates are:
validate(::Equation; info)
@ ModelingToolkit C:\Users\23954749.julia\packages\ModelingToolkit\0dKHa\src\systems\validation.jl:185
validate(::Equation, ::Union{Num, SymbolicUtils.Symbolic, Unitful.Quantity}; info)
@ ModelingToolkit C:\Users\23954749.julia\packages\ModelingToolkit\0dKHa\src\systems\validation.jl:186
validate(::Equation, ::Vector; info)
@ ModelingToolkit C:\Users\23954749.julia\packages\ModelingToolkit\0dKHa\src\systems\validation.jl:187
…
Stacktrace:
[1] ReactionSystem(eqs::Vector{…}, iv::Sym{…}, states::Vector{…}, ps::Vector{…}, var_to_name::Dict{…}, observed::Vector{…}, name::Symbol, systems::Vector{…}, defaults::Dict{…}, connection_type::Nothing, csys::Nothing, nps::Catalyst.NetworkProperties{…}, cls::Bool; checks::Bool)
@ Catalyst C:\Users\23954749.julia\packages\Catalyst\JocXA\src\reactionsystem.jl:460
[2] ReactionSystem(eqs::Vector{…}, iv::Sym{…}, states::Vector{…}, ps::Vector{…}; observed::Vector{…}, systems::Vector{…}, name::Symbol, default_u0::Dict{…}, default_p::Dict{…}, defaults::Dict{…}, connection_type::Nothing, checks::Bool, constraints::Nothing, networkproperties::Nothing, combinatoric_ratelaws::Bool, balanced_bc_check::Bool)
@ Catalyst C:\Users\23954749.julia\packages\Catalyst\JocXA\src\reactionsystem.jl:547
[3] make_ReactionSystem_internal(rxs::Vector{…}, iv::Num, no_sps::Nothing, ps_in::Vector{…}; kwargs::@Kwargs{…})
@ Catalyst C:\Users\23954749.julia\packages\Catalyst\JocXA\src\reactionsystem.jl:597
[4] top-level scope
@ C:\Users\23954749.julia\packages\Catalyst\JocXA\src\reaction_network.jl:282
Thank you!