Not able to use Plots.jl with Julia 1.8.0

I updated Julia to 1.8.0 and then installed Plots.jl, and wasn’t able to execute the “using Plots” command. Ran Pkg.update() a few times to no avail. Got error messages below and have no clue what to do. Advice would be most appreciated! Plots.jl worked fine under Julia 1.7.2 for me.

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

(process:15708): GLib-GIO-WARNING **: 16:09:54.608: Unexpectedly, UWP app Microsoft.Print3D_3.3.791.0_x64__8wekyb3d8bbwe' (AUMId Microsoft.Print3D_8wekyb3d8bbwe!App’) supports 5 extensions but has no verbs

(process:15708): GLib-GIO-WARNING **: 16:09:54.647: Unexpectedly, UWP app Microsoft.3DBuilder_18.0.1931.0_x64__8wekyb3d8bbwe' (AUMId Microsoft.3DBuilder_8wekyb3d8bbwe!App’) supports 7 extensions but has no verbs

(process:15708): GLib-GIO-WARNING **: 16:09:54.817: Unexpectedly, UWP app Microsoft.Reader_10.1802.21631.0_x64__8wekyb3d8bbwe' (AUMId Microsoft.Reader_8wekyb3d8bbwe!App’) supports 4 extensions but has no verbs
ERROR: LoadError: ArgumentError: not a path: C:\Users\Hua.VAIO\.julia\packages\GR\uG7UO\deps\deps.jl
Stacktrace:
[1] RelocatableFolders.Path(mod::Module, dir::String, path::String, ignore::Nothing)
@ RelocatableFolders C:\Users\Hua.VAIO.julia\packages\RelocatableFolders\64bhJ\src\RelocatableFolders.jl:55
[2] top-level scope
@ C:\Users\Hua.VAIO.julia\packages\GR\uG7UO\src\GR.jl:36
[3] include
@ .\Base.jl:419 [inlined]
[4] 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, UInt64}}, source::String)
@ Base .\loading.jl:1554
[5] top-level scope
@ stdin:1
in expression starting at C:\Users\Hua.VAIO.julia\packages\GR\uG7UO\src\GR.jl:2
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile GR [28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71] to C:\Users\Hua.VAIO.julia\compiled\v1.8\GR\jl_8A76.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:1705
[3] compilecache
@ .\loading.jl:1649 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base .\loading.jl:1200
[6] macro expansion
@ .\loading.jl:1180 [inlined]
[7] macro expansion
@ .\lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1144
[9] include(mod::Module, _path::String)
@ Base .\Base.jl:419
[10] include(x::String)
@ Plots C:\Users\Hua.VAIO.julia\packages\Plots\lW9ll\src\Plots.jl:1
[11] top-level scope
@ C:\Users\Hua.VAIO.julia\packages\Plots\lW9ll\src\Plots.jl:227
[12] include
@ .\Base.jl:419 [inlined]
[13] 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, UInt64}}, source::Nothing)
@ Base .\loading.jl:1554
[14] top-level scope
@ stdin:1
in expression starting at C:\Users\Hua.VAIO.julia\packages\Plots\lW9ll\src\backends\gr.jl:6
in expression starting at C:\Users\Hua.VAIO.julia\packages\Plots\lW9ll\src\Plots.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Hua.VAIO.julia\compiled\v1.8\Plots\jl_49C6.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:1705
[3] compilecache
@ .\loading.jl:1649 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base .\loading.jl:1200
[6] macro expansion
@ .\loading.jl:1180 [inlined]
[7] macro expansion
@ .\lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1144Preformatted text

Plots worked fine for me under v. 1.8.0 (Windows 11). I did have to add it, though: even though I had installed it under v. 1.7.3, Julia 1.8.0 didn’t find it.

Have you tried different backends, like GR, PyPlot, Plotly, PlotlyJS, etc.?

Thank you. No I have not. My solution was that I reinstalled Julia 1.7.3 and now everything is fine:)

I am getting a similar error for Plots on 1.8.0. I fixed the issue by installing 1.7.3. Now Plots works.

1 Like

It looks like the problem has been resolved in V1.10