Attributeerror: 'Outstream' Object has no attribute 'buffer' in weasyprint module in Python

Asked

Viewed 9 times

-2

Importing the weasyprint module into python gives the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-3-5c808e9d68b5> in <module>()
      2 import pandas as pd
      3 import numpy as np
----> 4 import weasyprint
      5 import re
      

4 frames
/usr/local/lib/python3.7/dist-packages/pydyf/__init__.py in PDF()
    506         self.write_line(b'%%EOF', output)
    507 
--> 508     def write(self, output=sys.stdout.buffer):
    509         """Write PDF to output.
    510 

AttributeError: 'OutStream' object has no attribute 'buffer'

some idea of how to solve?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.