Closed pingal-alealeale closed 1 year ago
看起来工作路径不对劲,启动脚本的工作路径是C:\Windows\System32
而不是Umi-OCR目录下,所以按照相对路径当然找不到文件。
你是双击启动bat的还是在命令行里启动的?
另外,试下在命令行里启动exe,看看有何输出?(即在Umi-OCR目录下,shift+右键→在此处打开Powershell→输入./Umi-OCR.exe
→回车)
在下载文件夹解压缩后在powershell运行是这样:
PS C:\Users\S\Downloads\Umi-OCR_Paddle_dev_20231025> .\Umi-OCR.exe
PS C:\Users\S\Downloads\Umi-OCR_Paddle_dev_20231025> Traceback (most recent call last):
File "C:\Users\S\Downloads\Umi-OCR_Paddle_dev_20231025\UmiOCR-data\site-packages\pyzbar\zbar_library.py", line 58, in load
dependencies, libzbar = load_objects(Path(''))
File "C:\Users\S\Downloads\Umi-OCR_Paddle_dev_20231025\UmiOCR-data\site-packages\pyzbar\zbar_library.py", line 50, in load_objects
deps = [
File "C:\Users\S\Downloads\Umi-OCR_Paddle_dev_20231025\UmiOCR-data\site-packages\pyzbar\zbar_library.py", line 51, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\S\Downloads\Umi-OCR_Paddle_dev_20231025\UmiOCR-data\main.py", line 60, in
将Umi-OCR.exe和UmiOCR-data拷贝到system32文件夹下,运行powershell是这样: PS C:\Windows\System32\UmiOCR-data> .\RUN_GUI.bat
C:\Windows\System32\UmiOCR-data>start "" runtime/pythonw.exe main.py PS C:\Windows\System32\UmiOCR-data>
发件人: hiroi-sora @.> 发送时间: 2023年11月4日 15:18 收件人: hiroi-sora/Umi-OCR @.> 抄送: pingal-alealeale @.>; Author @.> 主题: Re: [hiroi-sora/Umi-OCR] EXE双击无显示,运行GUI提示找不到文件 (Issue #221)
看起来工作路径不对劲,启动脚本的工作路径是C:\Windows\System32而不是Umi-OCR目录下,所以相对路径找不到文件。
你是双击启动bat的还是在命令行里启动的?
另外,试下在命令行里启动exe,看看有何输出?(即在Umi-OCR目录下,shift+右键→在此处打开Powershell→输入./Umi-OCR.exe→回车)
― Reply to this email directly, view it on GitHubhttps://github.com/hiroi-sora/Umi-OCR/issues/221#issuecomment-1793368520, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDXFKGILM24IJIDE3CNPUN3YCXT5TAVCNFSM6AAAAAA647V6YCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGM3DQNJSGA. You are receiving this because you authored the thread.Message ID: @.***>
哦哦,此bug已在新的预览版里修复。麻烦下载个新版试试。 https://github.com/hiroi-sora/Umi-OCR_v2/releases