-
Notifications
You must be signed in to change notification settings - Fork 328
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
Error QXcbConnection: Could not connect to display #82
Comments
Here's a relevant stack exchange question: https://unix.stackexchange.com/q/192642/215718 What I recommend is don't use the Debian package (which doesn't support running headless). Grab the latest generic linux binary here: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/tag/0.12.4 You'll want either Or you can use |
The wrapper script didn't work for me. But the binary from the GitHub release page did. |
Note about wkhtmltopdf (0.12.4) in Ubuntu 18.04:
|
Solution from @WilliamDenniss worked for me! |
Wrapping with |
The solution from @WilliamDenniss works perfectly. Thank you so much. |
Closing since its "fixed". Good idea to update wiki page about running without X server with an alternative binary from https://github.com/wkhtmltopdf/wkhtmltopdf/releases/ Sorry that it took so long for me to get to it... |
Solution from @WilliamDenniss worked. Thank you ;) I tested on ubuntu 18.04 |
I use django v1.11.1, wkhtmltopdf 0.12.2.4 and pdfkit 0.6.1, i think that i have conflict, when i use wkhtmltopdf google.com google.pdf in my terminal this work fine, but when i use in my app i get this error
wkhtmltopdf exited with non-zero code -6. error:
QXcbConnection: Could not connect to display
The text was updated successfully, but these errors were encountered: