0

I am using Weasyprint to convert html to pdf in my code. Everything runs fine locally. Weasyprint depends on wkhtmltopdfpackage.

This package needs binaries installed on system with sudo apt install wkhtmltopdf which is dependancy else I get

No wkhtmltoimage executable found: "b''"

How can I install this binary required in zappa environment as this is OS depedent package?

Yugandhar Chaudhari
  • 3,831
  • 3
  • 24
  • 40
  • I don't understand: `sudo apt install wkhtmltopdf` should just work and install the dependencies. Are you seeing the error above when running it? – dirkgroten Sep 20 '19 at 18:45
  • @dirkgroten I mean how zappa works is it deploys whole django app in AWS lambda function. How can I install something into lamda environment. what I give to zappa is just requirement.txt any idea about doing at OS level not in python virtualenv – Yugandhar Chaudhari Sep 20 '19 at 18:50
  • Have a look at https://github.com/danielwhatmuff/zappa – Brian Destura Oct 17 '19 at 05:41

0 Answers0