報(bào)錯
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: minimalegl, vkkhrdisplay, linuxfb, eglfs, vnc, offscreen, xcb, wayland-egl, minimal, wayland.
?
pyside6開發(fā)程序運(yùn)行報(bào)錯處理方法:
1.添加環(huán)境變量打開QT插件調(diào)試日志輸出
os.environ["QT_DEBUG_PLUGINS"] = "1"
2.查看具體報(bào)錯文章來源:http://www.zghlxwxcb.cn/news/detail-743404.html
qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland")
qt.core.plugin.factoryloader: checking directory path "/usr/bin/platforms" ...
qt.core.library: "/usr/local/lib/python3.9/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /usr/local/lib/python3.9/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: 無法打開共享對象文件: 沒有那個文件或目錄)
qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/usr/local/lib/python3.9/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /usr/local/lib/python3.9/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: 無法打開共享對象文件: 沒有那個文件或目錄)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: minimalegl, vkkhrdisplay, linuxfb, eglfs, vnc, offscreen, xcb, wayland-egl, minimal, wayland.
已放棄
3.安裝對應(yīng)插件的開發(fā)庫文章來源地址http://www.zghlxwxcb.cn/news/detail-743404.html
apt-get install libxcb-cursor*
到了這里,關(guān)于報(bào)錯qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.This ap的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!