Upon creating an exe file, camera is not turning on

I have run a code which is capturing a sequence of images. At first I used " camera_index = 0 # 1 for integrated camera, 0 for USB camera
cap = cv2.VideoCapture(camera_index)" this lines for capturing, but for the requirement of high resolution for a 5 MP camera, I changed this lines as “pipeline = ‘v4l2src device=/dev/video0 ! image/jpeg,width=2592,height=1944 ! jpegdec ! videoconvert ! appsink’
cap = cv2.VideoCapture(pipeline, cv2.CAP_GSTREAMER)”

After changing it I can able to capture images at high resolution while running it directly from Geany. After creating its execution file, the camera is not turning on at all.
I am using Raspberry pi5 and the program code was created by using the opencv library “cv2”.
The error which was shown in the terminal was " qt.qpa.plugin: Could not find the Qt platform plugin “wayland” in “/tmp/_MEIrE8vVG/cv2/qt/plugins” ".
If anyone has any guidance, the help would be highly appreciated.