-
Notifications
You must be signed in to change notification settings - Fork 555
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
fitz_new
does not work with python3.10 or earlier
#2775
Comments
Thanks for reporting this! This is a known problem of Python versions < 3.11. |
Example circumvention:
|
Thanks for your quick reply! I am hijacking my own thread to ask: the changelog reads "[fitz_new] can be used as a drop-in replacement with import fitz_new as fitz." I found one case where it is not the case (i.e. using fitz_new instead of fitz breaks something). Should I report an issue, or should I find a workaround and stop bothering you? |
That would be a valuable finding and definitely no bothering! |
Actually we have a fix for this problem on older Python versions (it's an incorrect So this problem is understood, and will be fixed, hopefully in the next PyMuPDF release, depending on the MuPDF release schedule. |
Fixed in 1.23.6. |
Describe the bug (mandatory)
fitz_new
does not work with python3.10 or earlierTo Reproduce (mandatory)
We get the same result with python3.8 and python3.9.
Expected behavior (optional)
Here is what is happening with python3.11 or python3.12. I expect the same thing to happen with python3.8, python3.9 and python3.10.
Your configuration (mandatory)
PyMuPDF has been installed using pip.
Additional context (optional)
I do not need it. I am just reporting it to inform you, if you do not know it yet.
I need to use
fitz_new
because of #2742. A workaround is to import PyMuPDF with:Thanks for your work!
The text was updated successfully, but these errors were encountered: