Hello!
i have install ERPNext V7 then following guide to install Installing wkhtmltopdf · JazzCore/python-pdfkit Wiki · GitHub
apt-get install wkhtmltopdf
but it seem tobe doesn’t work, i have try many way in the forum similar but it didn’t work too.
anyone know how to fixed this problems? plz help.
frappe.core.doctype.communication.email.sendmail
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py", line 387, in sendmail
recipients=recipients, cc=cc)
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 179, in _notify
_notify(self, print_html, print_format, attachments, recipients, cc)
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py", line 121, in _notify
prepare_to_notify(doc, print_html, print_format, attachments)
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py", line 220, in prepare_to_notify
print_format=print_format, html=print_html))
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1174, in attach_print
"fcontent": get_print(doctype, name, print_format=print_format, style=style, html=html, as_pdf=True, doc=doc)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1157, in get_print
return get_pdf(html)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 16, in get_pdf
pdfkit.from_string(html, fname, options=options or {})
File "/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/api.py", line 68, in from_string
return r.to_pdf(output_path)
File "/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/pdfkit.py", line 143, in to_pdf
raise IOError("wkhtmltopdf exited with non-zero code {0}. error:\n{1}".format(exit_code, stderr.decode("utf-8")))
IOError: wkhtmltopdf exited with non-zero code -6. error:
The switch --no-outline, is not support using unpatched qt, and will be ignored.
The switch --header-html, is not support using unpatched qt, and will be ignored.
The switch --footer-html, is not support using unpatched qt, and will be ignored.
The switch --print-media-type, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display.