Error Plots package installation with 1.7.1 release of Julia

  • I have installed 1.7.1 release of Julia, but I get the next error when I try to use Plots package
Pkg.status()
Status `~/.julia/environments/v1.7/Project.toml`
 [7073ff75] IJulia v1.23.2
 [91a5bcdd] Plots v1.25.7

using Plots

┌ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
└ @ Base loading.jl:1423
ERROR: LoadError: ArgumentError: not a path: `/home/joseba/.julia/packages/GR/KPElO/deps/deps.jl`
Stacktrace:
 [1] RelocatableFolders.Path(mod::Module, dir::String, path::String)
   @ RelocatableFolders ~/.julia/packages/RelocatableFolders/PYUl8/src/RelocatableFolders.jl:51
 [2] top-level scope
   @ ~/.julia/packages/GR/KPElO/src/GR.jl:36
 [3] include
   @ ./Base.jl:418 [inlined]
 [4] 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:1318
 [5] top-level scope
   @ none:1
 [6] eval
   @ ./boot.jl:373 [inlined]
 [7] eval(x::Expr)
   @ Base.MainInclude ./client.jl:453
 [8] top-level scope
   @ none:1
in expression starting at /home/joseba/.julia/packages/GR/KPElO/src/GR.jl:2
ERROR: LoadError: Failed to precompile GR [28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71] to /home/joseba/.julia/compiled/v1.7/GR/jl_qjrKCo.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] include(mod::Module, _path::String)
    @ Base ./Base.jl:418
  [8] include(x::String)
    @ Plots ~/.julia/packages/Plots/YAlrZ/src/Plots.jl:1
  [9] top-level scope
    @ ~/.julia/packages/Plots/YAlrZ/src/Plots.jl:235
 [10] include
    @ ./Base.jl:418 [inlined]
 [11] 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:1318
 [12] top-level scope
    @ none:1
 [13] eval
    @ ./boot.jl:373 [inlined]
 [14] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [15] top-level scope
    @ none:1
in expression starting at /home/joseba/.julia/packages/Plots/YAlrZ/src/backends/gr.jl:6
in expression starting at /home/joseba/.julia/packages/Plots/YAlrZ/src/Plots.jl:1

Regards

1 Like

I encountered the same problem as well, and I searched for the solution and found nothing. It seems like it lacks the file “deps.jl” on that path

!!! After replying you, I included the “deps.jl” into my search keys, and I found: Can't install Plots on julia-1.6.0

may helps

Try

using Pkg
Pkg.add("GR")
Pkg.build("GR")
6 Likes

If that does not work, then it would be good to file an issue at Issues · jheinen/GR.jl · GitHub .

This solved my issue. Thank you.

Thanks man , This solved @mkitti