ERROR: LoadError: InitError: UndefVarError: `GR_jll` not defined

It reports error when using Plots:

Precompiling project...
  ✗ GR_jll
  ✗ Plots
  43 dependencies successfully precompiled in 44 seconds. 123 already precompiled. 1 skipped during auto due to previous errors.
  2 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
  1 dependency had warnings during precompilation:
┌ Formatting [59287772-0a20-5a39-b81b-1366585eb4c0]
│  ┌ Warning: DEPRECATION NOTICE
│  │ 
│  │ Formatting.jl has been unmaintained for a while, with some serious
│  │ correctness bugs compromising the original purpose of the package. As a result,
│  │ it has been deprecated - consider using an alternative, such as
│  │ `Format.jl` (https://github.com/JuliaString/Format.jl) or the `Printf` stdlib directly.
│  │ 
│  │ If you are not using Formatting.jl as a direct dependency, please consider
│  │ opening an issue on any packages you are using that do use it as a dependency.
│  │ From Julia 1.9 onwards, you can query `]why Formatting` to figure out which
│  │ package originally brings it in as a dependency.
│  └ @ Formatting C:\Users\Admin\.julia\packages\Formatting\3VxOt\src\Formatting.jl:12
└  

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: InitError: UndefVarError: `GR_jll` not defined
Stacktrace:
  [1] __init__()
    @ GR.GRPreferences C:\Users\Admin\.julia\packages\GR\yBe3g\src\preferences.jl:64
  [2] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1074
  [3] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base .\loading.jl:1020
  [4] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base .\loading.jl:1471
  [5] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1748
  [6] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1625
  [7] macro expansion
    @ .\loading.jl:1613 [inlined]
  [8] macro expansion
    @ .\lock.jl:267 [inlined]
  [9] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1576
 [10] top-level scope
    @ C:\Users\Admin\.julia\packages\Plots\sxUvK\src\backends.jl:402
 [11] eval
    @ .\boot.jl:370 [inlined]
 [12] _initialize_backend(pkg::Plots.GRBackend)
    @ Plots C:\Users\Admin\.julia\packages\Plots\sxUvK\src\backends.jl:401
 [13] backend(pkg::Plots.GRBackend)
    @ Plots C:\Users\Admin\.julia\packages\Plots\sxUvK\src\backends.jl:266
 [14] backend(sym::Symbol)
    @ Plots C:\Users\Admin\.julia\packages\Plots\sxUvK\src\backends.jl:276
 [15] load_default_backend()
    @ Plots C:\Users\Admin\.julia\packages\Plots\sxUvK\src\backends.jl:207
 [16] backend()
    @ Plots C:\Users\Admin\.julia\packages\Plots\sxUvK\src\backends.jl:254
 [17] top-level scope
    @ C:\Users\Admin\.julia\packages\Plots\sxUvK\src\init.jl:83
 [18] include(mod::Module, _path::String)
    @ Base .\Base.jl:457
 [19] include(x::String)
    @ Plots C:\Users\Admin\.julia\packages\Plots\sxUvK\src\Plots.jl:1
 [20] top-level scope
    @ C:\Users\Admin\.julia\packages\Plots\sxUvK\src\Plots.jl:176
 [21] include
    @ .\Base.jl:457 [inlined]
 [22] 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:2010
 [23] top-level scope
    @ stdin:2
during initialization of module GRPreferences
in expression starting at C:\Users\Admin\.julia\packages\Plots\sxUvK\src\init.jl:83
in expression starting at C:\Users\Admin\.julia\packages\Plots\sxUvK\src\Plots.jl:1
in expression starting at stdin:2
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to "C:\\Users\\Admin\\.julia\\compiled\\v1.9\\Plots\\jl_4D75.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:2260
 [3] compilecache
   @ .\loading.jl:2127 [inlined]
 [4] _require(pkg::Base.PkgId, env::String)
   @ Base .\loading.jl:1770
 [5] _require_prelocked(uuidkey::Base.PkgId, env::String)
   @ Base .\loading.jl:1625
 [6] macro expansion
   @ .\loading.jl:1613 [inlined]
 [7] macro expansion
   @ .\lock.jl:267 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:1576

Please post the output of

Base.BinaryPlatforms.HostPlatform()
]st -m GR_jll
1 Like

