You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently (2.3.0), django-weasyprint has a dependency to weasyprint>=53. I believe that this is insufficient. I was getting errors
write_pdf() got an unexpected keyword argument 'stylesheets'
After upgrading to weasyprint 63, this error was resolved. I'm not certain which version I had installed before, I believe it was 58. So it appears that the minimum required version must be 59, or even larger.
The text was updated successfully, but these errors were encountered:
Thank you for the report! We missed to update the install_requires definition in #71/#70.
While testing this I came across this issue related to pydyf, that has been fixed in WeasyPrint, but I just wanted to reference it here in case someone gets errors like this:
[...]
File ".../django-weasyprint/django_weasyprint/views.py", line 102, in rendered_content
return document.write_pdf(**self._options)
File ".../django-weasyprint/.tox/py310-dj42-wp61-dyf11/lib/python3.10/site-packages/weasyprint/document.py", line 390, in write_pdf
pdf = generate_pdf(self, target, zoom, **options)
File ".../django-weasyprint/.tox/py310-dj42-wp61-dyf11/lib/python3.10/site-packages/weasyprint/pdf/__init__.py", line 127, in generate_pdf
pdf = pydyf.PDF((version or '1.7'), identifier)
TypeError: PDF.__init__() takes 1 positional argument but 3 were given
Currently (2.3.0), django-weasyprint has a dependency to weasyprint>=53. I believe that this is insufficient. I was getting errors
write_pdf() got an unexpected keyword argument 'stylesheets'
After upgrading to weasyprint 63, this error was resolved. I'm not certain which version I had installed before, I believe it was 58. So it appears that the minimum required version must be 59, or even larger.
The text was updated successfully, but these errors were encountered: