-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
Does WeasyPrint works on AWS-Lambda ? #499
Comments
You can follow the information of #401 and add a section into the documentation if it works for you. |
I don't get your problem. Did you try to install WeasyPrint on AWS-Lambda? According to #401, there's no real problem except from the Pango installation, which seems to be solved in the issue. |
Hi @liZe , Im even facing the same issue with pango-1.0 while uploading the weasy print library into the aws-Lambda. The pango issue is solved in #401 ? can you please point the link what did they do. I couldn't see the solution on the #410 Error:
|
|
Yeah Sorry @liZe I just saw this comment. But can you help me out here how to download the "libpango-1.0.so.0.2800.1" and libpangocairo-1.0.so.0.2800.1 libpangocairo-1.0.so.0.2800.1 libpangoft2-1.0.so.0.2800.1 because im using windows os. Can you point me how to get those so files please |
@Prasengupta I've never used AWS Lambda, I don't even know what it really is. I'm just carefully reading the comments and searching on the Internet. I'm sure you can do that too. It's my last comment 😄. Amazon provides a Linux distribution called Amazon Linux. This distribution includes packages, including Pango. @y0rd4nis took the files from this package and put them in the root of his/her lambda function package. He/She then renamed these files, and it worked. |
@liZe Hey Bro thanks for the help it worked for me and genrating an excellent pdf to aws-s3. Don't worry I will do documentation for weasyprint using aws-lambda and saving resulting pdf to aws-s3 |
@Prasengupta did you every document this? |
@cgreening Yes, I have done but not uploaded. Will upload in my git account and share with the public. It takes time |
@Prasengupta did you ever upload this? |
Im gonna upload the doc in next week.
On Fri, 10 Nov 2017 at 1:33 AM, Vlad Holubiev ***@***.***> wrote:
@Prasengupta <https://github.com/prasengupta> did you ever upload this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#499 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbOAE6y1PVNxOivU50Eu4li7zrLQegIaks5s01qFgaJpZM4O74Kk>
.
--
Thanks and Regards,
*FOCALCXM*
|
@Prasengupta Did you got the chance to update Git with your example? |
Related to #428. |
Guys below is the git link where you can download the weasy print library which works in AWS lambda. https://github.com/Prasengupta/weasyprint_for_awslambda Will try to upload the full documentation with an example in my git account. Please raise a ticket if you face any issues. |
Everything works perfect now! Prasengupta fixed all issues and I use his code for my live project |
Thank you @richance |
@richance How exactly did you do it? just dropped the .zip and climbed in aws? how did deploy? |
Download the zip file/extract it and include your handler file which has the main code of using weasyprint in the zip file and upload it in your lambda. |
this make no sense! i'm having the same issue but i can't work it out at all! |
@lclpedro where are you running your code ?. |
I created a repo with a Docker image that will create a Lambda layer with Weasy native libraries that is compatible with the Python 3.7 runtime https://github.com/seanfdnn/weasyprint_lambda |
Does weasy print supports in aws Lambda if so, can you guys point the libraries related to aws-lambda.
The weasy print is working like charm in my local windows machine I need to make it as a lambda function and store the pdf in aws s3.
Please help
The text was updated successfully, but these errors were encountered: