Wkhtmltopdf error while converting form HTML to PDF

hello, while I want to print to PDF it shows me this error

error

this is the error

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.api.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/api.py”, line 56, in handle
return frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 61, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1055, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/print_format.py”, line 92, in download_pdf
frappe.local.response.filecontent = get_pdf(html)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py”, line 33, in get_pdf
if LooseVersion(get_wkhtmltopdf_version()) > LooseVersion(‘0.12.3’):
NameError: name ‘get_wkhtmltopdf_version’ is not defined

You have version 0.12.3 - you should upgrade to the newer version 0.12.5 or higher

Please be advised that the Error persist (still) even after upgrading to 0.12.6

1 Like

I tried to reinstall it, but still the same problem

1 Like

ANY UPDATE for this issue ?

what does this give you…(run in a terminal as the erpnext/frappe user)

wkhtmltopdf --version
wkhtmltoimage --version

I don’t know if this is related.
But seems the compatibility with wkhtmltopdf 0.12.6 (with patched qt) gives the error.