Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from weasyprint import HTML
>>> HTML('http://weasyprint.org/').write_pdf('/tmp/weasyprint-website.pdf')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/weasyprint/__init__.py", line 94, in __init__
namespaceHTMLElements=False)
TypeError: parse() got an unexpected keyword argument 'override_encoding'
>>>
Я считаю, что установил все зависимости. Что здесь происходит?
[code]Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from weasyprint import HTML >>> HTML('http://weasyprint.org/').write_pdf('/tmp/weasyprint-website.pdf') Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/weasyprint/__init__.py", line 94, in __init__ namespaceHTMLElements=False) TypeError: parse() got an unexpected keyword argument 'override_encoding' >>> [/code]
Я считаю, что установил все зависимости. Что здесь происходит?