Skip to content

No working GUI backend found for matplotlib #558

@andrersimoes

Description

@andrersimoes

I can't change PyPlot's backend from :tk to :qt5 after a fresh install:

bash> julia
julia> using PyCall
julia> pygui( :qt5 )

julia> pyimport( "matplotlib" )
PyObject <module 'matplotlib' from '/home/simoes/.local/lib/python3.10/site-packages/matplotlib/init.py'>

julia> pyimport( "PyQt5" )
PyObject <module 'PyQt5' from '/usr/lib64/python3.10/site-packages/PyQt5/init.py'>

julia> using PyPlot
┌ Warning: No working GUI backend found for matplotlib
└ @ PyPlot ~/.julia/packages/PyPlot/NsAWt/src/init.jl:153

My configuration:

  1. OpenSuse tumbleweed.
  2. pyqt 5.15.7
  3. matplotlib 3.5.2

PS: PyQt5 backend works fine when directly called from python command prompt.

My installation steps are:

  1. rm -rf .julia to avoid old trash;
  2. open julia;
  3. define ENV[ "PYTHON"] = "/usr/bin/python3.10";
  4. add package PyCall;
  5. add package PyPlot;
  6. attempt to use as :tk success;
  7. restart julia
  8. include PyCall
  9. change backend to :qt5
  10. include PyPlot
  11. backend not available.

Any suggestions ?

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