Julia fileIO関連記事
最終更新:2020/11/17
ファイルIO関連のメモ.
Julia Version 1.5.0
Plotsが使えない!
using Plots
をしても, GRのインストールがちゃんとできてないとか言って
エラーがでた. 前の日まではなんの問題もなく使えてたのに.
具体的には以下のメッセージ
エラーメッセージ(click)
JuliaYour GR installation is incomplete. Rerun build step for GR package. ERROR: LoadError: LoadError: InitError: 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. Stacktrace: [1] eval at ./boot.jl:331 [inlined] [2] __init__() at /Users/koshiba/.julia/packages/GR/RlE5Y/src/GR.jl:274 [3] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697 [4] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:782 [5] _require(::Base.PkgId) at ./loading.jl:1007 [6] require(::Base.PkgId) at ./loading.jl:928 [7] require(::Module, ::Symbol) at ./loading.jl:923 [8] include(::Function, ::Module, ::String) at ./Base.jl:380 [9] include at ./Base.jl:368 [inlined] [10] include(::String) at /Users/koshiba/.julia/packages/Plots/vsE7b/src/Plots.jl:1 [11] top-level scope at /Users/koshiba/.julia/packages/Plots/vsE7b/src/Plots.jl:212 [12] include(::Function, ::Module, ::String) at ./Base.jl:380 [13] include(::Module, ::String) at ./Base.jl:368 [14] top-level scope at none:2 [15] eval at ./boot.jl:331 [inlined] [16] eval(::Expr) at ./client.jl:467 [17] top-level scope at ./none:3 during initialization of module GR in expression starting at /Users/koshiba/.julia/packages/Plots/vsE7b/src/backends/gr.jl:6 in expression starting at /Users/koshiba/.julia/packages/Plots/vsE7b/src/Plots.jl:212 ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /Users/koshiba/.julia/compiled/v1.5/Plots/ld3vC_MiYTn.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290 [3] _require(::Base.PkgId) at ./loading.jl:1030 [4] require(::Base.PkgId) at ./loading.jl:928 [5] require(::Module, ::Symbol) at ./loading.jl:923 [ Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee] [ Info: Precompiling Distributions [31c24e10-a181-5473-b8eb-7969acd0382f] [ Info: Precompiling BenchmarkTools [6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf]
GRやPlotsを入れ直したり, Pkg,gc()
など色々しても無駄だったけど,
using GR
をしてみたら, 勝手に修復しますとかいって修復してくれた.
そして解決.