lzjun567 / python_scripts

一些python相关的演示代码
Apache License 2.0
716 stars 527 forks source link

Traceback (most recent call last): File "crawler.py", line 165, in <module> crawler.run() File "crawler.py", line 99, in run pdfkit.from_file(htmls, self.name + ".pdf", options=options) File "/home/kong/.virtualenvs/Py3/lib/python3.5/site-packages/pdfkit/api.py", line 49, in from_file return r.to_pdf(output_path) File "/home/kong/.virtualenvs/Py3/lib/python3.5/site-packages/pdfkit/pdfkit.py", line 159, in to_pdf raise IOError("wkhtmltopdf exited with non-zero code {0}. error:\n{1}".format(exit_code, stderr)) OSError: wkhtmltopdf exited with non-zero code 1. error: Loading pages (1/6) [========> ] 14% (wkhtmltopdf:13716): Gtk-WARNING **: cannot open display: #15

Closed Big2Cat closed 5 years ago