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?
Search Criteria
Package Details: ocrmypdf 16.2.0-1
Package Actions
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: | 110 |
Popularity: | 2.03 |
First Submitted: | 2014-01-27 11:36 (UTC) |
Last Updated: | 2024-04-19 19:30 (UTC) |
Dependencies (21)
- ghostscript
- img2pdf (img2pdf-gitAUR)
- pngquant
- python (python37AUR, python311AUR, python310AUR)
- python-deprecation
- python-importlib_resources
- python-packaging
- python-pdfminer (pdfminerAUR)
- python-pikepdf
- python-pillow (python-pillow-gitAUR)
- python-pluggy
- python-reportlab
- python-rich (python-rich-gitAUR)
- python-tqdm
- tesseract (tesseract-gitAUR)
- unpaper (unpaper-gitAUR)
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-setuptools-scm (make)
- python-wheel (make)
- Show 1 more dependencies...
Required by (6)
- docspell-joex (optional)
- dpsprep-git (optional)
- paperless-ngx
- phoronix-test-suite-git (optional)
- python-ocrmypdf-papermerge
- riven-soundtrack (make)
Sources (1)
oscar.0 commented on 2024-02-15 09:46 (UTC)
tobias_de commented on 2023-10-10 18:07 (UTC)
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
googol42 commented on 2023-09-29 09:38 (UTC)
The upstream url is https://github.com/ocrmypdf/OCRmyPDF (old url still works)
android_aur commented on 2023-08-16 09:29 (UTC) (edited on 2023-08-16 09:33 (UTC) by android_aur)
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.
whxvd commented on 2023-08-16 06:18 (UTC)
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).
sagittarius commented on 2023-06-16 19:53 (UTC)
@marco Thank you Marco, the script works great with yay -Sc --noconfirm I prefered to place the log file there because the folder already existed logfile=~/.log/python3xRebuild.log
marco.righi commented on 2023-06-16 09:00 (UTC)
@sagittarius I have not an answer to your question. I followed expert suggestions and I write the script you see. The script works and now I can use ocrmypdf.
sagittarius commented on 2023-06-16 08:48 (UTC) (edited on 2023-06-16 08:49 (UTC) by sagittarius)
@marco yay -Scc --noconfirm ? Yay -Sc --noconfirm should be sufficient ?
eclairevoyant commented on 2023-06-05 14:33 (UTC)
If you're asking for help with automating yay, then ask in a yay support forum. Doesn't make sense to ask in the AUR, since there's no issues with this package.
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.