KeyError: 'PaddleOCR.tools' #13015
Replies: 4 comments
-
It should be caused by an error in the exe packaging process, not by replacing the model. You can first check the logic of code packaging. |
Beta Was this translation helpful? Give feedback.
-
i have cloned the paddleocr repo as im using its predict_det and predict_rec file for my models
|
Beta Was this translation helpful? Give feedback.
-
the same issue which im facing was mentioned in one such issue as well: #9408 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Before creating the exe file the code is running perfectly well but while running the exe file I'm getting the below error:
Traceback (most recent call last):
File "main.py", line 9, in
from ocr_paddle import ProcessImage
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "ocr_paddle.py", line 6, in
from PaddleOCR.tools.infer.predict_det import TextDetector
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "PaddleOCR_init.py", line 14, in
from .paddleocr import *
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "PaddleOCR\paddleocr.py", line 48, in
from tools.infer import predict_system
File "", line 1007, in _find_and_load
File "", line 982, in _find_and_load_unlocked
File "", line 925, in _find_spec
File "PyInstaller\loader\pyimod02_importers.py", line 312, in find_spec
File "", line 1150, in init
File "", line 1165, in _get_parent_path
KeyError: 'PaddleOCR.tools'
i can share you my .spec file as well.
Windows 10
Using my custom trained paddleocr models
Any help is welcomed
Thank you
Beta Was this translation helpful? Give feedback.
All reactions