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.