Error in 'Generate Table'
I've tried to clone the git and use it, but when I run julia -p NUM_PROCS SolveMDP.jl I got this error:
ERROR: LoadError: LoadError: UndefVarError: n_actions not define
Stacktrace: [1] getproperty(::Module, ::Symbol) at ./Base.jl:26 [2] top-level scope at /home/docouments/HorizontalCAS/GenerateTable/mdp/hCAS.jl:22 [3] include(::Module, ::String) at ./Base.jl:377 [4] include(::String) at /home/docouments/HorizontalCAS/GenerateTable/mdp/HCAS.jl:1 [5] top-level scope at /home/docouments/HorizontalCAS/GenerateTable/mdp/HCAS.jl:10 [6] include(::Module, ::String) at ./Base.jl:377 [7] top-level scope at none:2 [8] eval at ./boot.jl:331 [inlined] [9] eval(::Expr) at ./client.jl:449 [10] top-level scope at ./none:3 in expression starting at /home/docouments/HorizontalCAS/GenerateTable/mdp/hCAS.jl:22 in expression starting at /home/docouments/HorizontalCAS/GenerateTable/mdp/HCAS.jl:10 ERROR: LoadError: Failed to precompile HCAS [top-level] to /home/davide-laptop/.julia/compiled/v1.4/HCAS.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272 [3] _require(::Base.PkgId) at ./loading.jl:1029 [4] require(::Base.PkgId) at ./loading.jl:927 [5] require(::Module, ::Symbol) at ./loading.jl:922 [6] top-level scope at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Distributed/src/macros.jl:199 [7] include(::Module, ::String) at ./Base.jl:377 [8] exec_options(::Base.JLOptions) at ./client.jl:288 [9] _start() at ./client.jl:484 in expression starting at /home/docouments/HorizontalCAS/GenerateTable/SolveMDP.jl:6
Thanks!
I had this error too. It's because newer versions of the POMDPs dependency no longer provide n_actions. I was able to resolve it by installing this dependency at version v0.7.0 ([email protected]). This might not be the latest version that works, but it worked for me with this versions.
There was another version error with POMDPModelTools however, that got resolved by using [email protected]
I was furthermore using the docker container julia:1.1 for version 1.1 of julia.