PythonPlot.jl icon indicating copy to clipboard operation
PythonPlot.jl copied to clipboard

Qt5 "No working GUI backend found for matplotlib"

Open magnusbbc opened this issue 2 years ago • 2 comments

I have tried to use PythonPlot with PyQt5, however it can not initialize and I receive the error: No working GUI backend found for matplotlib

After some digging I determined the error to originate from fixqtpath() in pygui.jl. where somekind of exception occurs. I haven't found the excact issue, but by commenting the fixqtpath() in function qt_eventloop(QtCore::Py, sec::Real=50e-3) and configuring my QT_PLUGIN_PATH environment path to the correct QT folder, I got the backend to load as intended.

magnusbbc avatar Jan 19 '23 14:01 magnusbbc

@magnusbbc I'm having the same issue and it's a pain. Everything works fine if I use matplotlib directly from PythonCall but with PythonPlot it doesn't find the GUI.

I am struggling to find the folder for QT though to do this fix. Any advice on how I can do that?

zeitouni avatar Oct 06 '23 07:10 zeitouni

Same problem here... Ubuntu 22.04.

ufechner7 avatar Oct 11 '23 12:10 ufechner7