Page 1 of 1

RevPi Commander

Posted: 21 May 2024, 09:09
by SGBDev
Hallo zusammen,

ich habe folgendes Problem meines Programms beim Starten mit RevPi Commander:

Code: Select all

-------------------------------------------------------
plc: GuiH2.py started: Tue May 21 06:59:13 2024
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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

-------------------------------------------------------
plc: GuiH2.py stopped: Tue May 21 06:59:14 2024
Wenn ich das gleiche Programm (GuiH2.py) vom RevPi direkt in der Python-Konsole (Thonny) starte, läuft es ohne Probleme.
Würde die Qt-Library fehlen, wäre doch der gleiche Fehler auch in Thonny geschmissen worden, oder?
Angeschlossen ist ein Faytech 10"-Display oder wahlweise die VNC-Schnittstelle.

Hat jemand Erfahrung mit diesem Fehler und wenn ja, wo liegt er genau?
Der Start bzw. Wiederanlauf wäre für mein Projekt sehr sinnvoll und einfach mit RevPiCommander, da die SPS einen Prozess steuert, sprich bei Stromausfall etc. auch wieder dort weitermachen soll, wo sie aufgehört hat. Ein händisches Neustarten etc. wäre in diesem Zusammenhang nicht optimal.

Schon mal besten Dank :)