Try ERPNext Buy Support Partners Foundation

Error printing multiples invoices at the same time


I want to print multiples invoce at the same time as show in the image. When I click on print , here is the error message appearing in the web page.

Server Error
Traceback (most recent call last):
File “/home/stocknumbers/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/stocknumbers/frappe-bench/apps/frappe/frappe/utils/pdf.py”, line 28, in get_pdf
filedata = pdfkit.from_string(html, False, options=options or {})
File “/home/stocknumbers/frappe-bench/env/src/pdfkit/pdfkit/api.py”, line 66, in from_string
configuration=configuration)
File “/home/stocknumbers/frappe-bench/env/src/pdfkit/pdfkit/pdfkit.py”, line 38, in init
self.configuration = (Configuration() if configuration is None
File “/home/stocknumbers/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/stocknumbers/frappe-bench/apps/frappe/frappe/app.py”, line 60, in application
response = frappe.api.handle()
File “/home/stocknumbers/frappe-bench/apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “/home/stocknumbers/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/stocknumbers/frappe-bench/apps/frappe/frappe/handler.py”, line 61, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/stocknumbers/frappe-bench/apps/frappe/frappe/init.py”, line 1042, in call
return fn(*args, **newargs)
File “/home/stocknumbers/frappe-bench/apps/frappe/frappe/utils/print_format.py”, line 64, in download_multi_pdf
output = frappe.get_print(doctype, ss, format, as_pdf = True, output = output, no_letterhead=no_letterhead)
File “/home/stocknumbers/frappe-bench/apps/frappe/frappe/init.py”, line 1382, in get_print
return get_pdf(html, output = output, options = options)
File “/home/stocknumbers/frappe-bench/apps/frappe/frappe/utils/pdf.py”, line 35, in get_pdf
if (“ContentNotFoundError” in e.message
AttributeError: ‘OSError’ object has no attribute ‘message’

@ngoploti I tried replicating the issue but it seems to be working fine, could you try again or let me know the steps to replicate the same.