The error I get related to Qapplication/
, I am using conda env and error i get is
"QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
QXcbIntegration: Cannot create platform offscreen surface, neither GLX nor EGL are enabled"
distribution running on my machine
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
For Qt
Python 3.8.20 (default, Oct 3 2024, 15:24:27)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
from PyQt5.QtCore import QLibraryInfo
print("Qt version:", QLibraryInfo.version().toString())
Qt version: 5.15.2
print("Prefix path:", QLibraryInfo.location(QLibraryInfo.PrefixPath))
Prefix path: /home/rmunusamy/miniconda3/envs/hpe
print("Library path:", QLibraryInfo.location(QLibraryInfo.LibrariesPath))
Library path: /home/rmunusamy/miniconda3/envs/hpe/lib
I am running on wayland
echo $XDG_SESSION_TYPE
wayland
So , prepended env variable QT_QPA_PLATFORM=wayland then, the script. i get this warning
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
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, minimal, minimalegl, offscreen, vnc, webgl, xcb.