New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wkhtmltopdf 0.12.1 does not work on Ubuntu 18.04 because of dependency issue #3898

Closed
Yenthe666 opened this Issue Apr 30, 2018 · 13 comments

Comments

Projects
None yet
6 participants
@Yenthe666

Yenthe666 commented Apr 30, 2018

Hi there,

When you download and try to install wkhtmltopdf you'll see that Ubuntu 18.04 does not support libpng12-0 (also see https://packages.ubuntu.com/search?keywords=libpng12-0) when you run the following commands:

sudo wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo gdebi --n `basename https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb`

Output:

Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is not installable
Dependency is not satisfiable: libpng12-0

@ashkulz

This comment has been minimized.

Member

ashkulz commented Apr 30, 2018

Ubuntu 18.04 got released 4 days ago, and you're trying to install 0.12.1 which is 3 releases old 😦

You can contribute a PR for supporting Bionic in wkhtmltopdf/packaging or see if the stretch / xenial builds work for you.

@ashkulz ashkulz closed this Apr 30, 2018

@Yenthe666

This comment has been minimized.

Yenthe666 commented Apr 30, 2018

Hi @ashkulz,

I know this is quite a lot behind. Sadly Odoo itself only has a full support on 0.12.1, which forces us to stick to it (see https://github.com/odoo/odoo/wiki/Wkhtmltopdf)

@ashkulz

This comment has been minimized.

Member

ashkulz commented Apr 30, 2018

I'd love to know what issues Odoo is facing with the latest builds, as I'd like fix them before the 0.12.5 release.

@ashkulz

This comment has been minimized.

Member

ashkulz commented May 1, 2018

You got your wish via wkhtmltopdf/packaging@52b4e17 -- is there any OS/distro/arch combination that you'd like to see packaged as well?

@Yenthe666

This comment has been minimized.

Yenthe666 commented May 1, 2018

@ashkulz nice! No, this is the only OS/distro that I need.
Just wondering, can this then be applied on wkhtmltopdf 0.12.1 so that if I download it from https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb it'll work or not? Wondering how to deal correctly with it in an older version.

@ashkulz

This comment has been minimized.

Member

ashkulz commented May 1, 2018

See https://builds.wkhtmltopdf.org/0.12.1.3/ -- I had posted the link in the other ticket.

@Yenthe666

This comment has been minimized.

Yenthe666 commented May 1, 2018

@ashkulz on the page https://github.com/wkhtmltopdf/wkhtmltopdf/releases/0.12.3 I'm missing a wkhtmltox-0.12.3_linux-trusty-amd64.deb equivalt of the one at page https://github.com/wkhtmltopdf/wkhtmltopdf/releases/0.12.1 (named wkhtmltox-0.12.1_linux-trusty-amd64.deb).
The 0.12.3 page has no .deb packages?

@ashkulz

This comment has been minimized.

Member

ashkulz commented May 1, 2018

Not really getting what you are asking. The 0.12.3 build switched to a generic build based on CentOS 6, but it obviously doesn't work everywhere so switching back to distro-specific builds. I've created a special release 0.12.1.3 for odoo before they can confirm what's missing in 0.12.5, which was what you wanted...

@Yenthe666

This comment has been minimized.

Yenthe666 commented May 1, 2018

@ashkulz yeah don't worry this is enough for now! Give the Odoo team some time to test and get back to you, we'll take it from there! Thanks a lot for the help / new release.

@treviser

This comment has been minimized.

treviser commented Jun 1, 2018

@jcarlosmontoya

This comment has been minimized.

jcarlosmontoya commented Oct 7, 2018

Hello All,
Im trying to print pdf in Odoo 12 on Ubuntu 18.04.1 LTS Desktop 64bits and it show this error
odoo.exceptions.UserError: ("Wkhtmltopdf failed (error code: -8). Mensaje: b''", '')
I have tested with Wkhtmltopdf 0.12.1.3, 0.12.5 latest

@JKE-be

This comment has been minimized.

JKE-be commented Oct 20, 2018

@jcarlosmontoya
body {
font-family: ..., "Noto Color Emoji";
}
from boostrap 4

You can install ttf-mscorefonts-installer to fix it.

@odony

This comment has been minimized.

odony commented Oct 22, 2018

@jcarlosmontoya @JKE-be let's track this specific issue separately: #4149

TimLai125 added a commit to TimLai125/odoo-docker that referenced this issue Oct 25, 2018

[FIX] Change wkhtmltox version
- Since Ubuntu 18.04 no longer support libpng12-0 there we need to use another version of wkhtmltox 
Ref:
1. https://www.odoo.com/forum/help-1/question/ubuntu-18-04-lts-how-to-install-wkhtmltopdf-0-12-1-134198
2. wkhtmltopdf/wkhtmltopdf#3898

TimLai125 added a commit to rfhk/odoo-docker that referenced this issue Oct 25, 2018

[IMP] Update dependencies and package's url for Ubuntu 18.04 (#22)
* [IMP] Update Ubuntu version and new library
* [FIX] Update requirements.txt
* [FIX] Install gnupg before update source repository
* [FIX] Change wkhtmltox version
- Since Ubuntu 18.04 no longer support libpng12-0 there we need to use another version of wkhtmltox 
Ref:
1. https://www.odoo.com/forum/help-1/question/ubuntu-18-04-lts-how-to-install-wkhtmltopdf-0-12-1-134198
2. wkhtmltopdf/wkhtmltopdf#3898
* [FIX] Add wkhtmltox dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment