XCB Error wile Displaying

2,069 views
Skip to first unread message

Dhanush Eswar

unread,
Feb 26, 2021, 8:59:11 AM2/26/21
to Linux Users Group
Hi all,
I am trying to display images and videos on RPI using SSH, I have written Python program with the help of opencv, I am getting no error If I run the python program on RPI manually and works fine, When I try to run the python file through the SSH I am getting this error as follows,

qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.8/dist-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.Aborted (core dumped)


Help me with some ideas...

Regards,
Dhanush

Jeremiah Bess

unread,
Feb 26, 2021, 9:01:36 AM2/26/21
to LUG
When you SSH, you don't have a graphical display instance to use. This post might lead you in the right direction: https://askubuntu.com/questions/47642/how-to-start-a-gui-software-on-a-remote-linux-pc-via-ssh#47658

oli@bert:~$ ssh tim
oli@tim:~$ export DISPLAY=:0
oli@tim:~$ firefox

Jeremiah Bess


--
--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxus...@googlegroups.com
To unsubscribe, send email to linuxusersgro...@googlegroups.com
For more options, visit our group at http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
---
You received this message because you are subscribed to the Google Groups "Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linuxusersgro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/linuxusersgroup/92e402da-ebbd-4f99-9dab-c09263f97618n%40googlegroups.com.

Dhanush Eswar

unread,
Mar 1, 2021, 12:08:35 AM3/1/21
to Linux Users Group
Hi Jeremiah Bess,

Thanks for the Answer but I have tried that anyhow and the same error persists, will set the os from the beginning.

Regards,
Dhanush 

Reply all
Reply to author
Forward
0 new messages