Question about my Plots


julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: LoadError: InitError: could not load library “C:\Users\Administrator.julia\artifacts\2ef92b843c5dee978e2aaf8494ef5c12c09dc731\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:114
[2] dlopen(s::String, flags::UInt32)
@ Base.Libc.Libdl .\libdl.jl:114
[3] macro expansion
@ C:\Users\Administrator.julia\packages\JLLWrappers\pG9bm\src\products\library_generators.jl:63 [inlined]
[4] init()
@ Qt6Base_jll C:\Users\Administrator.julia\packages\Qt6Base_jll\YAh2B\src\wrappers\x86_64-w64-mingw32-cxx11.jl:36
[5] _include_from_serialized(path::String, depmods::Vector{Any})
@ Base .\loading.jl:696
[6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
@ Base .\loading.jl:782
[7] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1020
[8] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[9] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[10] include(mod::Module, _path::String)
@ Base .\Base.jl:384
[11] top-level scope
@ C:\Users\Administrator.julia\packages\JLLWrappers\pG9bm\src\toplevel_generators.jl:192
[12] include
@ .\Base.jl:384 [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::String)
@ Base .\loading.jl:1235
[14] top-level scope
@ none:1
[15] eval
@ .\boot.jl:360 [inlined]
[16] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[17] top-level scope
@ none:1
during initialization of module Qt6Base_jll
in expression starting at C:\Users\Administrator.julia\packages\GR_jll\btQNT\src\wrappers\x86_64-w64-mingw32-cxx11.jl:14
in expression starting at C:\Users\Administrator.julia\packages\GR_jll\btQNT\src\GR_jll.jl:2
┌ Error: import GR_jll failed.
│ Consider using GR.GRPreferences.use_jll_binary() or
GR.GRPreferences.use_upstream_binary() to repair.
│ Importing GR a second time will allow use of these functions.
└ @ GR.GRPreferences C:\Users\Administrator.julia\packages\GR\JBzkS\src\preferen
ces.jl:8
ERROR: LoadError: LoadError: Failed to precompile GR_jll [d2c73de3-f751-5644-a686-071e5b155ba9] to C:\Users\Administrator.julia\compiled\v1.6\GR_jll\jl_545B.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[7] top-level scope
@ C:\Users\Administrator.julia\packages\GR\JBzkS\src\preferences.jl:6
[8] include(mod::Module, _path::String)
@ Base .\Base.jl:384
[9] include(x::String)
@ GR C:\Users\Administrator.julia\packages\GR\JBzkS\src\GR.jl:20
[10] top-level scope
@ C:\Users\Administrator.julia\packages\GR\JBzkS\src\GR.jl:268
[11] include
@ .\Base.jl:384 [inlined]
[12] 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:1235
[13] top-level scope
@ none:1
[14] eval
@ .\boot.jl:360 [inlined]
[15] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[16] top-level scope
@ none:1
in expression starting at C:\Users\Administrator.julia\packages\GR\JBzkS\src\preferences.jl:1
in expression starting at C:\Users\Administrator.julia\packages\GR\JBzkS\src\GR.jl:1
ERROR: LoadError: LoadError: Failed to precompile GR [28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71] to C:\Users\Administrator.julia\compiled\v1.6\GR\jl_5075.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[7] top-level scope
@ C:\Users\Administrator.julia\packages\Plots\ju9dp\src\backends.jl:380
[8] eval
@ .\boot.jl:360 [inlined]
[9] _initialize_backend(pkg::Plots.GRBackend)
@ Plots C:\Users\Administrator.julia\packages\Plots\ju9dp\src\backends.jl:379

[10] backend(pkg::Plots.GRBackend)
@ Plots C:\Users\Administrator.julia\packages\Plots\ju9dp\src\backends.jl:244

[11] backend(sym::Symbol)
@ Plots C:\Users\Administrator.julia\packages\Plots\ju9dp\src\backends.jl:254

[12] load_default_backend()
@ Plots C:\Users\Administrator.julia\packages\Plots\ju9dp\src\backends.jl:201

[13] backend()
@ Plots C:\Users\Administrator.julia\packages\Plots\ju9dp\src\backends.jl:232

[14] top-level scope
@ C:\Users\Administrator.julia\packages\Plots\ju9dp\src\init.jl:108
[15] include(mod::Module, _path::String)
@ Base .\Base.jl:384
[16] include(x::String)
@ Plots C:\Users\Administrator.julia\packages\Plots\ju9dp\src\Plots.jl:1
[17] top-level scope
@ C:\Users\Administrator.julia\packages\Plots\ju9dp\src\Plots.jl:176
[18] include
@ .\Base.jl:384 [inlined]
[19] 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:1235
[20] top-level scope
@ none:1
[21] eval
@ .\boot.jl:360 [inlined]
[22] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[23] top-level scope
@ none:1
in expression starting at C:\Users\Administrator.julia\packages\Plots\ju9dp\src\init.jl:108
in expression starting at C:\Users\Administrator.julia\packages\Plots\ju9dp\src\Plots.jl:1
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Administrator.julia\compiled\v1.6\Plots\jl_1E2C.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[7] eval
@ .\boot.jl:360 [inlined]
[8] eval
@ .\Base.jl:39 [inlined]
[9] repleval(m::Module, code::Expr, #unused#::String)
@ VSCodeServer c:\Users\Administrator.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:222
[10] (::VSCodeServer.var"#105#107"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\Administrator.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:186
[11] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:491
[12] with_logger
@ .\logging.jl:603 [inlined]
[13] (::VSCodeServer.var"#104#106"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\Administrator.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:187
[14] #invokelatest#2
@ .\essentials.jl:708 [inlined]
[15] invokelatest(::Any)
@ Base .\essentials.jl:706
[16] macro expansion
@ c:\Users\Administrator.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
[17] (::VSCodeServer.var"#59#60")()
@ VSCodeServer .\task.jl:417
why is that?thanks!!

I’ve already installed Plots, but it won’t work :joy:

From another thread I saw that you are using Windows 7, yes seems to be some error related to installing binaries which might well be the reason that this breaks. Have you tried using a newer Julia version as 1.6 is also quite old?

julia 1.10 doesn’t seem to be compatible with my Vscode