Error after updating packages

I got this error today after updating my packages:

WARNING: Couldn't initialize gr.  (might need to install it?)
INFO: To do a standard install of gr, copy and run this:


ERROR: LoadError: InitError: UndefVarError: PlotPaneEnabled not defined
 [1] __init__() at C:\Users\Muril\.julia\v0.6\GR\src\GR.jl:265
 [2] _include_from_serialized(::String) at .\loading.jl:157
 [3] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at .\loading.jl:200
 [4] _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at .\loading.jl:236
 [5] _require(::Symbol) at .\loading.jl:441
 [6] require(::Symbol) at .\loading.jl:405
 [7] _initialize_backend(::Plots.GRBackend) at C:\Users\Muril\.julia\v0.6\Plots\src\backends\gr.jl:69
 [8] backend() at C:\Users\Muril\.julia\v0.6\Plots\src\backends.jl:185
 [9] backend(::Symbol) at C:\Users\Muril\.julia\v0.6\Plots\src\backends.jl:212
 [10] pickDefaultBackend() at C:\Users\Muril\.julia\v0.6\Plots\src\backends.jl:156
 [11] backend() at C:\Users\Muril\.julia\v0.6\Plots\src\backends.jl:174
 [12] Plots.Plot() at C:\Users\Muril\.julia\v0.6\Plots\src\types.jl:81
 [13] #plot#212 at C:\Users\Muril\.julia\v0.6\Plots\src\plot.jl:56 [inlined]
 [14] (::RecipesBase.#kw##plot)(::Array{Any,1}, ::RecipesBase.#plot, ::StatPlots.GroupedBar) at .\<missing>:0
 [15] #groupedbar#92(::Array{Any,1}, ::Function, ::Array{Float64,2}, ::Vararg{Array{Float64,2},N} where N) at C:\Users\Muril\.julia\v0.6\RecipesBase\src\RecipesBase.jl:367
 [16] (::StatPlots.#kw##groupedbar)(::Array{Any,1}, ::StatPlots.#groupedbar, ::Array{Float64,2}, ::Vararg{Array{Float64,2},N} where N) at .\<missing>:0
 [17] include_string(::String, ::String) at .\loading.jl:522
 [18] include_string(::Module, ::String, ::String) at C:\Users\Muril\.julia\v0.6\Compat\src\Compat.jl:84
 [19] (::Atom.##112#116{String,String})() at C:\Users\Muril\.julia\v0.6\Atom\src\eval.jl:109
 [20] withpath(::Atom.##112#116{String,String}, ::String) at C:\Users\Muril\.julia\v0.6\CodeTools\src\utils.jl:30
 [21] withpath(::Function, ::String) at C:\Users\Muril\.julia\v0.6\Atom\src\eval.jl:38
 [22] hideprompt(::Atom.##111#115{String,String}) at C:\Users\Muril\.julia\v0.6\Atom\src\repl.jl:67
 [23] macro expansion at C:\Users\Muril\.julia\v0.6\Atom\src\eval.jl:106 [inlined]
 [24] (::Atom.##110#114{Dict{String,Any}})() at .\task.jl:80
during initialization of module GR
while loading C:\Users\Muril\Desktop\Murilo\UFPE\Dissertação\Julia\Arquivos Feitos\otimização_sistema_4_barras_novo_modelo.jl, in expression starting on
line 277

The version of my GR is:

- GR 0.37.0

I’m still using Julia 0.6.3.

The current version of Plots/GR does not support 0.6. It looks like Plots or GR weren’t properly upper-bounded, as they should not update anymore after running Pkg.update(). You should simply pin GR, StatPlots and Plots to their previous versions.

EDIT: GR does actually in principle support 0.6 also in the newest versions.

Oh, now i can’t remember wich versions they were before… anyway i can get that info? I guess GR was in 0.34, but can’t really remember about StatPlots and Plots.

What versions do you have now?

Oh well, i just rolled GR back to 0.34 and it worked again. Didn’t had to change Plots and StatPlots at all.

Thanks for your help!

1 Like

@jheinen Just a heads up that GR 0.34+ may need to be lower-bounded on 0.7 so it doesn’t install on 0.6 computers.


% /opt/julia-0.6/bin/julia
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation:
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _  |  |
  | | |_| | | | (_| |  |  Version 0.6.4 (2018-07-09 19:09 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official release
|__/                   |  x86_64-apple-darwin14.5.0

julia> Pkg.add("GR")
INFO: Initializing package repository /Users/jheinen/.julia/v0.6
INFO: Cloning METADATA from
INFO: Cloning cache of GR from
INFO: Installing GR v0.37.0
INFO: Building GR
INFO: Found exisitng GR run-time in /usr/local/gr
INFO: Package database updated

julia> using GR
INFO: Precompiling module GR.

julia> plot(randn(10))


Also, the Travis tests pass and complete successfully.

1 Like

Oh so the current version of GR does support 1.0? Sorry I’ll edit my response above. That’s strange :thinking:

you mean 0.6, right?

LOL I’ll just stop posting.