Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

play() method fails #4

Open
ashwanirathee opened this issue Feb 1, 2022 · 1 comment
Open

play() method fails #4

ashwanirathee opened this issue Feb 1, 2022 · 1 comment

Comments

@ashwanirathee
Copy link

ashwanirathee commented Feb 1, 2022

I was trying this package on my system:

]activate .
]add SnakeGames
using SnakeGames
play()

I was faced with error:

julia> play()
ERROR: MethodError: no method matching shadertype(::FileIO.File{FileIO.DataFormat{:UNKNOWN}, String})
Closest candidates are:
  shadertype(::GLMakie.GLAbstraction.Shader) at /home/ashwani/.julia/packages/GLMakie/mScRF/src/GLAbstraction/GLShader.jl:63
  shadertype(::FileIO.File{FileIO.DataFormat{:GLSLShader}, Name} where Name) at /home/ashwani/.julia/packages/GLMakie/mScRF/src/GLAbstraction/GLShader.jl:64
  shadertype(::AbstractString) at /home/ashwani/.julia/packages/GLMakie/mScRF/src/GLAbstraction/GLShader.jl:67
Stacktrace:
  [1] compile_shader(path::String, source_str::String)
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/mScRF/src/GLAbstraction/GLShader.jl:145
  [2] (::GLMakie.GLAbstraction.var"#53#54"{String, Dict{String, String}, Dict{Symbol, Any}})()
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/mScRF/src/GLAbstraction/GLShader.jl:170
  [3] get!(default::GLMakie.GLAbstraction.var"#53#54"{String, Dict{String, String}, Dict{Symbol, Any}}, h::Dict{String, Vector{String}}, key::String)
    @ Base ./dict.jl:465
  [4] get_template!(path::String, view::Dict{String, String}, attributes::Dict{Symbol, Any})
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/mScRF/src/GLAbstraction/GLShader.jl:162
  [5] gl_convert(lazyshader::GLMakie.GLAbstraction.LazyShader, data::Dict{Symbol, Any})
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/mScRF/src/GLAbstraction/GLShader.jl:250
  [6] GLMakie.GLAbstraction.RenderObject(data::Dict{Symbol, Any}, program::GLMakie.GLAbstraction.LazyShader, pre::GLMakie.PostprocessPrerender, post::Nothing, bbs::Observables.Observable{GeometryBasics.HyperRectangle{3, Float32}}, main::Nothing)
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/mScRF/src/GLAbstraction/GLTypes.jl:341
  [7] RenderObject
    @ ~/.julia/packages/GLMakie/mScRF/src/GLA

versioninfo:

julia> versioninfo()
Julia Version 1.6.5
Commit 9058264a69 (2021-12-19 12:30 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

and GLMakie version is
GLMakie v0.1.23

(rlpackages) pkg> status
      Status `~/GSOC/ReinforcementLearning.jl/Project.toml`
  [c3e4b0f8] Pluto v0.17.7
  [158674fc] ReinforcementLearning v0.10.0
  [34dccd9f] SnakeGames v0.1.2

I would like to help if this package is still maintained and hasn't been superseeded by GridWorlds.jl

@bolognam
Copy link

For Julia 1.9 users (and potentially beyond), consider using my fork: https://github.com/bolognam/SnakeGames.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants