I am trying to deploy an app on elastic beanstalk Python 3.8 running on 64bit Amazon Linux 2/3.5.3 server. I have weasyprint and GTK3 installed in my pc. Also 'C:\Program Files\GTK3-Runtime Win64\bin' exists in system environment variables.
When I create an environment on elastic beanstalk using:
eb create django-env
I get an error:
OSError: cannot load library 'pango-1.0-0': pango-1.0-0: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0-0'
WeasyPrint is running fine on my windows system. But after environment creation on aws elastic beanstalk, I get the error in logs. I already checked here, but its not of much help to windows users