You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be good to have a more descriptive error message showing the different possibilities that might be causing the OSError. Or at least some error message based on which the user doesn't think that poppler not being installed or on the path is necessarily the root cause.
The text was updated successfully, but these errors were encountered:
I am never against improving usability and giving the user a better error message. If you can give me a reproducible test case I'll be happy to fix the message.
pdf2image/pdf2image/pdf2image.py
Line 466 in 511ceab
This line will raise a
PDFInfoNotInstalledError
, with the messageUnable to get page count. Is poppler installed and in PATH?
for anyOSError
caught in the above try block. I was getting an error somewhere in that try block, but it was not due topdfinfo
not being installed. I actually successfully ran the code fromtests.py
that indicated that poppler is installed based on the successful calling ofpdfinfo -h
I think it would be good to have a more descriptive error message showing the different possibilities that might be causing the
OSError
. Or at least some error message based on which the user doesn't think thatpoppler
not being installed or on the path is necessarily the root cause.The text was updated successfully, but these errors were encountered: