I’m suddenly unable to graph without getting an error. when I try re-compiling GR.
When I run:
using Pkg; Pkg.build("GR")
I get:
Building GR → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/c98aea696662d09e215ef7cda5296024a9646c75/build.log`
Precompiling project...
✓ GR
✗ Plots
1 dependency successfully precompiled in 11 seconds (236 already precompiled, 1 skipped during auto due to previous errors)
1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package
Running the command for a full report:
Precompiling project...
✗ Plots
Output exceeds the size limit. Open the full output data in a text editor
The following 2 direct dependencies failed to precompile:
StatsPlots [f3b207a7-027a-5e70-b257-86293d7955fd]
Failed to precompile StatsPlots [f3b207a7-027a-5e70-b257-86293d7955fd] to /Users/ellen/.julia/compiled/v1.7/StatsPlots/jl_QIJK9v.
┌ Warning: GR attempted to rebuild but failed due to ErrorException("Evaluation into the closed module `GR` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `GR` with `eval` during precompilation - don't do this."). Setting ENV["JULIA_GR_REBUILD"] = false.
└ @ GR ~/.julia/packages/GR/xhzFJ/src/GR.jl:378
ERROR: LoadError: InitError: GR was not built correctly and could not be automatically rebuilt.
get(ENV, "JULIA_GR_REBUILD", "true") == false
/Users/ellen/.julia/packages/GR/xhzFJ/src/../deps/gr is not a directory.
GR_jll could not be loaded.
Run the following commands:
ENV["GRDIR"] = ""
using Pkg; Pkg.build("GR")
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] __init__()
@ GR ~/.julia/packages/GR/xhzFJ/src/GR.jl:383
[3] _include_from_serialized(path::String, depmods::Vector{Any})
@ Base ./loading.jl:768
[4] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
...
@ In[9]:1
[7] eval
@ ./boot.jl:373 [inlined]
[8] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base ./loading.jl:1196