GR can't connect on Windows

Yeah, I had seen those already, though none of those appear resolved, and none were under Windows.

The gksqt executable was where it should be:

julia> readdir(joinpath(ENV["GRDIR"],"bin"))
19-element Vector{String}:
 "cairoplugin.dll"
 "gksqt.exe"
 "glplugin.dll"
 "gr.js"
 "gsplugin.dll"
 "gtkplugin.dll"
 "libGKS.dll"
 "libGR.dll"
 "libGR3.dll"
 "libGRM.dll"
 "libqt5gr.dll"
 "pgfplugin.dll"
 "qt5plugin.dll"
 "qtplugin.dll"
 "svgplugin.dll"
 "videoplugin.dll"
 "wmfplugin.dll"
 "x11plugin.dll"
 "zmqplugin.dll"

Rerunning the build:

(@v1.6) pkg> build GR
    Building GR → `C:\...\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\31746d748c4ac35480d6f76517854e4066f4a8be\build.log`
Precompiling project...
  Progress [========================================>]  3/3
  ? Plots
1 dependency successfully precompiled in 14 seconds (253 already precompiled, 1 skipped during auto due to previous errors)
1 dependency failed but may be precompilable after restarting julia

The 1 dependency failed recurs even after restarting Julia. I tried it again as an administrator, and the new error is:

julia> using GR
Your GR installation is incomplete. Rerun build step for GR package.
    Building GR → `C:\...\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\31746d748c4ac35480d6f76517854e4066f4a8be\build.log`

julia> plot(1:3,1:3)
ERROR: could not load library "libGR.dll"
The specified module could not be found.
Stacktrace:
 [1] clearws
   @ ~\.julia\packages\GR\WDbN4\src\GR.jl:537 [inlined]
 [2] plot_data(flag::Bool)
   @ GR.jlgr ~\.julia\packages\GR\WDbN4\src\jlgr.jl:1136
 [3] plot_data
   @ ~\.julia\packages\GR\WDbN4\src\jlgr.jl:1113 [inlined]
 [4] plot(::UnitRange{Int64}, ::Vararg{UnitRange{Int64}, N} where N; kv::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ GR.jlgr ~\.julia\packages\GR\WDbN4\src\jlgr.jl:1669
 [5] plot(::UnitRange{Int64}, ::Vararg{UnitRange{Int64}, N} where N)
   @ GR.jlgr ~\.julia\packages\GR\WDbN4\src\jlgr.jl:1661
 [6] plot(::UnitRange{Int64}, ::Vararg{UnitRange{Int64}, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ GR ~\.julia\packages\GR\WDbN4\src\GR.jl:3530
 [7] plot(::UnitRange{Int64}, ::Vararg{UnitRange{Int64}, N} where N)
   @ GR ~\.julia\packages\GR\WDbN4\src\GR.jl:3530
 [8] top-level scope
   @ REPL[2]:1

julia> readdir(joinpath(ENV["GRDIR"],"bin"))
ERROR: IOError: readdir("C:\\...\\.julia\\packages\\GR\\WDbN4\\src\\..\\deps\\gr\\bin"): no such file or directory (ENOENT)
Stacktrace:
 [1] uv_error
   @ .\libuv.jl:97 [inlined]
 [2] readdir(dir::String; join::Bool, sort::Bool)
   @ Base.Filesystem .\file.jl:830
 [3] readdir(dir::String)
   @ Base.Filesystem .\file.jl:825
 [4] top-level scope
   @ REPL[3]:1

For reference, GR\\WDbN4\\deps has no subfolders, and the GR folder has no dll anywhere inside it. Any thoughts on where to go from here?

1 Like