JuliaPy / PythonPlot.jl

Plotting for Julia based on matplotlib.pyplot
MIT License
74 stars 8 forks source link

Qt5 "No working GUI backend found for matplotlib" #17

Open magnusbbc opened 1 year ago

magnusbbc commented 1 year ago

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.

zeitouni commented 1 year ago

@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?

ufechner7 commented 1 year ago

Same problem here... Ubuntu 22.04.