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
vaultzero@Scanner:~/Desktop$ weasyprint http://weasyprint.org tmp/weasyprint-website.pdf
Traceback (most recent call last):
File "/usr/local/bin/weasyprint", line 9, in
load_entry_point('WeasyPrint==0.20.2', 'console_scripts', 'weasyprint')()
File "/usr/local/lib/python2.7/dist-packages/weasyprint/main.py", line 141, in main
getattr(html, 'write_' + format_)(output, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/weasyprint/init.py", line 160, in write_pdf
return self.render(stylesheets).write_pdf(target, zoom)
File "/usr/local/lib/python2.7/dist-packages/weasyprint/init.py", line 132, in render
return Document._render(self, stylesheets, enable_hinting)
File "/usr/local/lib/python2.7/dist-packages/weasyprint/document.py", line 301, in _render
for css in stylesheets or []])
File "/usr/local/lib/python2.7/dist-packages/weasyprint/css/init.py", line 446, in get_all_computed_styles
element_tree, device_media_type, url_fetcher))
File "/usr/local/lib/python2.7/dist-packages/weasyprint/css/init.py", line 169, in find_stylesheets
for element in element_tree.iter('style', 'link'):
File "lxml.etree.pyx", line 1350, in lxml.etree._Element.iter (src/lxml/lxml.etree.c:40720)
TypeError: iter() takes at most 1 positional argument (2 given)
The text was updated successfully, but these errors were encountered:
vaultzero@Scanner:~/Desktop$ weasyprint http://weasyprint.org tmp/weasyprint-website.pdf
Traceback (most recent call last):
File "/usr/local/bin/weasyprint", line 9, in
load_entry_point('WeasyPrint==0.20.2', 'console_scripts', 'weasyprint')()
File "/usr/local/lib/python2.7/dist-packages/weasyprint/main.py", line 141, in main
getattr(html, 'write_' + format_)(output, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/weasyprint/init.py", line 160, in write_pdf
return self.render(stylesheets).write_pdf(target, zoom)
File "/usr/local/lib/python2.7/dist-packages/weasyprint/init.py", line 132, in render
return Document._render(self, stylesheets, enable_hinting)
File "/usr/local/lib/python2.7/dist-packages/weasyprint/document.py", line 301, in _render
for css in stylesheets or []])
File "/usr/local/lib/python2.7/dist-packages/weasyprint/css/init.py", line 446, in get_all_computed_styles
element_tree, device_media_type, url_fetcher))
File "/usr/local/lib/python2.7/dist-packages/weasyprint/css/init.py", line 169, in find_stylesheets
for element in element_tree.iter('style', 'link'):
File "lxml.etree.pyx", line 1350, in lxml.etree._Element.iter (src/lxml/lxml.etree.c:40720)
TypeError: iter() takes at most 1 positional argument (2 given)
The text was updated successfully, but these errors were encountered: