Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb. #72

Closed
mazhendi opened this issue Sep 7, 2023 · 7 comments

Comments

@mazhendi
Copy link

mazhendi commented Sep 7, 2023

这是什么问题,我用的windows,搭载的租的服务器

@mazhendi
Copy link
Author

mazhendi commented Sep 7, 2023

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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

@yatengLG
Copy link
Owner

yatengLG commented Sep 8, 2023

qt的问题,你这服务器不是桌面版吧

@mazhendi
Copy link
Author

mazhendi commented Sep 8, 2023 via email

@yatengLG
Copy link
Owner

yatengLG commented Sep 8, 2023

这种服务器基本都是命令行版本的,ssh直接连命令行就可以。

但这个标注软件有界面,依赖QT,你服务器没有QT。

@mazhendi
Copy link
Author

mazhendi commented Sep 8, 2023 via email

@yatengLG
Copy link
Owner

yatengLG commented Sep 8, 2023

现在的话,只支持部署到单机上。

@StanleyYake
Copy link

StanleyYake commented Oct 18, 2024

我也出现这个错误,是因为本地也安装了其他版本的Qt(用环境变量指向conda环境中的qt,记得改为自己的路径哈)
export QT_PLUGIN_PATH=/home/yake/anaconda3/envs/sam_env/lib/python3.8/site-packages/PyQt5/Qt5/plugins
export LD_LIBRARY_PATH=/home/yake/anaconda3/envs/sam_env/lib/python3.8/site-packages/PyQt5/Qt5/lib:$LD_LIBRARY_PATH
然后再python main.py可以看到界面啦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants