---
title: "Pin versions of dependencies · Issue #2200 · Kozea/WeasyPrint"
description: "!https://github.com/Kozea/WeasyPrint/issues/2200"
date: 2024-10-11
published: true
tags:
  - python
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://github.com/Kozea/WeasyPrint/issues/2200" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://opengraph.githubassets.com/52ff13e577e4566fde50e9480a0dcaa7d42e48d98c94622c49fdf908ecb6d961/Kozea/WeasyPrint/issues/2200" alt="Pin versions of dependencies · Issue #2200 · Kozea/WeasyPrint — Stack trace: pdf = HTML(file_obj=html, base_url=&#39;/&#39;).write_pdf() File &#34;/service/venv/lib/python3.9/site-packages/weasyprint/__init__.py&#34;, line 252, in write_pdf self.render(font_config, counter_sty..." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Pin versions of dependencies · Issue #2200 · Kozea/WeasyPrint</div>
      <div class="embed-card-description">Stack trace: pdf = HTML(file_obj=html, base_url=&#39;/&#39;).write_pdf() File &#34;/service/venv/lib/python3.9/site-packages/weasyprint/__init__.py&#34;, line 252, in write_pdf self.render(font_config, counter_sty...</div>
      <div class="embed-card-meta">GitHub &middot; github.com</div>
    </div>
  </a>
</div>


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
```

