Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: wkhtmltopdf exited with non-zero code -6. error: #17

Open
xpguan opened this issue Apr 21, 2017 · 5 comments
Open

OSError: wkhtmltopdf exited with non-zero code -6. error: #17

xpguan opened this issue Apr 21, 2017 · 5 comments

Comments

@xpguan
Copy link

xpguan commented Apr 21, 2017

Traceback (most recent call last):
File "crawler.py", line 165, in
crawler.run()
File "crawler.py", line 99, in run
pdfkit.from_file(htmls, self.name + ".pdf", options=options)
File "/usr/local/lib/python3.4/dist-packages/pdfkit/api.py", line 49, in from_file
return r.to_pdf(output_path)
File "/usr/local/lib/python3.4/dist-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 -6. error:
The switch --outline-depth, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display

@xpguan
Copy link
Author

xpguan commented Apr 21, 2017

换了wkhtmltopdf的版本之后就好了!

@rockyfire
Copy link

https://stackoverflow.com/questions/18758589/wkhtmltopdf-installation-error-on-ubuntu

进行到第三步的时候 连不上外网的ip就是下载不了

@HowinLoo
Copy link

@xpguan 请问换哪个版本的?

@dmitryTsatsarin
Copy link

install 0.12.4 version from official web-site
Works for me.

@d3prof3t
Copy link

I'm getting an exit code of -9 with 0.12.4.
wkhtmltopdf exited with non-zero code -9

Can someone please suggest how to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants