-
Notifications
You must be signed in to change notification settings - Fork 227
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
changes done in 4th april introduced a regression #398
Comments
Hi @categulario and thanks for reporting this. I don't think we have really discussed this before, Can't you simply upgrade your version of If you really have a need to use |
Ok, I updated pillow to 9.1.0 and now the code works. What can be done in this kind of situation? update setup.py to reflect compatible version of pillow? add testing with a matrix of versions of pillow? will close for now, but I suspect I'm not the only one, I'm just the one reported it first... |
It depends a lot on your usage... But for basic usage,
Those commands will upgrade all yours dependencies at once, |
On second thought, you were right, I was missing something: |
;) 🙏🏽 |
Describe the bug
Error details
I updated
fpdf
to 2.5.2 (latest at the moment of writing) while keepingpillow
in7.0.0
. Code that was working no longer is because commit 4acaaec introduced a dependency on enums added inpillow==9.1.0
(python-pillow/Pillow#5954).here is the traceback
Minimal code
I just called
pdf.image()
really. As mentioned earlier, the code was working, now it is not.Environment
fpdf2
2.5.2Problem is introduced in:
https://github.com/PyFPDF/fpdf2/blob/master/fpdf/image_parsing.py#L50
The text was updated successfully, but these errors were encountered: