Using Qt in on an external Server
-
Hello, I am having some issues. I have an old file that I created using QTDesigner that works perfectly on my computer. Now, I want to open the same .py file on an external server.
I downloaded an app called XQuartz on my computer to me able to have a graphic interface, but it doesn't work. The error I am getting is the following:QObject::moveToThread: Current thread (0x55e88722e160) is not the object's thread (0x55e888be2e70).
Cannot move to target thread (0x55e88722e160)qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/jchirkes/clam/lib/python3.10/site-packages/cv2/qt/plugins" 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: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Did any of you have similar trouble? Do you know if there are other things that I need to download to my server in order for this to work? I only imported the file I created and have downloadad PyQt5.
Any comments would be a great help! -
@jchirkes said in Using Qt in on an external Server:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb"
Is X11 running on your machine?
To get more information about why xcb plug-in could not be loaded set QT_DEBUG_PLUGINS env variable to 1 in the terminal where you're starting your app, then start your app and check the output in the terminal. See https://doc.qt.io/qt-6/debug.html