how to install wkhtmltopdf with patched qt in bench
i installed wkhtmltopdf but it is not with patched qt
how to install wkhtmltopdf with patched qt in bench
i installed wkhtmltopdf but it is not with patched qt
sudo apt-get install xvfb libfontconfig wkhtmltopdf
sudo apt-get install libmysqlclient-dev
hey @rs115199789 ,
i installed wkhtmltopdf following below steps
add wkhtmltopdf to the pyproject.toml
pip install wkhtmltopdf
so should i uninstall it and then do
sudo apt-get install xvfb libfontconfig wkhtmltopdf
sudo apt-get install libmysqlclient-dev
I just need to entered above commands in bench right?
Yes you need to enter those commands only in the bench , and also if you facing issue then re-install might work for you.
xvfb
, libfontconfig
, wkhtmltopdf
): Installs packages necessary for running wkhtmltopdf
to convert HTML to PDF format, including a virtual display server (xvfb
) and font configuration library (libfontconfig
).libmysqlclient-dev
): Installs development files required for compiling programs that interact with MySQL databases, providing necessary libraries and headers.hey @rs115199789,
wkhtmltopdf --version
returns
wkhtmltopdf 0.12.6
but it should return
wkhtmltopdf 0.12.6(with pacthed qt)
am i right?
but both these commands are successfully executed
sudo apt-get install xvfb libfontconfig wkhtmltopdf
sudo apt-get install libmysqlclient-dev
so what might be the issue?
sudo apt remove wkhtmltopdf
You need to download the version of wkhtmltopdf that includes patched Qt libraries.
get https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
**adjust the URL based on the version you need. Ensure it includes “bionic_amd64.deb” if you’re using Ubuntu 18.04 (Bionic).
Install the downloaded package:
Install the downloaded package using dpkg:
sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
wkhtmltopdf --version
bench get https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
returns
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: git clone https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb --depth 1 --origin upstream
remote: Not Found
fatal: repository 'https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb/' not found
why it is saying remote not found
Follow the instructions @rs115199789 posted above after downloading the appropriate .deb for your distribution:
sudo dpkg -i /path/to/the/downloaded/deb