-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
声明的 PyMuPDF<1.21.0 版本兼容问题 #9340
Conversation
Thanks for your contribution! |
找到一个可以不修改paddleocr源码的方式: |
@izerui please sign the License Agreement first |
好像也不行啊,会报AttributeError: 'NoneType' object has no attribute 'copy' |
这个问题是 pyMuPDF 1.18.14 以后引入的,官方对函数名变更的说明文档: https://github.com/pymupdf/PyMuPDF/blob/main/docs/znames.rst#deprecated-names paddleOCR此问题的所有相关issue:https://github.com/PaddlePaddle/PaddleOCR/issues?q=is%3Aissue+ppocr%2Futils%2Futility.py 例如 #9401 |
@kerneltravel since you are fixing this issue, can you do a quick search in the file for any other lines using |
最新的paddleocr 安装都安装不了,必须先安装pymupdf 1.20的,才能够顺利安装。系统是windows10. |
#10181 fix this, PR can be closed @shiyutang |
官方为何还是不更新,兼容pymupdf1.20以上的版本。 |
https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/requirements.txt
官方声明的依赖项: PyMuPDF<1.21.0 ,但是PyMuPDF在 1.20以上pageCount已经改为 page_count。