Qt.qpa.plugin: Could not load the Qt platform plugin "xcb"

Help i try to build and pose detection apps use streamlit I can running it manually but when run on cloud … this error happen :

I search this problem in stack overflow and other and try many things still not work

please if you have suggestion i will try it

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/appuser/venv/lib/python3.11/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.
...

Please share a link to your public github repo.

I am facing the exact same issue: qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “/home/adminuser/venv/lib/python3.11/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.

This is the github link: GitHub - sarthak9793/Virtual-Interactive-Board: Air Canvas is a digital drawing and painting platform that lets you create art in mid-air using motion-sensing technology

I would appreciate it a lot if you could help me out!

This error is probably due to the cv2.imshow instruction which does not work on Streamlit Cloud, as we are dealing with a headless environment here.

However, your whole approach with cv2 on Streamlit Cloud will basically not work anyway.

Totally understandable if you cant help, but if possible can you tell me how can i host my project online?