You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any idea what the problem here is? Everything was fine until this past friday and then this started happening (note: no code changes were made to my main.py).
The code:
def convert_report_to_pdf(args):
doc = weasyprint.HTML(args.url) # just a simple URL string
doc.write_pdf(args.outfile) # just a simple filename string
And that was working great. Then this started:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File ".../__main__.py", line 585, in <module>
File ".../__main__.py", line 214, in convert_report_to_pdf
File "/usr/local/lib/python3.5/site-packages/weasyprint/__init__.py", line 92, in __init__
namespaceHTMLElements=False)
File "/usr/local/lib/python3.5/site-packages/html5lib/html5parser.py", line 35, in parse
return p.parse(doc, **kwargs)
File "/usr/local/lib/python3.5/site-packages/html5lib/html5parser.py", line 235, in parse
self._parse(stream, False, None, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/html5lib/html5parser.py", line 85, in _parse
self.tokenizer = _tokenizer.HTMLTokenizer(stream, parser=self, **kwargs)
File "/usr/local/lib/python3.5/site-packages/html5lib/_tokenizer.py", line 36, in __init__
self.stream = HTMLInputStream(stream, **kwargs)
File "/usr/local/lib/python3.5/site-packages/html5lib/_inputstream.py", line 151, in HTMLInputStream
return HTMLBinaryInputStream(source, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'encoding'
The text was updated successfully, but these errors were encountered:
Any idea what the problem here is? Everything was fine until this past friday and then this started happening (note: no code changes were made to my main.py).
The code:
And that was working great. Then this started:
The text was updated successfully, but these errors were encountered: