Closed stackexpress-jawed closed 4 years ago
Hi @stackexpress-jawed! Thank you for the bug report. Could you please specify which release of wkhtmltopdf do you use?
here is package details
dpkg-query -s wkhtmltopdf
Package: wkhtmltopdf
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 951
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 0.12.4-1
Depends: libc6 (>= 2.14), libgcc1 (>= 1:3.0), libqt5core5a (>= 5.9.0~beta), libqt5gui5 (>= 5.2.0), libqt5network5 (>= 5.0.2), libqt5printsupport5 (>= 5.2.0), libqt5svg5 (>= 5.6.0~beta), libqt5webkit5 (>= 5.6.0~rc), libqt5widgets5 (>= 5.0.2), libstdc++6 (>= 5)
Recommends: xserver | xvfb
....
Could you please remove wkhtmltopdf installed from ubuntu repository and instead install latest release from official site and check if issue persists?
https://wkhtmltopdf.org/downloads.html
apt remove wkhtmltopdf
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
apt-get install -f ./wkhtmltox_0.12.5-1.bionic_amd64.deb
Issue description
Hello @AmbientLighter ,
On a headless server this happenes:
Errors
Steps to reproduce the issue
waldur-mastermind
on any headless serverHow to fix this?
You can use Python xvfbwrapper
Basic usage
Usage as a Context Manager:
Or you can use alternative of
pdfkit
named weasyprint