Open FPRM opened 2 years ago
Did you find a solution for this?
This is an issue with fit_text
. Based on the trackback, it seems the module relies on the OS to provide information about fonts which is not provided in a Docker container. I got my Docker container to work by including a font file (.tff) and referencing the file in fit_text
(e.g. fit_text(font_file='path/to/Arial.ttf')
).
config: OS:
Python:
3.7.13 python-pptx :
python-pptx==0.6.21
I'm trying to embed a python pptx process into a docker container for AWS lambda execution as API to fill blank templates. When executing the process on my local computer (windows 10 ) everything works fine.
But when building and executing it into a Docker container it raise following error.
the docker console prints out following error
And the API request error output following.