I’m using the development branch for ERPnext v14 and I’m not able to send emails with print attachments. I have checked and reinstalled wkhtmltopdf version with the QT patches.
Is anyone else experiencing this or have any suggestions?
Here’s the error log entry for when an email with attachment doesn’t send
File "/home/bench/frappe/apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 137, in send
message = ctx.build_message(recipient.recipient)
File "/home/bench/frappe/apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 298, in build_message
message = self.include_attachments(message)
File "/home/bench/frappe/apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 371, in include_attachments
print_format_file = frappe.attach_print(**attachment)
File "/home/bench/frappe/apps/frappe/frappe/__init__.py", line 2052, in attach_print
else get_print(doctype, name, **kwargs)
File "/home/bench/frappe/apps/frappe/frappe/__init__.py", line 2004, in get_print
return get_pdf(html, options=pdf_options, output=output) if as_pdf else html
File "/home/bench/frappe/apps/frappe/frappe/utils/pdf.py", line 63, in get_pdf
filedata = pdfkit.from_string(html, options=options or {}, verbose=True)
File "/home/bench/frappe/env/lib/python3.10/site-packages/pdfkit/api.py", line 75, in from_string
return r.to_pdf(output_path)
File "/home/bench/frappe/env/lib/python3.10/site-packages/pdfkit/pdfkit.py", line 201, in to_pdf
self.handle_error(exit_code, stderr)
File "/home/bench/frappe/env/lib/python3.10/site-packages/pdfkit/pdfkit.py", line 155, in handle_error
raise IOError('wkhtmltopdf reported an error:\n' + stderr)