Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Openssl bug #56555

Merged
merged 4 commits into from
Sep 9, 2023
Merged

Fix Openssl bug #56555

merged 4 commits into from
Sep 9, 2023

Conversation

risemeup1
Copy link
Contributor

@risemeup1 risemeup1 commented Aug 23, 2023

PR types

Others

PR changes

Others

Description

Pcard-67010
Fix bug that can't find libssl.so when import paddle

@risemeup1 risemeup1 closed this Aug 23, 2023
@risemeup1 risemeup1 reopened this Aug 23, 2023
@paddle-ci-bot
Copy link

paddle-ci-bot bot commented Sep 1, 2023

Sorry to inform you that 6e48ccd's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@risemeup1 risemeup1 changed the title Openssl bug Fix Openssl bug Sep 8, 2023
winter-wang
winter-wang previously approved these changes Sep 9, 2023
Copy link
Contributor

@winter-wang winter-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@promaprogga
Copy link

my code:
!git clone https://github.com/PaddlePaddle/PaddleOCR.git
!pip install paddleocr --upgrade
!pip install paddlepaddle
%cd PaddleOCR/ppstructure

!mkdir inference
%cd inference

!wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/table/en_ppocr_mobile_v2.0_table_det_infer.tar && tar xf en_ppocr_mobile_v2.0_table_det_infer.tar

!wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/table/en_ppocr_mobile_v2.0_table_rec_infer.tar && tar xf en_ppocr_mobile_v2.0_table_rec_infer.tar
!wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/table/en_ppocr_mobile_v2.0_table_structure_infer.tar && tar xf en_ppocr_mobile_v2.0_table_structure_infer.tar

!sudo apt-get install libssl1.1

!pip install paddleocr
!wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb

!sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb

!python -m pip install paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.html

%cd PaddleOCR/ppstructure
!python /content/PaddleOCR/ppstructure/table/predict_table.py --det_model_dir=inference/en_PP-OCRv3_det_infer --rec_model_dir=inference/en_ppocr_mobile_v2.0_table_rec_infer --table_model_dir=inference/en_ppocr_mobile_v2.0_table_structure_infer --image_dir=/content/drive/MyDrive/SSCL/Code/Table/image --rec_char_dict_path=../ppocr/utils/dict/table_dict.txt --table_char_dict_path=../ppocr/utils/dict/table_structure_dict.txt --det_limit_side_len=736 --det_limit_type=min --output ./content/drive/MyDrive/SSCL/Code/Table/output_paddle
error:
[Errno 2] No such file or directory: 'PaddleOCR/ppstructure'
/content/PaddleOCR/ppstructure/inference/PaddleOCR/ppstructure
Traceback (most recent call last):
File "/content/PaddleOCR/ppstructure/table/predict_table.py", line 230, in
main(args)
File "/content/PaddleOCR/ppstructure/table/predict_table.py", line 153, in main
table_sys = TableSystem(args)
File "/content/PaddleOCR/ppstructure/table/predict_table.py", line 67, in init
self.text_detector = predict_det.TextDetector(copy.deepcopy(
File "/content/PaddleOCR/tools/infer/predict_det.py", line 141, in init
self.predictor, self.input_tensor, self.output_tensors, self.config = utility.create_predictor(
File "/content/PaddleOCR/tools/infer/utility.py", line 199, in create_predictor
raise ValueError(
ValueError: not find model.pdmodel or inference.pdmodel in inference/en_PP-OCRv3_det_infer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants