How can I install poppler on Digital Ocean? (poppler not found using pdf2image in production)

45 Views Asked by At

I am using pdf2image to apply an OCR to PDFs files, but when using it in production, i have an issue telling me that poppler was not found in path.

N.B : I am using Digital Ocean

I tried to add a setup.py file with the following :

from setuptools import setup

setup(
    scripts=['config/packages.sh']
)

with packages.sh is :

sudo apt update
sudo apt install poppler-utils -y 
sudo apt install tesseract-ocr -y

But it seems that heruko/python is taking only requirements.txt into consideration. Any solution to this ?

0

There are 0 best solutions below