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

Problems with pydyf versions #2206

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

Problems with pydyf versions #2206

nitroxido opened this issue Jul 17, 2024 · 1 comment

Comments

@nitroxido
Copy link

Our system auto-updated to latest pydyf (0.11.0) and we started to get this error:

  File "/env/lib/python3.11/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

It seems they changed the "init" signature so it doesn't support the pdf = pydyf.PDF((version or '1.7'), identifier) syntax anymore, but just pdf = pydyf.PDF()

This had me stalled for hours until I found the culprit!

@grewn0uille
Copy link
Member

Hi,

That’s a duplicate of #2205, #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