Hello I have problems using Plots after installing
Julia 1.8.2, precompiling does not work,
how to solve this problem ?
Thanks a lot
here the errors:
_ _ ()_ | Documentation: https://docs.julialang.org
() | () () |
_ _ | | __ _ | Type “?” for help, “]?” for Pkg help.
| | | | | | |/ ` | |
| | || | | | (| | | Version 1.8.2 (2022-09-29)
/ |_‘|||_’_| | Official https://julialang.org/ release
|__/ |
julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: MethodError: no method matching floatrange(::Type{Float64}, ::Int64, ::Int64, ::Float64, ::Int64)
Closest candidates are:
floatrange(::Type{T}, ::Integer, ::Integer, ::Integer, ::Integer) where T at twiceprecision.jl:381
floatrange(::AbstractFloat, ::AbstractFloat, ::Real, ::AbstractFloat) at twiceprecision.jl:395
Stacktrace:
[1] floatrange(a::Float64, st::Float64, len::Float64, divisor::Float64)
@ Base ./twiceprecision.jl:403
[2] histrange(lo::Float64, hi::Float64, n::Int64, closed::Symbol)
@ StatsBase ~/.julia/packages/StatsBase/548SN/src/hist.jl:99
[3] histrange(v::Vector{Float64}, n::Int64, closed::Symbol)
@ StatsBase ~/.julia/packages/StatsBase/548SN/src/hist.jl:39
[4] _hist_edge
@ ~/.julia/packages/Plots/CUQan/src/recipes.jl:798 [inlined]
[5] #212
@ ~/.julia/packages/Plots/CUQan/src/recipes.jl:811 [inlined]
[6] map
@ ./tuple.jl:222 [inlined]
[7] _hist_edges
@ ~/.julia/packages/Plots/CUQan/src/recipes.jl:811 [inlined]
[8] _make_hist(vs::Tuple{Vector{Float64}, Vector{Float64}}, binning::Int64; normed::Bool, weights::Nothing)
@ Plots ~/.julia/packages/Plots/CUQan/src/recipes.jl:830
[9] macro expansion
@ ~/.julia/packages/Plots/CUQan/src/recipes.jl:952 [inlined]
[10] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, #unused#::Type{Val{:histogram2d}}, x::Any, y::Any, z::Any)
@ Plots ~/.julia/packages/RecipesBase/apcHH/src/RecipesBase.jl:290
[11] _process_seriesrecipe(plt::Any, plotattributes::Any)
@ RecipesPipeline ~/.julia/packages/RecipesPipeline/OfK61/src/series_recipe.jl:50
[12] _process_seriesrecipes!(plt::Any, kw_list::Any)
@ RecipesPipeline ~/.julia/packages/RecipesPipeline/OfK61/src/series_recipe.jl:27
[13] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
@ RecipesPipeline ~/.julia/packages/RecipesPipeline/OfK61/src/RecipesPipeline.jl:99
[14] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
@ Plots ~/.julia/packages/Plots/CUQan/src/plot.jl:232
[15] #plot#152
@ ~/.julia/packages/Plots/CUQan/src/plot.jl:107 [inlined]
[16] #histogram2d#477
@ ~/.julia/packages/RecipesBase/apcHH/src/RecipesBase.jl:411 [inlined]
[17] var"##10#320"()
@ Plots ~/.julia/packages/Plots/CUQan/src/precompilation.jl:15
[18] top-level scope
@ ~/.julia/packages/Plots/CUQan/src/precompilation.jl:25
[19] eval
@ ./boot.jl:368 [inlined]
[20] eval
@ ~/.julia/packages/Plots/CUQan/src/Plots.jl:1 [inlined]
[21] _broadcast_getindex_evalf
@ ./broadcast.jl:670 [inlined]
[22] _broadcast_getindex
@ ./broadcast.jl:643 [inlined]
[23] getindex
@ ./broadcast.jl:597 [inlined]
[24] copyto_nonleaf!(dest::Vector{Nothing}, bc::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Tuple{Base.OneTo{Int64}}, typeof(Plots.eval), Tuple{Base.Broadcast.Extruded{Vector{Expr}, Tuple{Bool}, Tuple{Int64}}}}, iter::Base.OneTo{Int64}, state::Int64, count::Int64)
@ Base.Broadcast ./broadcast.jl:1055
[25] copy(bc::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Tuple{Base.OneTo{Int64}}, typeof(Plots.eval), Tuple{Vector{Expr}}})
@ Base.Broadcast ./broadcast.jl:907
[26] materialize
@ ./broadcast.jl:860 [inlined]
[27] macro expansion
@ ~/.julia/packages/Plots/CUQan/src/precompilation.jl:32 [inlined]
[28] macro expansion
@ ~/.julia/packages/SnoopPrecompile/UWvXF/src/SnoopPrecompile.jl:51 [inlined]
[29] (::Plots.var"#589#590")()
@ Plots ~/.julia/packages/Plots/CUQan/src/precompilation.jl:29
[30] withenv(f::Plots.var"#589#590", keyvals::Pair{String, String})
@ Base ./env.jl:172
[31] macro expansion
@ ~/.julia/packages/Plots/CUQan/src/precompilation.jl:28 [inlined]
[32] macro expansion
@ ~/.julia/packages/SnoopPrecompile/UWvXF/src/SnoopPrecompile.jl:107 [inlined]
[33] top-level scope
@ ~/.julia/packages/Plots/CUQan/src/precompilation.jl:4
[34] include(mod::Module, _path::String)
@ Base ./Base.jl:419
[35] include(x::String)
@ Plots ~/.julia/packages/Plots/CUQan/src/Plots.jl:1
[36] top-level scope
@ ~/.julia/packages/Plots/CUQan/src/Plots.jl:204
[37] include
@ ./Base.jl:419 [inlined]
[38] 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:1554
[39] top-level scope
@ stdin:1
in expression starting at /home/gasbarra/.julia/packages/Plots/CUQan/src/precompilation.jl:3
in expression starting at /home/gasbarra/.julia/packages/Plots/CUQan/src/Plots.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/gasbarra/.julia/compiled/v1.8/Plots/jl_lqx2cE.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base ./loading.jl:1707
[3] compilecache
@ ./loading.jl:1651 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base ./loading.jl:1200
[6] macro expansion
@ ./loading.jl:1180 [inlined]
[7] macro expansion
@ ./lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1144