cynthiahqy / digital-garden

My personal website. Built using Quarto website:blog template.
https://cynthiahqy.com
9 stars 0 forks source link

Weasyprint PyPDF issue breaks quarto render on Netlify deploy #30

Open cynthiahqy opened 1 month ago

cynthiahqy commented 1 month ago

Netlify build started failing at CV.qmd:

Traceback (most recent call last):
File "/opt/buildhome/python3.8/bin/weasyprint", line 8, in <module>
sys.exit(main())
File "/opt/buildhome/python3.8/lib/python3.8/site-packages/weasyprint/main.py", line 207, in main
html.write_pdf(output, **options)
File "/opt/buildhome/python3.8/lib/python3.8/site-packages/weasyprint/init.py", line 252, in write_pdf
self.render(font_config, counter_style, **options)
File "/opt/buildhome/python3.8/lib/python3.8/site-packages/weasyprint/document.py", line 399, in write_pdf
pdf = generate_pdf(self, target, zoom, **options)
File "/opt/buildhome/python3.8/lib/python3.8/site-packages/weasyprint/pdf/init.py", line 120, in generate_pdf
pdf = pydyf.PDF((version or '1.7'), identifier)
TypeError: init() takes 1 positional argument but 3 were given
Error producing PDF.

Most likely because of PyPDF dependency issue in weasyprint: https://github.com/Kozea/WeasyPrint/issues/2200

cynthiahqy commented 1 month ago

ugh. tried to update weasyprint requirement to latest (62.3), but that requires python 3.9+ and netlify only has 3.8 available: https://docs.netlify.com/configure-builds/available-software-at-build-time/

cynthiahqy commented 1 month ago

Might need to stick to manual updates using quarto publish netlify

cynthiahqy commented 2 weeks ago

Or maybe use typst instead: https://github.com/skyzh/chicv