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? #22

Open
Abdivoitov-Shokhrukh opened this issue Nov 25, 2024 · 3 comments

Comments

@Abdivoitov-Shokhrukh
Copy link

Description of the bug

The bug I encoubnter with is called PDFinfoNotInstalledError. I cloned the repisotory and fixed a few back until I can run model itself.

Screenshots
image

  • OS: Windows 11
  • Python version version 3.12.3
@IsaacBraydon
Copy link

I've experienced the same problem while using macos. You can try install poppler and add it into your environment PATH. macOS can use 'brew install poppler' to solve this.

@Abdivoitov-Shokhrukh
Copy link
Author

Hi Braydon. I actually tried to install and add path but program is still giving error.

@IsaacBraydon
Copy link

Hi Shokhrukh, due to difference between Windows & macOS, I assume that might be something wrong with the configuration of the PATH settings.

You can try to use poppler in command line. For example, test poppler in powershell.exe &.cmd.exe, if you checked it can be used, then launch python and try some test codes which would use poppler in python to check it can be invoked. (python -c 'import pdf2image')

Component PDF2Image would use poppler. Make sure poppler is installed & used in your command line, and PDF2Image cam be imported by python might can solve your problem.

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

2 participants