Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH? #6

Open
hherpa opened this issue Nov 25, 2023 · 0 comments

Comments

@hherpa
Copy link

hherpa commented Nov 25, 2023

I tried to run your google collab notepad: "06.private-gpt4all-qa-pdf.ipynb". I didn't edit your code, but just started the cells step by step. In this section of the code:

images = convert_from_path("ms-financial-statement.pdf", dpi=88)
len(images)

I had this kind of error:

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/pdf2image/pdf2image.py](https://localhost:8080/#) in pdfinfo_from_path(pdf_path, userpw, ownerpw, poppler_path, rawdates, timeout)
    567             env["LD_LIBRARY_PATH"] = poppler_path + ":" + env.get("LD_LIBRARY_PATH", "")
--> 568         proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE)
    569 

4 frames
FileNotFoundError: [Errno 2] No such file or directory: 'pdfinfo'

During handling of the above exception, another exception occurred:

PDFInfoNotInstalledError                  Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/pdf2image/pdf2image.py](https://localhost:8080/#) in pdfinfo_from_path(pdf_path, userpw, ownerpw, poppler_path, rawdates, timeout)
    592 
    593     except OSError:
--> 594         raise PDFInfoNotInstalledError(
    595             "Unable to get page count. Is poppler installed and in PATH?"
    596         )

PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?

here is a screenshot:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant