The optional dependency 'jbig2' was not found, so some image optimizations could not be attempted.
jbig2enc
wat
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: | 124 |
Popularity: | 2.84 |
First Submitted: | 2014-01-27 11:36 (UTC) |
Last Updated: | 2024-12-10 05:10 (UTC) |
The optional dependency 'jbig2' was not found, so some image optimizations could not be attempted.
jbig2enc
wat
does not work with latest tesseract 5.4.0; crashes with SubprocessOutputError
; upstream issue https://github.com/ocrmypdf/OCRmyPDF/issues/1328
Do not forget export version
https://wiki.archlinux.org/title/Python_package_guidelines#setuptools_or_distutils
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
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?
I think there might be a missing dependency:
ERROR Missing dependencies: setuptools_scm[toml]>=7.0.5 ==> ERROR: A failure occurred in build(). Aborting...
I do have "python-setuptools-scm 7.1.0-4" installed
The upstream url is https://github.com/ocrmypdf/OCRmyPDF (old url still works)
Traceback (most recent call last):
File "/usr/bin/ocrmypdf", line 5, in <module>
from ocrmypdf.__main__ import run
[...]
ModuleNotFoundError: No module named 'rich'
same problem as @whxvd. Manually installing python-rich
fixes the issue.
Upstream changed a dependendency during the last version bump (coloredlogs
were replaced by rich
). See
git log v14.3.0..v14.4.0 -- pyproject.toml
git diff v14.3.0..v14.4.0 -- pyproject.toml
in the upstream repository. That is not (yet) reflected in this PKGBUILD
(and produces a non-functional ocrmypdf
on my system).
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.