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!
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.
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 thepango
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!
Best,
Bobby