I had the same problem as this guy (https://discourse.julialang.org/t/no-backend-available-glmakie-cairomakie-wglmakie/62984) with Makie, so I decided to try just GLMakie to figure out what’s going on.
These are my steps, and relevant outputs in the order I performed those. (I’m on a 2016 MBP, with macOS Catalina)
-
pkg> add GLMakie
Precompiles successfully. -
pkg> test Makie
Testing GLMakie
┌ Warning: Could not use exact versions of packages in manifest, re-resolving
└ @ Pkg.Operations /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1526
ERROR: expected package `ReferenceTests [d37af2e0]` to be registered
-
pkg> add ReferenceTests
success. -
pkg> test ReferenceTests
some deprecated warnings and this is the summary.
Test Summary: | Pass Error Total
ReferenceTests | 46 1 47
io2str | 7 7
withcolor | 3 3
string as txt | 11 11
string as unknown file type | 1 1
images as txt using ImageInTerminal | 2 2
plain ansi string | 2 2
string as SHA | 3 3
images as SHA | 2 2
images as PNG | 4 4
Plots as PNG images | 1 1
DataFrame as CSV | 2 2
Create new .csv | 2 2
Create new .png | 2 2
Create new .txt | 2 2
Create new image as txt | 2 2
ERROR: LoadError: Some tests did not pass: 46 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/rajith/.julia/packages/ReferenceTests/1I8Dn/test/runtests.jl:21
ERROR: Package ReferenceTests errored during testing
-
pkg> test GLMakie
same output as (3) -
pkg> st ReferenceTests
[324d217c] ReferenceTests v0.9.7
At this point, I’m not sure what to do next
- However I ran the following code segment on Juno (Atom)
using GLMakie
inline!(false)
scene = Scene()
points = [Point2f0(cos(t), sin(t)) for t in LinRange(0, 2pi, 20)]
colors = 1:20
scatter!(scene, points, color = colors, markersize = 15)
everything ran without any issues, however, the output is only a white canvas (displayed at the line scene = Scene()
).
- I read somewhere that I may need to build
GLMakie
, so I did that bypkg> build GLMakie
Building ModernGL → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/326957556e9cc9253615114c04bb0096a2a69bb8/build.log`
Precompiling project...
2 dependencies successfully precompiled in 9 seconds (155 already precompiled)
- Trying code in (7) again. - same result.
I should note that scatter!(...)
returns Scatter{Tuple{Vector{Point{2, Float32}}}}
, while the documentation at https://juliahub.com/docs/AbstractPlotting/6fydZ/0.14.1/basic-tutorial.html states the following:
Scene (960px, 540px):
2 Plots:
├ Combined{AbstractPlotting.axis2d,Tuple{Tuple{Tuple{Float32,Float32},Tuple{Float32,Float32}}}}
└ Combined{AbstractPlotting.scatter,Tuple{Array{Point{2,Float32},1}}}
1 Child Scene:
└ Scene (960px, 540px)
which I do not get.
I’m unsure how to proceed from here. Could someone please give a hint on what I can try next.
Thank you!