Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPlot: KeyError: key :colormaps not found #591

Closed
colbec opened this issue Jul 5, 2024 · 2 comments · Fixed by #592
Closed

PyPlot: KeyError: key :colormaps not found #591

colbec opened this issue Jul 5, 2024 · 2 comments · Fixed by #592

Comments

@colbec
Copy link

colbec commented Jul 5, 2024

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.

@stevengj
Copy link
Member

stevengj commented Jul 5, 2024

Should be fixed by #592

@colbec
Copy link
Author

colbec commented Jul 5, 2024

After Pkg up PyPlot refreshed and now the error is gone. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants