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

Rocky Linux 直接部署报错 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. #9

Open
tuxin1989 opened this issue Oct 11, 2024 · 1 comment

Comments

@tuxin1989
Copy link

在Rocky Linux 无界面直接部署OCR 报错,请问该如何处理?

Use GUI mode.
qt.qpa.xcb: could not connect to display :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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-gl
x, webgl, xcb.

./umi-ocr.sh: line 50: 375888 Aborted (core dumped) python3 UmiOCR-data/main_linux.py "$@"

@hiroi-sora
Copy link
Owner

hiroi-sora commented Oct 12, 2024

当前启动模式为 GUI mode ,自然无法在纯命令行环境中启动。

请参考 Readme 无头模式 的说明,安装 xvfb 并设置环境变量,就能在命令行下运行了。

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

2 participants