Belval / pdf2image

A python module that wraps the pdftoppm utility to convert PDF to PIL Image object
MIT License
1.64k stars 195 forks source link

[Errno 2] No such file or directory: 'pdfinfo': 'pdfinfo' (on MAC OS) #198

Closed DarioBernardo closed 3 years ago

DarioBernardo commented 3 years ago

Describe the bug Hello, this issue is closely related to this issue, however I have tried the steps and it doesn't work for me. I am using MAC OS. Furthermore, it was working just yesterday. I am not sure what changed, it is not working anymore. I am trying to understand what i changed but it is very strange. I have upgraded some libraries now in the attempt to see if that would fix it, but still no luck.

> pip freeze | grep poppler
python-poppler==0.2.2
> pip freeze | grep pdf
img2pdf==0.3.6
pdf2image==1.15.1
> brew install poppler
Warning: poppler 21.06.1 already installed

To Reproduce

from pdf2image import convert_from_bytes

filename = "myfile.pdf"

with open(filename, 'rb') as f:
    images = convert_from_bytes(f.read())

Desktop (please complete the following information):

DarioBernardo commented 3 years ago

Issue was related to this and Pycharm. Closing