ImportError: cannot import name 'blake2s'
Created by: honeytidy
When I run with docker environment and run with command:
python3 tools/infer/predict_system.py --image_dir="./doc/imgs/11.jpg" --det_model_dir="./inference/ch_det_mv3_db/" --rec_model_dir="./inference/ch_rec_mv3_crnn/"
i got the following error:
Traceback (most recent call last): File "tools/infer/predict_system.py", line 20, in import tools.infer.utility as utility File "/paddle/PaddleOCR/tools/infer/utility.py", line 17, in from ppocr.utils.utility import initial_logger File "/paddle/PaddleOCR/ppocr/utils/utility.py", line 19, in from paddle import fluid File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddle/init.py", line 30, in import paddle.dataset File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddle/dataset/init.py", line 28, in import paddle.dataset.mq2007 File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddle/dataset/mq2007.py", line 30, in import rarfile File "/usr/local/python3.5.1/lib/python3.5/site-packages/rarfile.py", line 64, in from hashlib import blake2s, sha1, sha256 ImportError: cannot import name 'blake2s'