Hi,
I’m facing this error:
'OSError' object has no attribute 'message'
Traceback (most recent call last):
File "/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/configuration.py", line 21, in __init__
with open(self.wkhtmltopdf) as f:
FileNotFoundError: [Errno 2] No such file or directory: b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 25, in get_pdf
filedata = pdfkit.from_string(html, False, options=options or {})
File "/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/api.py", line 66, in from_string
configuration=configuration)
File "/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/pdfkit.py", line 38, in __init__
self.configuration = (Configuration() if configuration is None
File "/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/configuration.py", line 27, in __init__
'https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf' % self.wkhtmltopdf)
OSError: No wkhtmltopdf executable found: "b''"
If this file exists please check that this process can read it. Otherwise please install wkhtmltopdf - https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 439, in send_one
message = prepare_message(email, recipient.recipient, recipients_list)
File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 571, in prepare_message
print_format_file = frappe.attach_print(**attachment)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1391, in attach_print
"fcontent": get_print(doctype, name, print_format=print_format, style=style, html=html, as_pdf=True, doc=doc, no_letterhead=no_letterhead, password=password)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1368, in get_print
return get_pdf(html, output = output, options = options)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 32, in get_pdf
if ("ContentNotFoundError" in e.message
AttributeError: 'OSError' object has no attribute 'message'
Somebody have a tip about it?
Thanks!