Skip to content

Instantly share code, notes, and snippets.

@meisa233
Created August 24, 2023 06:41
Show Gist options
  • Save meisa233/de8c93ea0d8933ee01855f3228850699 to your computer and use it in GitHub Desktop.
Save meisa233/de8c93ea0d8933ee01855f3228850699 to your computer and use it in GitHub Desktop.
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

This answer is from Chatgpt 3.5. The information about error:

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

Answer:

export QT_PLUGIN_PATH=/path/to/Qt/plugins
E.g. export QT_PLUGIN_PATH=/media/sdtv/新加卷/MyCode/MiVOS/venv/lib/python3.7/site-packages/PyQt5/Qt5/plugins
export QT_QPA_PLATFORM_PLUGIN_PATH=/path/to/Qt/plugins/platforms
E.g. export QT_QPA_PLATFORM_PLUGIN_PATH=/media/sdtv/新加卷/MyCode/MiVOS/venv/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms

run your script

QT_DEBUG_PLUGINS=1 LD_PRELOAD=/media/sdtv/新加卷/MyCode/MiVOS/venv/lib/python3.7/site-packages/PyQt5/Qt5/lib/libQt5XcbQpa.so.5 python interactive_gui.py --video /home/sdtv/Desktop/128ebc825ad94dd495c76601a6842019_H264_mp4_500K.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment