Skip to content
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

adapt to pydyf v0.11.0 to avoid TypeError: PDF.__init__() takes 1 positional argument but 3 were given #2205

Closed
teese opened this issue Jul 17, 2024 · 1 comment

Comments

@teese
Copy link

teese commented Jul 17, 2024

A few days ago in an update to 0.11.0, pydyf removed the version and identifier parameters from their PDF class:
Here's the commit:
CourtBouillon/pydyf@15a4625

I assume pydyf doesn't use semantic versioning, because this looks like a breaking change to me.

My current version of weasyprint (59.0) now gives an error "TypeError: PDF.init() takes 1 positional argument but 3 were given"

I assume this is due to line 120 of weasyprint/pdf/init.py, which includes both a version and identifier.
pdf = pydyf.PDF((version or '1.7'), identifier)

@grewn0uille
Copy link
Member

Hi,

That’s a duplicate of #2204, #2203, #2202 and #2200.

@grewn0uille grewn0uille closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants