Package Details: ocrmypdf 17.4.1-1

Git Clone URL: https://aur.archlinux.org/ocrmypdf.git (read-only, click to copy)
Package Base: ocrmypdf
Description: A tool to add an OCR text layer to scanned PDF files, allowing them to be searched
Upstream URL: https://github.com/ocrmypdf/OCRmyPDF
Licenses: MPL2
Submitter: dreuter
Maintainer: fbrennan (pigmonkey)
Last Packager: pigmonkey
Votes: 147
Popularity: 4.10
First Submitted: 2014-01-27 11:36 (UTC)
Last Updated: 2026-04-10 19:00 (UTC)

Pinned Comments

fbrennan commented on 2023-05-12 22:54 (UTC)

The flag was invalid and has been removed with no action taken as no new version was released. There's nothing to do for this package; no new release has been made. Rebuild, as @eclairevoyant has said.

Latest Comments

1 2 3 4 5 6 .. 23 Next › Last »

martin-de commented on 2026-02-02 12:00 (UTC) (edited on 2026-02-02 12:01 (UTC) by martin-de)

Since the update to Python 3.14 and the transition to OCRmyPDF v17.x, the current depends array is incomplete, leading to ModuleNotFoundError at runtime. Please add the following mandatory dependencies:

python-pydantic (required for OcrOptions validation)

python-uharfbuzz (required for text shaping)

python-fpdf2 (required for the new default PDF renderer)

Without these, the application fails to start even if the build process completes successfully.

jbarlow commented on 2026-01-31 08:07 (UTC)

Upstream here - v17 introduces some new features and new recommended dependencies:

https://github.com/ocrmypdf/OCRmyPDF/blob/main/docs/maintainers.md#dependency-matrix-for-packagers

mostafatouny commented on 2025-04-18 19:48 (UTC)

If anyone faced: ImportError(_msg) from _e ImportError: pikepdf's extension library failed to import

Try pip check or pip install pikepdf and install any missing dependencies.

Then re-compile: pip install ocrmypdf --force

ioan commented on 2024-06-26 18:24 (UTC)

The optional dependency 'jbig2' was not found, so some image optimizations could not be attempted.

jbig2enc

wat

mplx commented on 2024-06-08 13:51 (UTC)

does not work with latest tesseract 5.4.0; crashes with SubprocessOutputError; upstream issue https://github.com/ocrmypdf/OCRmyPDF/issues/1328

carlosal1015 commented on 2024-05-29 13:39 (UTC)

Do not forget export version https://wiki.archlinux.org/title/Python_package_guidelines#setuptools_or_distutils

DeutscheGabanna commented on 2024-05-29 10:40 (UTC)

Same thing as @tobias_de pointed out. Even when you install python-setuptools-scm makepkg still complains about a missing dependency.

$ pacman -Qs setuptools
local/python-setuptools 1:69.0.3-6 (python-build-backend)
    Easily download, build, install, upgrade, and uninstall Python packages
local/python-setuptools-scm 8.1.0-1
    Handles managing your python package versions in scm metadata
ERROR Missing dependencies:
        setuptools_scm[toml]>=7.0.5

oscar.0 commented on 2024-02-15 09:46 (UTC)

With version 16.1.0 I initially got "ModuleNotFoundError: No module named 'deprecation'". Following the installation of the python-deprecation package, ocrmypdf now apparently works. Looks like a missing dependency?