we’re encountering the following error when trying to create PDF of documents
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 67, in application
response = frappe.api.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 53, 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 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 939, in call
return fn(*args, **newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/print_format.py", line 48, in download_pdf
frappe.local.response.filecontent = get_pdf(html)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 14, in get_pdf
html, options = prepare_options(html, options)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 71, in prepare_options
html, html_options = read_options_from_html(html)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 86, in read_options_from_html
soup = BeautifulSoup(html, "html5lib")
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/bs4/__init__.py", line 198, in __init__
% ",".join(features))
FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
I would try it. If I recall. the issue was about some missing library that was preventing the PDF render. I cannot recall the details or the error message, but installing as described fixed the PDF issue for me. I had to restart the service, I also recall.
I have exactly the same issue.
Fresh Ubuntu 16.04 server install followed by fresh ERPnext-Production Easy install on a local PC.
I log in without problem, everything seems to work until I try printing a PDF.
Can somebody help Please?
So it’s not a unique issue. We are also experiencing this on a fresh install. Ubuntu 16.04 using the easy install script. Could any member of the core team look into this and maybe offer a workaround?