Skip to content

Incompatibility with poppler v. 25 on macOS #95

Description

@optimistiCli

macOS 14.7.2
Homebrew 4.4.21
poppler: stable 25.02.0 (bottled), HEAD
Python 3.13.2
python-poppler 0.4.1

After upgrading poppler via Homebrew to v. 25 got the following error (reducted for personal data):

(VENV) $ ./myscript.py mydocument.pdf
Traceback (most recent call last):
  File "/Users/myself/myproj/./myscript.py", line 6, in <module>
    import poppler
  File "/Users/myself/myproj/pyenv3.13.2/lib/python3.13/site-packages/poppler/__init__.py", line 20, in <module>
    from poppler.utilities import version
  File "/Users/myself/myproj/pyenv3.13.2/lib/python3.13/site-packages/poppler/utilities.py", line 26, in <module>
    from poppler.cpp.version import version_major, version_minor, version_micro
ImportError: dlopen(/Users/myself/myproj/pyenv3.13.2/lib/python3.13/site-packages/poppler/cpp/version.cpython-313-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/poppler/lib/libpoppler-cpp.1.dylib
  Referenced from: <948B8188-16BF-3BD3-BC9D-C1C6B12E2A56> /Users/myself/myproj/pyenv3.13.2/lib/python3.13/site-packages/poppler/cpp/version.cpython-313-darwin.so
  Reason: tried: '/opt/homebrew/opt/poppler/lib/libpoppler-cpp.1.dylib' (no such file), ... , '/usr/lib/libpoppler-cpp.1.dylib' (no such file, not in dyld cache)

On closer inspection indeed the only poppler cpp library available was:

/opt/homebrew/lib/libpoppler-cpp.2.dylib

As a workaround compiled libpoppler-cpp.1.dylib from the latest poppler v.24 source.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions