首页 PaddleOCR 帖子详情
paddleOCR打包exe运行后报错,跪求帮助
收藏
快速回复
PaddleOCR 问答OCR识别文本 158 2
paddleOCR打包exe运行后报错,跪求帮助
收藏
快速回复
PaddleOCR 问答OCR识别文本 158 2

Traceback (most recent call last):
File "main.py", line 35, in
File "main.py", line 8, in print_hi
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "paddleocr\__init__.py", line 14, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "paddleocr\paddleocr.py", line 43, in
File "paddleocr\paddleocr.py", line 37, in _import_file
File "", line 839, in exec_module
File "", line 975, in get_code
File "", line 1032, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\_MEI95362\\paddleocr\\tools/__init__.py'
[11208] Failed to execute script 'main' due to unhandled exception!

请大神帮忙解决?paddleHub,paddleOCR等只有打包exe,都要报错,并且报错压根不知道什么情况,完全想不通啊,难道paddle的这些技术框架他就不允许打包吗?

0
收藏
回复
全部评论(2)
时间顺序
宇宙物语
#2 回复于2023-10

“FileNotFoundError”,看一下是否存在'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\_MEI95362\\paddleocr\\tools/__init__.py'文件。可以考虑重装paddleocr

0
回复
f
fzxh012
#3 回复于2023-10

我第一次打包也出错,运行后闪退,后来发现原因是我的程序要读取一个TXT文件,当时这个文件不存在,后来设置了这个TXT文件后,打包后执行就正常了,请你也检查是否有相类似的原因,同时我用的打包命令是pyinstaller

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户