IMGIITRoorkee / omniport-backend

The Django backend of the one true portal for any and every educational institute
GNU General Public License v3.0
68 stars 22 forks source link

Downgrade the WeasyPrint version to 0.423 #123

Open pradumangoyal opened 4 years ago

pradumangoyal commented 4 years ago

We are facing the issue described here: https://github.com/Kozea/WeasyPrint/issues/915 currently due to mismatch in the version of the docker base image, GTK cairo, and the Weasyprint.

dhruvkb commented 4 years ago

Why not upgrade the others instead of downgrading WeasyPrint?

pradumangoyal commented 4 years ago

Actually, we are installing Cairo without specifying any version number. But it's by default installing to a version less than the 1.15.4 (minimum for the latest version of the Weasyprint) for our base image. So, for using the latest Weasprint, we might need to tinker with our base image.

Although the main issue due to this we are facing is a warning which appears with any management command running. Otherwise, we don't encounter any rendering issue (as specified in the warning message) in our limited use of the Weasyprint.