Skip to content

pdftotext can't find libpoppler-cpp.1.dylib after upgrading macOS and poppler #129

@devstknco

Description

@devstknco

My setup:
MacOS: 15.3 (24D60)
python: 3.12
poppler: 25.02.0
pdftotext: 3.0.0

What has changed:
Upgrade macOS from 14.x to 15.3
Upgrade poppler to version 25.02.0

After upgrade I get this error:

import pdftotext
ImportError: dlopen(<...>/lib/python3.12/site-packages/pdftotext.cpython-312-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/poppler/lib/libpoppler-cpp.1.dylib
<...>
libpoppler-cpp.1.dylib' (no such file)

Checking the dir /opt/homebrew/opt/poppler/lib/ there is no file called libpoppler-cpp.1.dylib but a file called libpoppler-cpp.2.dylib

This workaround seems to work:
Created a symbolic link libpoppler-cpp.1.dylib --> libpoppler-cpp.2.dylib

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