MethodError: no method matching (::var"#32#41")()

Hello,

I am new and in order to learn Julia I’m trying to follow this link and this one. I have defined everything and works without error. But when I try to use these solvers I get:

ERROR: MethodError: no method matching (::var"#32#41")()
Closest candidates are:
  (::var"#32#41")(::Any) at c:\Users\...........
Stacktrace:
 [1] _call(::Val{:actions}, f::Function, args::Tuple{}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ QuickPOMDPs ................
 [2] _call(namev::Val{:actions}, m::QuickMDP{UUID("f1886509-b5d1-4e6c-9eb1-790fc893c3bb"), State, Action, NamedTuple{(:stateindex, :isterminal, :initialstate, :gen, :states, :actions, :discount, :actiontype), Tuple{Dict{State, Int64}, var"#35#44", Vector{State}, var"#27#36", Vector{State}, var"#32#41", Float64, DataType}}}, args::Tuple{}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})

Can you help me?

What code exactly are you trying to run? The example from your link itself seems to be ok.

1 Like