10

I am setting up my EC2 instance on AWS with an UBUNTU 18.04 and running into the following error when trying to run this gunicorn command gunicorn --bind 0.0.0.0:8000 zipherJobCards.wsgi:application

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'

I ran into this error after installing weasyprint in both my base directory and my web apps directory.

Does anyone know the cause of this and also how to fix it?

Kyle
  • 169
  • 1
  • 8

2 Answers2

7

I got a similar error and after installing this solved the problem

sudo apt-get install -y libpangocairo-1.0-0

user3713612
  • 89
  • 1
  • 6
0

For mac, I just installed pango using homebrew and it seemed to work.

Ran brew install pango

Relevant link: https://formulae.brew.sh/formula/pango

superjisan
  • 1,604
  • 14
  • 15