I was trying to run a python script to create plots. This script was tested and works when run in a jupyter lab notebook.
Because it need to be run often, it should be run via command line as a slrum array.
This is unfortunately a bit difficult, because it needs some stuff only installed in a conda environment. You’d need to have the newest development version of POSYDON.
It was expected to create the plots like tested when using jupyter lab.
But it turned out, that running the same script on command line with python, python3 or ipython results in an error about the graphical interface, namely the Qt plugin.
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
POSYDON uses PyQt5 in some modules, which probably causes the failed try to load the Qt plugin.
The Qt plugin is not part of POSYDON, it should come from the shared installations on the system.
For a colleague the script runs with python, we do use the same PyQt5 version, but I have a slightly newer version of python 3.7 than he. According to python, it should use the Qt version 5.15.2. In the internet I found the most common reason for this error are missing libraries in Qt6.