Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python FPDF.output() glitches with AWS Lambda #214

Open
rahuldalal99 opened this issue Jul 5, 2023 · 1 comment
Open

Python FPDF.output() glitches with AWS Lambda #214

rahuldalal99 opened this issue Jul 5, 2023 · 1 comment

Comments

@rahuldalal99
Copy link

Hello,

I am trying to execute my python program to generate pdfs using FPDF module. When I run the program manually, there are no issues. However, when I try to automate the entire process with AWS Lambda, the logs show that the python program execution stops (without an error) after the first call to the fpdf.output('path/to/file.pdf','F'). No statements after this one are executed.

Can someone help me out with this?

Thanks.

@Lucas-C
Copy link

Lucas-C commented Jul 6, 2023

Hi @rahuldalal99

Note that PyFPDF is not maintained anymore.
See #207

fpdf2 is its successor: https://pypi.org/project/fpdf2/
I am its maintainer. We have some documentation on using fpdf2 in AWS lambdas:
https://pyfpdf.github.io/fpdf2/UsageInWebAPI.html#aws-lambda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants