-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
convert_file
errors with QXcbConnection: Could not connect to display
#144
Comments
This is not pypandoc failing, but pandoc itself. The error message sounds like it is something qt related, not sure what in pandoc used QT :-( My first ideas would be to try setting the DISPLAY env variable to something which has an xserver (e.g. |
I actually think this is |
I'll leave this here for visibility if anyone has this problem in future. You'll need to use the latest binaries from wkhtmltopdf here: https://unix.stackexchange.com/questions/192642/wkhtmltopdf-qxcbconnection-could-not-connect-to-display I was using version 0.12.2. This is fixed in version 0.12.4. Make sure to purge 0.12.2 if you've accidentally installed like I did! |
Thanks for posting the solution! |
I'm not sure whether this dependance is coming from Pandoc directly or wkhtmltopdf. This is a tornado app.
I have
wkhtmltopdf 0.12.2.4
andpandoc 1.19.2.1
This is the convert that is failing:
Exception:
I've tried running this with a display running
Xvfb :0 &
but its still failing. Any suggestions?This seems more like a Pandoc problem though. Please close if you think this needs to be dealt with by Pandoc.
The text was updated successfully, but these errors were encountered: