hiroi-sora / Umi-OCR

OCR software, free and offline. 开源、免费的离线OCR软件。支持截屏/批量导入图片,PDF文档识别,排除水印/页眉页脚,扫描/生成二维码。内置多国语言库。
MIT License
27.13k stars 2.72k forks source link

运行RUN_CLI.bat报错 #282

Closed andikeke1223 closed 7 months ago

andikeke1223 commented 10 months ago

双击运行后出现以下报错,请问作者这是什么原因啊 UmiOCR-data/qt_res/qml/Main.qml:7:1: plugin cannot be loaded for module "QtQuick.Controls": Cannot load library E:\umi-ocr\Umi-OCR_Paddle_v2.0.1\UmiOCR-data\site-packages\PySide2\qml\QtQuick\Controls.2\qtquickcontrols2plugin.dll: ?w?????v???V?[?W?????????????????B

hiroi-sora commented 10 months ago

QT 的 qtquickcontrols2plugin.dll 依赖一些外部dll,如:

    KERNEL32.dll
    VCRUNTIME140.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-heap-l1-1-0.dll
    api-ms-win-crt-string-l1-1-0.dll

在你的系统上,可能有一些dll缺失或版本不兼容,导致 qtquickcontrols2plugin 无法加载,引起报错。

你也许可以尝试一下重装VC运行库: https://aka.ms/vs/17/release/vc_redist.x64.exe

类似: https://github.com/hiroi-sora/Umi-OCR/issues/232 。暂不清楚具体原因,大概率系统问题。