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 ‘libpango-1.0.so.0’: /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: pango_context_set_round_glyph_positions”}
and im not sure how to solve this on the App platform. Any ideas?
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!
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:
https://docs.digitalocean.com/products/app-platform/reference/dockerfile/
Hope that this helps!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.