Even when your patience has expired, you have continued to help. Many thanks for this!
I have set up Raspbian again but was facing the same issues.
1: I was still working with a test-file, because loading the GUI-application would might cause other problems and I wanted to focus the startup issues.
2: Yes, it is correct. I don't know why xterm was sending an error. Also after setting up Raspbian again I had the same error with xterm. All code I have used in rc.local and test.py I have shared in this post.
3:
i: This didn't work and didn't give not any log.
ii: To insert the shebang in my test.py was a point I had already tried, but no success. I've got in the log:
iii: This did work for me! Many thanks for this. After my test.py worked with this, I have changed the script to start the actual application. Here I've got a new error, but that's a point I need to solve in the next days.Seems to be something new with QT and Raspberry Pi 5. Someone did have the same issue: viewtopic.php?t=385269
Thanks @all.
Prixx100
I have set up Raspbian again but was facing the same issues.
1: I was still working with a test-file, because loading the GUI-application would might cause other problems and I wanted to focus the startup issues.
2: Yes, it is correct. I don't know why xterm was sending an error. Also after setting up Raspbian again I had the same error with xterm. All code I have used in rc.local and test.py I have shared in this post.
3:
i: This didn't work and didn't give not any log.
ii: To insert the shebang in my test.py was a point I had already tried, but no success. I've got in the log:
I have tried with my GUI-application but here the same, all the imports were not found./home/pi/Desktop/testfolder/test.py: 2: from: not found
/home/pi/Desktop/testfolder/test.py: 4: Syntax error: "(" unexpected
xinit: connection to X server lost
iii: This did work for me! Many thanks for this. After my test.py worked with this, I have changed the script to start the actual application. Here I've got a new error, but that's a point I need to solve in the next days.
Code:
qt.qpa.xcb: could not connect to display :0qt.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, xcb.Thanks @all.
Prixx100
Statistics: Posted by Prixx100 — Sat Nov 01, 2025 11:53 pm