# Makie: Unable to produce any plot. MethodError: no method matching shadertype

**URL:** https://discourse.julialang.org/t/makie-unable-to-produce-any-plot-methoderror-no-method-matching-shadertype/58519
**Category:** Visualization
**Tags:** makie
**Created:** [April 3, 2021, 7:35pm UTC](https://discourse.julialang.org/t/makie-unable-to-produce-any-plot-methoderror-no-method-matching-shadertype/58519 "2021-04-03T19:35:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AAlshammaa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aalshammaa/32/23499_2.png) [@AAlshammaa](https://discourse.julialang.org/u/AAlshammaa)
#### Post date: [April 3, 2021, 7:35pm UTC](https://discourse.julialang.org/t/makie-unable-to-produce-any-plot-methoderror-no-method-matching-shadertype/58519/1 "2021-04-03T19:35:10Z")

</div>

I am using Julia 1.6.0. I did a clean install by deleting ~/.julia then re-installed Makie package.  
When I try to start a scene using `Scene()`, or plot straight away using something like `lines(1:10, 1:10)` i get this error:

```julia
julia> Scene()
Error showing value of type Scene:
ERROR: MethodError: no method matching shadertype(::FileIO.File{FileIO.DataFormat{:UNKNOWN}, String})
Closest candidates are:
  shadertype(::GLMakie.GLAbstraction.Shader) at /Users/abdullah/.julia/packages/GLMakie/Pway1/src/GLAbstraction/GLShader.jl:63
  shadertype(::FileIO.File{FileIO.DataFormat{:GLSLShader}, Name} where Name) at /Users/abdullah/.julia/packages/GLMakie/Pway1/src/GLAbstraction/GLShader.jl:64
  shadertype(::AbstractString) at /Users/abdullah/.julia/packages/GLMakie/Pway1/src/GLAbstraction/GLShader.jl:67
Stacktrace:
  [1] compile_shader(path::String, source_str::String)
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/Pway1/src/GLAbstraction/GLShader.jl:145
  [2] (::GLMakie.GLAbstraction.var"#53#54"{String, Dict{String, String}, Dict{Symbol, Any}})()
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/Pway1/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/Pway1/src/GLAbstraction/GLShader.jl:162
  [5] gl_convert(lazyshader::GLMakie.GLAbstraction.LazyShader, data::Dict{Symbol, Any})
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/Pway1/src/GLAbstraction/GLShader.jl:250
  [6] GLMakie.GLAbstraction.RenderObject(data::Dict{Symbol, Any}, program::GLMakie.GLAbstraction.LazyShader, pre::GLMakie.PostprocessPrerender, post::Nothing, bbs::Observable{GeometryBasics.HyperRectangle{3, Float32}}, main::Nothing)
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/Pway1/src/GLAbstraction/GLTypes.jl:341
  [7] RenderObject
    @ ~/.julia/packages/GLMakie/Pway1/src/GLAbstraction/GLTypes.jl:309 [inlined]
  [8] postprocess(color::GLMakie.GLAbstraction.Texture{ColorTypes.RGBA{FixedPointNumbers.N0f8}, 2}, position::GLMakie.GLAbstraction.Texture{Vec{4, Float32}, 2}, normal_occlusion::GLMakie.GLAbstraction.Texture{Vec{4, Float32}, 2}, ssao_noise::GLMakie.GLAbstraction.Texture{Vec{2, Float32}, 2}, objectid::GLMakie.GLAbstraction.Texture{Vec2{UInt32}, 2}, color_luma::GLMakie.GLAbstraction.Texture{ColorTypes.RGBA{FixedPointNumbers.N0f8}, 2}, framebuffer_size::Observable{Tuple{Int64, Int64}})
    @ GLMakie ~/.julia/packages/GLMakie/Pway1/src/glwindow.jl:92
  [9] GLMakie.GLFramebuffer(fb_size::Tuple{Int64, Int64})
    @ GLMakie ~/.julia/packages/GLMakie/Pway1/src/glwindow.jl:201
 [10] GLMakie.Screen(; resolution::Tuple{Int64, Int64}, visible::Bool, title::String, kw_args::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ GLMakie ~/.julia/packages/GLMakie/Pway1/src/screen.jl:333
 [11] Screen
    @ ~/.julia/packages/GLMakie/Pway1/src/screen.jl:291 [inlined]
 [12] global_gl_screen
    @ ~/.julia/packages/GLMakie/Pway1/src/screen.jl:363 [inlined]
 [13] global_gl_screen(resolution::Tuple{Int64, Int64}, visibility::Bool, tries::Int64)
    @ GLMakie ~/.julia/packages/GLMakie/Pway1/src/screen.jl:373
 [14] global_gl_screen
    @ ~/.julia/packages/GLMakie/Pway1/src/screen.jl:372 [inlined]
 [15] backend_display
    @ ~/.julia/packages/GLMakie/Pway1/src/gl_backend.jl:57 [inlined]
 [16] display(d::AbstractPlotting.PlotDisplay, scene::Scene)
    @ AbstractPlotting ~/.julia/packages/AbstractPlotting/JCbJs/src/display.jl:45
 [17] display(x::Any)
    @ Base.Multimedia ./multimedia.jl:328
 [18] #invokelatest#2
    @ ./essentials.jl:708 [inlined]
 [19] invokelatest
    @ ./essentials.jl:706 [inlined]
 [20] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
    @ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:247
 [21] (::REPL.var"#40#41"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
    @ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:231
 [22] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
    @ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:462
 [23] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
    @ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:229
 [24] (::REPL.var"#do_respond#61"{Bool, Bool, REPL.var"#72#82"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
    @ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:798
 [25] #invokelatest#2
    @ ./essentials.jl:708 [inlined]
 [26] invokelatest
    @ ./essentials.jl:706 [inlined]
 [27] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2441
 [28] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:1126
 [29] (::REPL.var"#44#49"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ./task.jl:406

```

I tried building GLMakie as suggested by post [here](https://github.com/JuliaPlots/Makie.jl/issues/320) but I get this output:

```julia
(@v1.6) pkg> build GLMakie
    Building ModernGL → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/326957556e9cc9253615114c04bb0096a2a69bb8/build.log`
    Building FFTW ────→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/1b48dbde42f307e48685fa9213d8b9f8c0d87594/build.log`
    Building GLMakie ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/1b2b9f939cbdcfa64e4f9a03601581a337c805b2/build.log`
Precompiling project...
  Progress [========================================>] 6/6
  ? FFTViews
  ? KernelDensity
  ? ImageFiltering
  ? MakieGallery
  ? GLMakie
1 dependency successfully precompiled in 9 seconds (186 already precompiled)
5 dependencies failed but may be precompilable after restarting julia

```

Obviously i restarted Julia, and I tried clean install by removing ~/.julia altogether.  
Here is my Pkg status:

```julia
(@v1.6) pkg> status
      Status `~/.julia/environments/v1.6/Project.toml`
  [537997a7] AbstractPlotting v0.12.18
  [5789e2e9] FileIO v1.6.5
  [e9467ef8] GLMakie v0.1.13
  [7073ff75] IJulia v1.23.2
  [ee78f7c6] Makie v0.11.1
  [dbd62bd0] MakieGallery v0.2.17
  [510215fc] Observables v0.3.3
  [91a5bcdd] Plots v1.11.2

```

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [April 3, 2021, 8:35pm UTC](https://discourse.julialang.org/t/makie-unable-to-produce-any-plot-methoderror-no-method-matching-shadertype/58519/2 "2021-04-03T20:35:55Z")

</div>

Remove makiegallery, makie, abstractplotting and observables. GLMakie is enough. This should give you the most recent version when you update

---

<div class="post-metadata">

### Author: ![AAlshammaa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aalshammaa/32/23499_2.png) [@AAlshammaa](https://discourse.julialang.org/u/AAlshammaa)
#### Post date: [April 3, 2021, 9:04pm UTC](https://discourse.julialang.org/t/makie-unable-to-produce-any-plot-methoderror-no-method-matching-shadertype/58519/3 "2021-04-03T21:04:56Z")

</div>

Thank you. It works now. It seems the initial problem was me using `add Makie` which installed an old version, instead of only using `add GLMakie`.