Thanks for your reply!

This computer may be a little old, it’s Windows 7.

julia> Base.BinaryPlatforms.HostPlatform()
Windows i686 {cxxstring_abi=cxx11, julia_version=1.9.0, libgfortran_version=5.0.0}

(myproj) pkg> st -m GR_jll
Status `F:\myproj\Manifest.toml`
⌅ [d2c73de3] GR_jll v0.72.10+0
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`

Ok, I was confused by the error message, I thought that you were missing the GR artifact, but that’s available for your platform for your version of GR_jll. I feel like this is a bug in Plots.jl instead, but I’m not familiar with what it’s doing during precompilation.

More info: This project (myproj) works well on my Win10 laptop.

Drop Windows 7 official support · Issue #35974 · JuliaLang/julia (github.com)

Yes, I also wish it wasn’t Windows 7, but that’s not going to change for a while. :melting_face:

I uninstalled Julia including.julia folder and reinstalled a newer version, but the error didn’t disappear.

I am wondering if there is any temporary solution to this issue…

Given how hard it is to find Julia users/devs that can debug issues even on current Windows version I think the chances that you’ll find someone able to help with a Windows version for which mainstream support ended nine (9!) years ago are slim.

1 Like

Well, thank you all the same. :handshake:

Then, is there any other more lightweight plotting package available as alternative? The original purpose was to draw pictures and display them on a html page.

It’s a long shot, but you could try:

using GR # repeat this if there is an error
GR.GRPreferences.use_upstream_binary(; force = true)

See GitHub - jheinen/GR.jl: Plotting for Julia based on GR, a framework for visualisation applications

1 Like

Could you provide the output from the last command in this sequence?

using Pkg
pkg"activate --temp"
pkg"add GR"
using GR
using GR # repeat if first attempt fails
GR.GRPreferences.diagnostics()
1 Like

Thanks in advance! This is the output of the last command (It reported error when precompiling and first using GR):

julia> GR.GRPreferences.diagnostics()
┌ Info: GRDIR Environment Variable
└   get(ENV, "GRDIR", missing) = missing
┌ Info: GR Preferences
│   binary = nothing
└   grdir = nothing
┌ Info: GR_jll Preferences
│   libGR_path = nothing
│   libGR3_path = nothing
│   libGRM_path = nothing
│   libGKS_path = nothing
│   gksqt_path = nothing
└   grplot_path = nothing
┌ Info: GR_jll Overrides.toml
│   overrides_toml_path = "C:\\Users\\Admin\\.julia\\artifacts\\Ov
errides.toml"
│   isfile(overrides_toml_path) = false
└   get(gr_jll_override_dict, "GR", nothing) = nothing
[ Info: GR_jll is not loaded
(binary = nothing, grdir = nothing, libGR_path = nothing, libGR3_path = nothing, libGRM_path = nothing, libGKS_path = nothing, gksqt_path = nothing, grplot_path = nothing, overrides_toml_path = "C:\\Users\\Admin\\.julia\\artifacts\\Overrides.toml", gr_jll_override_dict = Dict{String, Any}())

Additional information, if necessary:

julia> Base.BinaryPlatforms.HostPlatform()
Windows i686 {cxxstring_abi=cxx11, julia_version=1.9.4, libgfortran_version=5.0.0}

(jl_uzKWZh) pkg> st -m GR_jll
Status `C:\Users\Admin\AppData\Local\Temp\jl_uzKWZh\Manifest.toml`
  [d2c73de3] GR_jll v0.73.2+0

There are several options. Have you tried Makie.jl ?

Another one would be PythonPlot.jl .

There are many potential backends.
https://docs.juliaplots.org/stable/backends/

Thanks. I’m planning to try them one by one.

By the way, do you mean I can’t count on GR anymore?

I’m not sure. There seems to be an issue. Do you get an error when you do

using Pkg
pkg"add GR_jll"
using GR_jll

Have you tried Bart’s suggestion?

Did GR used to work?

As for @barche 's suggestion, I have tried three times but it reported different errors. But I can download the file manually from https://github.com/sciapp/gr/releases/download/v0.73.2/gr-0.73.2-Windows-i686.tar.gz. Is it helpful?

julia> GR.GRPreferences.use_upstream_binary(; force = true)
┌ Info: Downloading pre-compiled GR 0.73.2 Windows binary
└   file = "C:\\Users\\Admin\\AppData\\Local\\Temp\\jl_VSzj21\\gr-0.73.2-Windows-i686.tar.gz"
ERROR: IOError: rm("C:\\Users\\Admin\\AppData\\Local\\Temp\\jl_U5F8eq\\gr\\bin"): directory not empty (ENOTEMPTY)
Stacktrace:
  [1] uv_error
    @ .\libuv.jl:100 [inlined]
  [2] rm(path::String; force::Bool, recursive::Bool)
    @ Base.Filesystem .\file.jl:307
  [3] rm(path::String; force::Bool, recursive::Bool)
    @ Base.Filesystem .\file.jl:294
  [4] rm
    @ .\file.jl:273 [inlined]
  [5] rename(src::String, dst::String; force::Bool)
    @ Base.Filesystem .\file.jl:984
  [6] rename
    @ .\file.jl:979 [inlined]
  [7] #mv#15
    @ .\file.jl:428 [inlined]
  [8] mv
    @ .\file.jl:426 [inlined]
  [9] (::GR.GRPreferences.Downloader.var"#3#5"{String, String})(extract_dir::String)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:334
 [10] mktempdir(fn::GR.GRPreferences.Downloader.var"#3#5"{String, String}, parent::String; prefix::String)
    @ Base.Filesystem .\file.jl:762
 [11] mktempdir (repeats 2 times)
    @ .\file.jl:758 [inlined]
 [12] (::GR.GRPreferences.Downloader.var"#2#4"{Bool, Symbol, String, VersionNumber, String})(downloads_dir::String)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:327
 [13] mktempdir(fn::GR.GRPreferences.Downloader.var"#2#4"{Bool, Symbol, String, VersionNumber, String}, parent::String; prefix::String)
    @ Base.Filesystem .\file.jl:762
 [14] mktempdir(fn::Function, parent::String)
    @ Base.Filesystem .\file.jl:758
 [15] mktempdir
    @ .\file.jl:758 [inlined]
 [16] download(install_dir::String; force::Bool)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:320
 [17] download (repeats 2 times)
    @ C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:289 [inlined]
 [18] #use_upstream_binary#3
    @ C:\Users\Admin\.julia\packages\GR\xEQ37\src\preferences.jl:176 [inlined]
 [19] top-level scope
    @ REPL[14]:1

julia> GR.GRPreferences.use_upstream_binary(; force = true)
┌ Info: Downloading pre-compiled GR 0.73.2 Windows binary
└   file = "C:\\Users\\Admin\\AppData\\Local\\Temp\\jl_dmOgja\\gr-0.73.2-Windows-i686.tar.gz"
ERROR: RequestError: schannel: failed to receive handshake, SSL/TLS connection failed while requesting https://github.com/sciapp/gr/releases/download/v0.73.2/gr-0.73.2-Windows-i686.tar.gz
Stacktrace:
  [1] (::Downloads.var"#9#18"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, String, Bool, Bool})(easy::Downloads.Curl.Easy)
    @ Downloads D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:388
  [2] with_handle(f::Downloads.var"#9#18"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, String, Bool, Bool}, handle::Downloads.Curl.Easy)
    @ Downloads.Curl D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Curl\Curl.jl:90
  [3] #8
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:329 [inlined]
  [4] arg_write(f::Downloads.var"#8#17"{Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, String, Bool, Bool}, arg::IOStream)
    @ ArgTools D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:134
  [5] #7
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:328 [inlined]
  [6] arg_read
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:76 [inlined]
  [7] request(url::String; input::Nothing, output::IOStream, method::Nothing, headers::Vector{Pair{String, String}}, timeout::Float64, progress::Nothing, verbose::Bool, debug::Nothing, throw::Bool, downloader::Nothing)
    @ Downloads D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:327
  [8] request
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:295 [inlined]
  [9] #3
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:233 [inlined]
 [10] open(f::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Nothing, String}, args::String; kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol, Symbol}, NamedTuple{(:write, :lock), Tuple{Bool, Bool}}})
    @ Base .\io.jl:395
 [11] #open_nolock#1
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:35 [inlined]
 [12] open_nolock
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:35 [inlined]
 [13] arg_write(f::Function, arg::String)
    @ ArgTools D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:103
 [14] #download#2
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:232 [inlined]
 [15] download
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:221 [inlined]
 [16] try_download(url::String, file::String)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:179
 [17] download_tarball(version::VersionNumber, os::String, arch::Symbol, downloads_dir::String)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:265
 [18] (::GR.GRPreferences.Downloader.var"#2#4"{Bool, Symbol, String, VersionNumber, String})(downloads_dir::String)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:321
 [19] mktempdir(fn::GR.GRPreferences.Downloader.var"#2#4"{Bool, Symbol, String, VersionNumber, String}, parent::String; prefix::String)
    @ Base.Filesystem .\file.jl:762
 [20] mktempdir(fn::Function, parent::String)
    @ Base.Filesystem .\file.jl:758
 [21] mktempdir
    @ .\file.jl:758 [inlined]
 [22] download(install_dir::String; force::Bool)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:320
 [23] download (repeats 2 times)
    @ C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:289 [inlined]
 [24] #use_upstream_binary#3
    @ C:\Users\Admin\.julia\packages\GR\xEQ37\src\preferences.jl:176 [inlined]
 [25] top-level scope
    @ REPL[14]:1

julia> GR.GRPreferences.use_upstream_binary(; force = true)
┌ Info: Downloading pre-compiled GR 0.73.2 Windows binary
└   file = "C:\\Users\\Admin\\AppData\\Local\\Temp\\jl_7JPmX7\\gr-0.73.2-Windows-i686.tar.gz"
ERROR: RequestError: HTTP/1.1 302 Found (Recv failure: Connection was aborted) while requesting https://github.com/sciapp/gr/releases/download/v0.73.2/gr-0.73.2-Windows-i686.tar.gz
Stacktrace:
  [1] (::Downloads.var"#9#18"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, String, Bool, Bool})(easy::Downloads.Curl.Easy)
    @ Downloads D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:388
  [2] with_handle(f::Downloads.var"#9#18"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, String, Bool, Bool}, handle::Downloads.Curl.Easy)
    @ Downloads.Curl D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Curl\Curl.jl:90
  [3] #8
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:329 [inlined]
  [4] arg_write(f::Downloads.var"#8#17"{Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Bool, String, Bool, Bool}, arg::IOStream)
    @ ArgTools D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:134
  [5] #7
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:328 [inlined]
  [6] arg_read
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:76 [inlined]
  [7] request(url::String; input::Nothing, output::IOStream, method::Nothing, headers::Vector{Pair{String, String}}, timeout::Float64, progress::Nothing, verbose::Bool, debug::Nothing, throw::Bool, downloader::Nothing)
    @ Downloads D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:327
  [8] request
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:295 [inlined]
  [9] #3
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:233 [inlined]
 [10] open(f::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Nothing, String}, args::String; kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol, Symbol}, NamedTuple{(:write, :lock), Tuple{Bool, Bool}}})
    @ Base .\io.jl:395
 [11] #open_nolock#1
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:35 [inlined]
 [12] open_nolock
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:35 [inlined]
 [13] arg_write(f::Function, arg::String)
    @ ArgTools D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:103
 [14] #download#2
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:232 [inlined]
 [15] download
    @ D:\Software\julia-1.9.4\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:221 [inlined]
 [16] try_download(url::String, file::String)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:179
 [17] download_tarball(version::VersionNumber, os::String, arch::Symbol, downloads_dir::String)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:265
 [18] (::GR.GRPreferences.Downloader.var"#2#4"{Bool, Symbol, String, VersionNumber, String})(downloads_dir::String)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:321
 [19] mktempdir(fn::GR.GRPreferences.Downloader.var"#2#4"{Bool, Symbol, String, VersionNumber, String}, parent::String; prefix::String)
    @ Base.Filesystem .\file.jl:762
 [20] mktempdir(fn::Function, parent::String)
    @ Base.Filesystem .\file.jl:758
 [21] mktempdir
    @ .\file.jl:758 [inlined]
 [22] download(install_dir::String; force::Bool)
    @ GR.GRPreferences.Downloader C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:320
 [23] download (repeats 2 times)
    @ C:\Users\Admin\.julia\packages\GR\xEQ37\src\downloader.jl:289 [inlined]
 [24] #use_upstream_binary#3
    @ C:\Users\Admin\.julia\packages\GR\xEQ37\src\preferences.jl:176 [inlined]
 [25] top-level scope
    @ REPL[14]:1

I did get an error when using GR_jll:

(jl_uzKWZh) pkg> add GR_jll
   Resolving package versions...
    Updating `C:\Users\Admin\AppData\Local\Temp\jl_uzKWZh\Project.toml`
  [d2c73de3] + GR_jll v0.73.2+0
  No Changes to `C:\Users\Admin\AppData\Local\Temp\jl_uzKWZh\Manifest.toml`

julia> using GR_jll
[ Info: Precompiling GR_jll [d2c73de3-f751-5644-a686-071e5b155ba9]
ERROR: LoadError: InitError: could not load library "C:\Users\Admin\.julia\artifacts\c3ae88ff7d92a93cc2c98fce4a93faf1f6fe7bbb\bin\Qt6Concurrent.dll"
The specified procedure could not be found.
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl .\libdl.jl:117
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl .\libdl.jl:116
  [3] macro expansion
    @ C:\Users\Admin\.julia\packages\JLLWrappers\pG9bm\src\products\library_generators.jl:63 [inlined]
  [4] __init__()
    @ Qt6Base_jll C:\Users\Admin\.julia\packages\Qt6Base_jll\fqleI\src\wrappers\i686-w64-mingw32-cxx11.jl:36
  [5] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1115
  [6] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base .\loading.jl:1061
  [7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base .\loading.jl:1506
  [8] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1783
  [9] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1660
 [10] macro expansion
    @ .\loading.jl:1648 [inlined]
 [11] macro expansion
    @ .\lock.jl:267 [inlined]
 [12] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1611
 [13] include(mod::Module, _path::String)
    @ Base .\Base.jl:457
 [14] top-level scope
    @ C:\Users\Admin\.julia\packages\JLLWrappers\pG9bm\src\toplevel_generators.jl:192
 [15] include
    @ .\Base.jl:457 [inlined]
 [16] 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:2049
 [17] top-level scope
    @ stdin:3
during initialization of module Qt6Base_jll
in expression starting at C:\Users\Admin\.julia\packages\GR_jll\0I7Qm\src\wrappers\i686-w64-mingw32-cxx11.jl:14
in expression starting at C:\Users\Admin\.julia\packages\GR_jll\0I7Qm\src\GR_jll.jl:2
in expression starting at stdin:3
ERROR: Failed to precompile GR_jll [d2c73de3-f751-5644-a686-071e5b155ba9] to "C:\\Users\\Admin\\.julia\\compiled\\v1.9\\GR_jll\\jl_8B26.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:2294
 [3] compilecache
   @ .\loading.jl:2167 [inlined]
 [4] _require(pkg::Base.PkgId, env::String)
   @ Base .\loading.jl:1805
 [5] _require_prelocked(uuidkey::Base.PkgId, env::String)
   @ Base .\loading.jl:1660
 [6] macro expansion
   @ .\loading.jl:1648 [inlined]
 [7] macro expansion
   @ .\lock.jl:267 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:1611

This is the first time I use Plots or GR on this machine.

I downloaded it and invoked use_system_binary:

julia> GR.GRPreferences.use_system_binary("D:/Software/gr"; force = true)
ERROR: UndefVarError: `GR_jll` not defined
Stacktrace:
 [1] __init__()
   @ GR.GRPreferences C:\Users\Admin\.julia\packages\GR\xEQ37\src\preferences.jl:64
 [2] use_system_binary(grdir::String; export_prefs::Bool, force::Bool, override::Symbol)
   @ GR.GRPreferences C:\Users\Admin\.julia\packages\GR\xEQ37\src\preferences.jl:132
 [3] top-level scope
   @ REPL[19]:1