weazyprint was throwing me some errors, turns out that it's currently not compatible with the latest pydyf package.
my error
TypeError: __init__() takes 1 positional argument but 3 were give
I fixed it by locking in pydyf at 0.8.0
pydyf==0.8.0