馃挱 Pin versions of dependencies 路 Issue #2200 路 Kozea/WeasyPrint =============================================================== !https://github.com/Kozea/WeasyPrint/issues/2200 Date: October 11, 2024 Pin versions of dependencies 路 Issue #2200 路 Kozea/WeasyPrint Stack trace: pdf = HTML(file_obj=html, base_url='/').write_pdf() File "/service/venv/lib/python3.9/site-packages/weasyprint/__init__.py", line 252, in write_pdf self.render(font_config, counter_sty... GitHub 路 github.com [1] weazyprint was throwing me some errors, turns out that it's currently not compatible with the latest pydyf package. my error ``` python TypeError: __init__() takes 1 positional argument but 3 were give ``` I fixed it by locking in pydyf at 0.8.0 ``` txt pydyf==0.8.0 ``` !!! note This post is a thought [2]. It's a short note that I make about someone else's content online #thoughts [3] References: [1]: https://github.com/Kozea/WeasyPrint/issues/2200 [2]: /thoughts/ [3]: /tags/thoughts/