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

PaddleOCR PPOCRLabel ModuleNotFoundError: No module named 'ppstructure.recovery.recovery_to_markdown' #14566

Open
3 tasks done
Pyr-202410 opened this issue Jan 19, 2025 · 1 comment

Comments

@Pyr-202410
Copy link

🔎 Search before asking

  • I have searched the PaddleOCR Docs and found no similar bug report.
  • I have searched the PaddleOCR Issues and found no similar bug report.
  • I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 Bug (问题描述)

I have downloaded the PaddleOCR (2.9.1) library and PaddleOCR( https://github.com/PaddlePaddle/PaddleOCR/ )After attempting to start PPOCRLabel \ PPOCRLabel.exe in the PaddleOCR directory, the following error was found:

Traceback (most recent call last):
  File "PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
    from paddleocr import PaddleOCR, PPStructure
  File "Python39\lib\site-packages\paddleocr\__init__.py", line 14, in <module>
    from .paddleocr import (
  File "Python39\lib\site-packages\paddleocr\paddleocr.py", line 69, in <module>
    from ppstructure.recovery.recovery_to_markdown import convert_info_markdown
ModuleNotFoundError: No module named 'ppstructure.recovery.recovery_to_markdown'

====================
我在下载完paddleocr(2.9.1)库和PaddleOCR(https://github.com/PaddlePaddle/PaddleOCR/)后在PaddleOCR\目录下尝试启动PPOCRLabel\PPOCRLabel.py,发现以下报错:

Traceback (most recent call last):
  File "PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
    from paddleocr import PaddleOCR, PPStructure
  File "Python39\lib\site-packages\paddleocr\__init__.py", line 14, in <module>
    from .paddleocr import (
  File "Python39\lib\site-packages\paddleocr\paddleocr.py", line 69, in <module>
    from ppstructure.recovery.recovery_to_markdown import convert_info_markdown
ModuleNotFoundError: No module named 'ppstructure.recovery.recovery_to_markdown'

🏃‍♂️ Environment (运行环境)

os Windows10
Environment cmd
Python 3.9.4
PaddleOCR 2.9.1
lnstall git
RAM 12.00 GB
CPU lntel(R) Core(TM) i7-4600M CPU@ 2.90GHz
CUDA None

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

# -*- encode : utf-8 -*-
# File : PaddleOCR\test.py

from ppstructure.recovery.recovery_to_markdown import convert_info_markdown
@jingsongliujing
Copy link
Collaborator

jingsongliujing commented Jan 20, 2025

To use the PPOCRLabel tool, please visit: https://github.com/PFCCLab/PPOCRLabel/tree/main
For related documents, please see:https://github.com/PFCCLab/PPOCRLabel/blob/main/README.md

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

No branches or pull requests

2 participants