Error when starting plotting tool: "Cannot load backend 'Qt5Agg' which requires the 'qt5' interactive framework, as 'headless' is currently running" #16
bobeldering
started this conversation in
Known issues
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The error message:
Error running pySCHED: Cannot load backend 'Qt5Agg' which requires the 'qt5' interactive framework, as 'headless' is currently running
Background:
pySCHED uses PyQt5 to create the plotting GUI. Since version 5.12 of this library, it has external dependencies that are not automatically installed. To get to the details of this error, you can create a QApplication object in Python with the environment variable
QT_DEBUG_PLUGINS
set to 1. For example like this:This will print out all the plugins that Qt is trying to load. The last few lines should look similar to this:
One line is of particular interest:
Cannot load library /home/eldering/anaconda3/envs/pySCHED/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
Indicating that the library
libxkbcommon-x11.so.0
is missing.Resolution
This missing library can be installed with:
sudo apt install libxkbcommon-x11-0
Beta Was this translation helpful? Give feedback.
All reactions