The switch --print-media-type, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display

Traceback (most recent call last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/app.py”, line 64, in application
response = frappe.api.handle()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/api.py”, line 54, in handle
return frappe.handler.handle()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py”, line 42, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/init.py”, line 900, in call
return fn(*args, **newargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/print_format.py”, line 48, in download_pdf
frappe.local.response.filecontent = get_pdf(html)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/pdf.py”, line 17, in get_pdf
pdfkit.from_string(html, fname, options=options or {})
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/src/pdfkit/pdfkit/api.py”, line 68, in from_string
return r.to_pdf(output_path)
File “/opt/bitnami/apps/erpnext/htdocs/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”)))
IOError: wkhtmltopdf exited with non-zero code -6. error:
/usr/bin/wkhtmltopdf: /opt/bitnami/common/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5)
/usr/bin/wkhtmltopdf: /opt/bitnami/common/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5)
/usr/bin/wkhtmltopdf: /opt/bitnami/common/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5)
/usr/bin/wkhtmltopdf: /opt/bitnami/common/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0)
The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-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

You might want to update wkhtml2pdf to the patched qt version.

Do you have some info I can use to help install?

any update on this

Solve with fresh install and not the prepaid version google cloud.