hiroi-sora / Umi-OCR_runtime_linux

Umi-OCR Linux 运行环境
MIT License
44 stars 12 forks source link

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 1 month ago

tuxin1989 commented 1 month ago

在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 commented 1 month ago

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

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