Skip to content

PyPlot: KeyError: key :colormaps not found #591

@colbec

Description

@colbec

I have a fresh install of 1.10.4 using juliaup on Linux openSUSE 15.5. S I load only PyCall and PyPlot into the registry. The command using PyCall, PyPlot results in:

ERROR: InitError: KeyError: key :colormaps not found
Stacktrace:
  [1] __getproperty
    @ ~/.julia/packages/PyCall/1gn3u/src/PyCall.jl:313 [inlined]
  [2] getproperty
    @ ~/.julia/packages/PyCall/1gn3u/src/PyCall.jl:318 [inlined]
  [3] init_colormaps()
    @ PyPlot ~/.julia/packages/PyPlot/OOWfD/src/colormaps.jl:58
  [4] __init__()
    @ PyPlot ~/.julia/packages/PyPlot/OOWfD/src/init.jl:208
  [5] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1134
  [6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1122
  [7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base ./loading.jl:1067
  [8] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base ./loading.jl:1581
  [9] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1938
 [10] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1812
 [11] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [12] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1803
 [14] macro expansion
    @ ./loading.jl:1790 [inlined]
 [15] macro expansion
    @ ./lock.jl:267 [inlined]
 [16] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1753
 [17] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [18] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [19] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1746
during initialization of module PyPlot

However, from here I am able to plot simple plots so while julia reports an error, I have yet to have a plot fail. Running python3 and importing matplotlib and matplotlibl.colors works ok. I have also tried to rebuild PyCall and PyPlot but the "error" persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions