Ovito render via terminal on cluster

Hello,
I have created a python script to save a snapshot of the system and it works.

I want to run to many directories on the cluster, so I will use bash to run the script in parallel. But I got this error when I tested on one file.

qt.qpa.xcb: could not connect to display
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: minimalegl, eglfs, xcb, minimal, linuxfb, vnc, offscreen.

Aborted

P.S. running it without OpenGL and removing

app = PySide6.QtWidgets.QApplication()

resolves the issue, is it solvable since its a cluster without a screen?

Sorry I didnt notice that its already mentioned in the documentation.

For future reference: this link points to the troubleshooting section of the manual which answers many similar questions.

1 Like

Thank you, I wasnt missing any libraries.
All I needed was to run a virtual X server using xvfb-run

OVITO_GUI_MODE=1 xvfb-run python3 <your_script.py>