Python Flask Weasy Print

Hi, I use Flask Weasy Print on my App thats hosted in the App Platform python 3.11

and recently I saw my pdf arnt generating due to the following error {“Message”:“Failed To Render PDF”,“SystemMessage”:“function/symbol ‘pango_context_set_round_glyph_positions’ not found in library ‘’: /usr/lib/x86_64-linux-gnu/ undefined symbol: pango_context_set_round_glyph_positions”}

and im not sure how to solve this on the App platform. Any ideas?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
June 7, 2023
Accepted Answer

Hi there,

Based on the error message it sounds like that a required library function (pango_context_set_round_glyph_positions) for PDF generation is missing. It’s likely that there’s a version mismatch issue with the pango library installed in your DigitalOcean App environment.

A workaround here could be to build a custom Dockerfile for your application which includes the required dependencies with the correct versions. This approach would provide you with more control over your environment and allow you to manage system-level dependencies where as when using the native App Platform builds you don’t have that control.

You can follow the steps on how to use a Dockerfile together with the App Platform here:

Hope that this helps!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel