* Julia using GLMakie
@ 2024-03-08 17:19 Mauritz Stenek via Guix-Science
2024-03-08 18:34 ` Cayetano Santos via Guix-Science
0 siblings, 1 reply; 13+ messages in thread
From: Mauritz Stenek via Guix-Science @ 2024-03-08 17:19 UTC (permalink / raw)
To: guix-science
Hello,
Has anyone here been able to use the GLMakie (makie.org) Julia
graphing package with Guix? When precompling, I get this error at
the julia REPL:
> ┌ Warning: GLFW couldn't create an OpenGL window.
> │ This likely means, you don't have an OpenGL capable
> Graphic Card,
> │ or you don't have an OpenGL 3.3 capable video driver
> installed.
> │ Have a look at the troubleshooting section in the GLMakie
> readme:
> │
> https://github.com/MakieOrg/Makie.jl/tree/master/GLMakie#troubleshooting-opengl.
> └ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:250
> ERROR: LoadError: GLFWError (API_UNAVAILABLE): GLX: No
> GLXFBConfigs returned
I know I have a GL capable video driver. I installed the `glfw`
and `julia-glfw-jll` guix packages and I get the same error
(granted, I don't know exactly what's going on; I'm flying blind a
bit here).
Thanks for your help.
--
Mauritz Stenek <mstenek@disroot.org>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-08 17:19 Julia using GLMakie Mauritz Stenek via Guix-Science @ 2024-03-08 18:34 ` Cayetano Santos via Guix-Science 2024-03-11 14:37 ` Pascal Quach 0 siblings, 1 reply; 13+ messages in thread From: Cayetano Santos via Guix-Science @ 2024-03-08 18:34 UTC (permalink / raw) To: Mauritz Stenek; +Cc: guix-science >ven. 08 mars 2024 at 11:19, Mauritz Stenek via Guix-Science <guix-science@gnu.org> wrote: > Hello, > > Has anyone here been able to use the GLMakie (makie.org) Julia graphing package with Guix? > When precompling, I get this error at the julia REPL: > > >> ┌ Warning: GLFW couldn't create an OpenGL window. >> │ This likely means, you don't have an OpenGL capable Graphic Card, >> │ or you don't have an OpenGL 3.3 capable video driver installed. >> │ Have a look at the troubleshooting section in the GLMakie readme: >> │ https://github.com/MakieOrg/Makie.jl/tree/master/GLMakie#troubleshooting-opengl. >> └ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:250 >> ERROR: LoadError: GLFWError (API_UNAVAILABLE): GLX: No GLXFBConfigs returned Same error here. Similarly, I’m unable to precompile Zygote. C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-08 18:34 ` Cayetano Santos via Guix-Science @ 2024-03-11 14:37 ` Pascal Quach 2024-03-11 15:34 ` Cayetano Santos via Guix-Science 0 siblings, 1 reply; 13+ messages in thread From: Pascal Quach @ 2024-03-11 14:37 UTC (permalink / raw) To: csantosb, Mauritz Stenek; +Cc: guix-science Hello Mauritz, Cayetano, The error you encounter is related to your system. I have been able to precompile the GLMakie package using the julia@1.9.3 from guix-science, but I run a foreign distro... From my experience, you may try to get information from these commands `glxinfo -B` and/or `vulkaninfo --summary` from mesa-utils and vulkan-tools, as well as julia> versioninfo() You may test your installation using glxgears and vkcube/vkcube-wayland. Generally speaking, if glxgears/vkcube run without any issues, then the precompilation should also work. Perhaps that may help! Best, Pascal Le 08/03/2024 à 19:34, Cayetano Santos via Guix-Science a écrit : > >> ven. 08 mars 2024 at 11:19, Mauritz Stenek via Guix-Science <guix-science@gnu.org> wrote: > >> Hello, >> >> Has anyone here been able to use the GLMakie (makie.org) Julia graphing package with Guix? >> When precompling, I get this error at the julia REPL: >> >> >>> ┌ Warning: GLFW couldn't create an OpenGL window. >>> │ This likely means, you don't have an OpenGL capable Graphic Card, >>> │ or you don't have an OpenGL 3.3 capable video driver installed. >>> │ Have a look at the troubleshooting section in the GLMakie readme: >>> │ https://github.com/MakieOrg/Makie.jl/tree/master/GLMakie#troubleshooting-opengl. >>> └ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:250 >>> ERROR: LoadError: GLFWError (API_UNAVAILABLE): GLX: No GLXFBConfigs returned > > Same error here. > > Similarly, I’m unable to precompile Zygote. > > C. > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-11 14:37 ` Pascal Quach @ 2024-03-11 15:34 ` Cayetano Santos via Guix-Science 2024-03-11 15:53 ` Pascal Quach 0 siblings, 1 reply; 13+ messages in thread From: Cayetano Santos via Guix-Science @ 2024-03-11 15:34 UTC (permalink / raw) To: Pascal Quach; +Cc: Mauritz Stenek, guix-science >lun. 11 mars 2024 at 15:37, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > Hello Mauritz, Cayetano, > > The error you encounter is related to your system. I have been able to precompile the > GLMakie package using the julia@1.9.3 from guix-science, but I run a foreign distro... I’m using guix on top of archlinux, so in a foreign distro config too. > From my experience, you may try to get information from these commands `glxinfo -B` and/or > `vulkaninfo --summary` from mesa-utils and vulkan-tools, as well as > julia> versioninfo() "glxinfo -B" gives me OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.3.2 whereas the warning message out of "precompile GMakie" says: This likely means, you don't have an OpenGL capable Graphic Card, or you don't have an OpenGL 3.3 capable video driver installed. which makes sense. > You may test your installation using glxgears and vkcube/vkcube-wayland. Generally > speaking, if glxgears/vkcube run without any issues, then the precompilation should also > work. glxgears performs well for me C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-11 15:34 ` Cayetano Santos via Guix-Science @ 2024-03-11 15:53 ` Pascal Quach 2024-03-11 16:10 ` Cayetano Santos via Guix-Science 0 siblings, 1 reply; 13+ messages in thread From: Pascal Quach @ 2024-03-11 15:53 UTC (permalink / raw) To: csantosb; +Cc: Mauritz Stenek, guix-science the version string to read is just above I believe. OpenGL ES is a different version. > glxinfo -B | grep "OpenGL version string" glxgears performs well, what about vkcube and vulkaninfo? Pascal Le 11/03/2024 à 16:34, Cayetano Santos a écrit : > >> lun. 11 mars 2024 at 15:37, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > >> Hello Mauritz, Cayetano, >> >> The error you encounter is related to your system. I have been able to precompile the >> GLMakie package using the julia@1.9.3 from guix-science, but I run a foreign distro... > > I’m using guix on top of archlinux, so in a foreign distro config too. > >> From my experience, you may try to get information from these commands `glxinfo -B` and/or >> `vulkaninfo --summary` from mesa-utils and vulkan-tools, as well as >> julia> versioninfo() > > "glxinfo -B" gives me > > OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.3.2 > > whereas the warning message out of "precompile GMakie" says: > > This likely means, you don't have an OpenGL capable Graphic Card, > or you don't have an OpenGL 3.3 capable video driver installed. > > which makes sense. > >> You may test your installation using glxgears and vkcube/vkcube-wayland. Generally >> speaking, if glxgears/vkcube run without any issues, then the precompilation should also >> work. > > glxgears performs well for me > > C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-11 15:53 ` Pascal Quach @ 2024-03-11 16:10 ` Cayetano Santos via Guix-Science 2024-03-11 16:24 ` Pascal Quach 0 siblings, 1 reply; 13+ messages in thread From: Cayetano Santos via Guix-Science @ 2024-03-11 16:10 UTC (permalink / raw) To: Pascal Quach; +Cc: Mauritz Stenek, guix-science >lun. 11 mars 2024 at 16:53, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > the version string to read is just above I believe. OpenGL ES is a different version. > >> glxinfo -B | grep "OpenGL version string" Oh, I see. In this case I get (using Arch’s mesa package): OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.2-arch1.2 OpenGL core profile shading language version string: 4.60 OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.2-arch1.2 OpenGL shading language version string: 4.60 OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.0.2-arch1.2 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 > glxgears performs well, what about vkcube and vulkaninfo? vkcube shows a nice cube spinning around smoothly. vulkaninfo gives this: https://paste.sr.ht/~csantosb/0053495d0a50fb13e57ba147b469244f1d4a099a Thanks for your help, C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-11 16:10 ` Cayetano Santos via Guix-Science @ 2024-03-11 16:24 ` Pascal Quach 2024-03-11 18:41 ` Cayetano Santos via Guix-Science 2024-03-11 19:44 ` Cayetano Santos via Guix-Science 0 siblings, 2 replies; 13+ messages in thread From: Pascal Quach @ 2024-03-11 16:24 UTC (permalink / raw) To: csantosb; +Cc: Mauritz Stenek, guix-science Looks like we'll be able to solve this. You may try to directly refer the driver filenames to Julia using VK_DRIVER_FILES, e.g., VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json julia -e "import Pkg; Pkg.activate(temp=true); Pkg.add(\"GLMakie\")" Replace lvp_icd.x86_64.json with the corresponding driver. In my case, I am running my distro in WSL2, so I needed vulkan-swrast. Le 11/03/2024 à 17:10, Cayetano Santos a écrit : > > >> lun. 11 mars 2024 at 16:53, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > >> the version string to read is just above I believe. OpenGL ES is a different version. >> >>> glxinfo -B | grep "OpenGL version string" > > Oh, I see. In this case I get (using Arch’s mesa package): > > OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.2-arch1.2 > OpenGL core profile shading language version string: 4.60 > OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.2-arch1.2 > OpenGL shading language version string: 4.60 > OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.0.2-arch1.2 > OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 > >> glxgears performs well, what about vkcube and vulkaninfo? > > vkcube shows a nice cube spinning around smoothly. > > vulkaninfo gives this: > > https://paste.sr.ht/~csantosb/0053495d0a50fb13e57ba147b469244f1d4a099a > > Thanks for your help, > > C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-11 16:24 ` Pascal Quach @ 2024-03-11 18:41 ` Cayetano Santos via Guix-Science 2024-03-11 19:44 ` Cayetano Santos via Guix-Science 1 sibling, 0 replies; 13+ messages in thread From: Cayetano Santos via Guix-Science @ 2024-03-11 18:41 UTC (permalink / raw) To: Pascal Quach; +Cc: Mauritz Stenek, guix-science >lun. 11 mars 2024 at 17:24, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > Looks like we'll be able to solve this. You may try to directly refer the driver filenames > to Julia using VK_DRIVER_FILES, e.g., > > VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json julia -e "import Pkg; > Pkg.activate(temp=true); Pkg.add(\"GLMakie\")" > > Replace lvp_icd.x86_64.json with the corresponding driver. In my case, I am running my > distro in WSL2, so I needed vulkan-swrast. I tried with export VK_DRIVER_FILES=/usr/share/vulkan/icd.d/intel_hasvk_icd.x86_64.json:/usr/share/vulkan/icd.d/intel_icd.x86_64.json julia ... I get the same error. Precompiling project... ✗ GLMakie 0 dependencies successfully precompiled in 24 seconds. 265 already precompiled. 1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package If I call precompile by hand, I get [ Info: Precompiling GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a] Warning: GLFW couldn't create an OpenGL window. │ This likely means, you don't have an OpenGL capable Graphic Card, │ or you don't have an OpenGL 3.3 capable video driver installed. │ Have a look at the troubleshooting section in the GLMakie readme: │ https://github.com/MakieOrg/Makie.jl/tree/master/GLMakie#troubleshooting-opengl. └ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:250 ERROR: LoadError: GLFWError (API_UNAVAILABLE): GLX: No GLXFBConfigs returned As usual. C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-11 16:24 ` Pascal Quach 2024-03-11 18:41 ` Cayetano Santos via Guix-Science @ 2024-03-11 19:44 ` Cayetano Santos via Guix-Science 2024-03-12 8:59 ` Pascal Quach 1 sibling, 1 reply; 13+ messages in thread From: Cayetano Santos via Guix-Science @ 2024-03-11 19:44 UTC (permalink / raw) To: Pascal Quach; +Cc: Mauritz Stenek, guix-science >lun. 11 mars 2024 at 17:24, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > Looks like we'll be able to solve this. You may try to directly refer the driver filenames > to Julia using VK_DRIVER_FILES, e.g., A couple of extra tries: guix shell -C --network --emulate-fhs --link-profile --preserve='^DISPLAY$' julia coreutils which nss-certs mesa mesa-utils vulkan-tools julia -e "import Pkg; Pkg.activate(temp=true); Pkg.add(\"GLMakie\")" Same problem. I have switched to arch’s julia (1.10.2 instead of 1.9.3), and I observe no issue. I’m even able to precompile Flux, which is not the case with guix’s julia. Any ideas are welcomed, C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-11 19:44 ` Cayetano Santos via Guix-Science @ 2024-03-12 8:59 ` Pascal Quach 2024-03-12 12:48 ` Cayetano Santos via Guix-Science 2024-03-12 13:32 ` Cayetano Santos via Guix-Science 0 siblings, 2 replies; 13+ messages in thread From: Pascal Quach @ 2024-03-12 8:59 UTC (permalink / raw) To: csantosb; +Cc: Mauritz Stenek, guix-science Hello, I see you tried with both the intel ahd intel_hasvk, have you tried lvp? Best, Pascal Le 11/03/2024 à 20:44, Cayetano Santos a écrit : > >> lun. 11 mars 2024 at 17:24, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > >> Looks like we'll be able to solve this. You may try to directly refer the driver filenames >> to Julia using VK_DRIVER_FILES, e.g., > > A couple of extra tries: > > guix shell -C --network --emulate-fhs --link-profile --preserve='^DISPLAY$' julia coreutils which nss-certs mesa mesa-utils vulkan-tools > > julia -e "import Pkg; Pkg.activate(temp=true); Pkg.add(\"GLMakie\")" > > Same problem. > > I have switched to arch’s julia (1.10.2 instead of 1.9.3), and I observe > no issue. I’m even able to precompile Flux, which is not the case with > guix’s julia. > > Any ideas are welcomed, > > C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-12 8:59 ` Pascal Quach @ 2024-03-12 12:48 ` Cayetano Santos via Guix-Science 2024-03-12 13:02 ` Pascal Quach 2024-03-12 13:32 ` Cayetano Santos via Guix-Science 1 sibling, 1 reply; 13+ messages in thread From: Cayetano Santos via Guix-Science @ 2024-03-12 12:48 UTC (permalink / raw) To: Pascal Quach; +Cc: Mauritz Stenek, guix-science >mar. 12 mars 2024 at 09:59, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > Hello, > > I see you tried with both the intel ahd intel_hasvk, have you tried lvp? I tried with what I have under /usr/share/vulkan/icd.d. No idea on how to handle lvp, though. C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-12 12:48 ` Cayetano Santos via Guix-Science @ 2024-03-12 13:02 ` Pascal Quach 0 siblings, 0 replies; 13+ messages in thread From: Pascal Quach @ 2024-03-12 13:02 UTC (permalink / raw) To: csantosb; +Cc: Mauritz Stenek, guix-science It comes with vulkan-swrast! Le 12/03/2024 à 13:48, Cayetano Santos a écrit : > >> mar. 12 mars 2024 at 09:59, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > >> Hello, >> >> I see you tried with both the intel ahd intel_hasvk, have you tried lvp? > > I tried with what I have under /usr/share/vulkan/icd.d. > > No idea on how to handle lvp, though. > > C. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Julia using GLMakie 2024-03-12 8:59 ` Pascal Quach 2024-03-12 12:48 ` Cayetano Santos via Guix-Science @ 2024-03-12 13:32 ` Cayetano Santos via Guix-Science 1 sibling, 0 replies; 13+ messages in thread From: Cayetano Santos via Guix-Science @ 2024-03-12 13:32 UTC (permalink / raw) To: Pascal Quach; +Cc: Mauritz Stenek, guix-science >mar. 12 mars 2024 at 09:59, Pascal Quach <pascal.quach@centralesupelec.fr> wrote: > Hello, > > I see you tried with both the intel ahd intel_hasvk, have you tried lvp? So now I tried with export VK_DRIVER_FILES=/usr/share/vulkan/icd.d/intel_hasvk_icd.x86_64.json:/usr/share/vulkan/icd.d/intel_icd.x86_64.json:/usr/share/vulkan/icd.d/lvp_icd.x86_64.json julia ... ... same error as always. Here is the full trace: Failed to precompile GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a] to "~/.julia/compiled/v1.9/GLMakie/jl_5GnWul". ┌ Warning: GLFW couldn't create an OpenGL window. │ This likely means, you don't have an OpenGL capable Graphic Card, │ or you don't have an OpenGL 3.3 capable video driver installed. │ Have a look at the troubleshooting section in the GLMakie readme: │ https://github.com/MakieOrg/Makie.jl/tree/master/GLMakie#troubleshooting-opengl. └ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:250 ERROR: LoadError: GLFWError (API_UNAVAILABLE): GLX: No GLXFBConfigs returned Stacktrace: [1] _ErrorCallbackWrapper(code::Int32, description::Cstring) @ GLFW ~/.julia/packages/GLFW/BWxfF/src/callback.jl:43 [2] CreateWindow(width::Int64, height::Int64, title::String, monitor::GLFW.Monitor, share::GLFW.Window) @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:499 [3] GLFW.Window(; name::String, resolution::Tuple{Int64, Int64}, debugging::Bool, major::Int64, minor::Int64, windowhints::Vector{Tuple{UInt32, Integer}}, contexthints::Vector{Tuple{UInt32, Integer}}, visible::Bool, focus::Bool, fullscreen::Bool, monitor::Nothing, share::GLFW.Window) @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:344 [4] Window @ ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:302 [inlined] [5] empty_screen(debugging::Bool; reuse::Bool) @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:241 [6] empty_screen @ ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:222 [inlined] [7] singleton_screen(debugging::Bool) @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:329 [8] macro expansion @ ~/.julia/packages/GLMakie/QyIWu/src/precompiles.jl:21 [inlined] [9] macro expansion @ ~/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:78 [inlined] [10] macro expansion @ ~/.julia/packages/GLMakie/QyIWu/src/precompiles.jl:18 [inlined] [11] macro expansion @ ~/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:140 [inlined] [12] top-level scope @ ~/.julia/packages/GLMakie/QyIWu/src/precompiles.jl:16 [13] include(mod::Module, _path::String) @ Base ./Base.jl:457 [14] include(x::String) @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/GLMakie.jl:1 [15] top-level scope @ ~/.julia/packages/GLMakie/QyIWu/src/GLMakie.jl:79 [16] include @ ./Base.jl:457 [inlined] [17] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing) @ Base ./loading.jl:2052 [18] top-level scope @ stdin:3 in expression starting at ~/.julia/packages/GLMakie/QyIWu/src/precompiles.jl:15 in expression starting at ~/.julia/packages/GLMakie/QyIWu/src/GLMakie.jl:1 in expression starting at stdin:3 Thanks, C. ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2024-03-12 13:42 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-03-08 17:19 Julia using GLMakie Mauritz Stenek via Guix-Science 2024-03-08 18:34 ` Cayetano Santos via Guix-Science 2024-03-11 14:37 ` Pascal Quach 2024-03-11 15:34 ` Cayetano Santos via Guix-Science 2024-03-11 15:53 ` Pascal Quach 2024-03-11 16:10 ` Cayetano Santos via Guix-Science 2024-03-11 16:24 ` Pascal Quach 2024-03-11 18:41 ` Cayetano Santos via Guix-Science 2024-03-11 19:44 ` Cayetano Santos via Guix-Science 2024-03-12 8:59 ` Pascal Quach 2024-03-12 12:48 ` Cayetano Santos via Guix-Science 2024-03-12 13:02 ` Pascal Quach 2024-03-12 13:32 ` Cayetano Santos via Guix-Science
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).