hi Guys i just re Installed “wkhtmltopdf” , then i get this error
while i try to print a document from the desk i get this error
Traceback (most recent call last):
File "/home/azahra-erp/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 25, in get_pdf
filedata = pdfkit.from_string(html, False, options=options or {})
File "/home/azahra-erp/frappe-bench/env/src/pdfkit/pdfkit/api.py", line 68, in from_string
return r.to_pdf(output_path)
File "/home/azahra-erp/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")))
OSError: wkhtmltopdf exited with non-zero code -6. error:
The switch --footer-html, 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 --print-media-type, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/azahra-erp/frappe-bench/apps/frappe/frappe/app.py", line 60, in application
response = frappe.api.handle()
File "/home/azahra-erp/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "/home/azahra-erp/frappe-bench/apps/frappe/frappe/handler.py", line 21, in handle
data = execute_cmd(cmd)
File "/home/azahra-erp/frappe-bench/apps/frappe/frappe/handler.py", line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/azahra-erp/frappe-bench/apps/frappe/frappe/__init__.py", line 1036, in call
return fn(*args, **newargs)
File "/home/azahra-erp/frappe-bench/apps/frappe/frappe/utils/print_format.py", line 91, in download_pdf
frappe.local.response.filecontent = get_pdf(html)
File "/home/azahra-erp/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'