Package Details: ocrmypdf 16.1.2-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: 109
Popularity: 1.96
First Submitted: 2014-01-27 11:36 (UTC)
Last Updated: 2024-03-21 17:25 (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

« First ‹ Previous 1 .. 14 15 16 17 18 19 20 21 22 Next › Last »

bsdice commented on 2018-08-07 23:18 (UTC)

This package is broken, as of today 2018/08/08. I am going to post here some information on how to build the latest 7.0.2. It will be somewhat difficult.

Here is the error message:

$ ocrmypdf Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 570, in _build_master ws.require(requires) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 888, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 779, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (ruffus 2.7.0 (/usr/lib/python3.7/site-packages), Requirement.parse('ruffus==2.6.3'), {'ocrmypdf'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/ocrmypdf", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 3095, in <module> @_call_aside File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 3079, in _call_aside f(args, *kwargs) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 3108, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 572, in _build_master return cls._build_from_requirements(requires) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 585, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 774, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'ruffus==2.6.3' distribution was not found and is required by ocrmypdf</module></module>

sagittarius commented on 2018-08-05 09:31 (UTC)

It would be great to have v7.0.2

vfrico commented on 2018-05-04 16:25 (UTC) (edited on 2018-05-15 17:54 (UTC) by vfrico)

This PKGBUILD compiles today:

https://0bin.net/paste/WhJ6LfPKH3N0YDpJ#cxC8Le-REOl/guW9WQIxb9/+daxT0a5ufp9o9Z4fXLJ

Also available as a gist:

https://gist.github.com/vfrico/9709e013f01c9a8bc384e3ea85f66c3f

john-soda commented on 2018-04-11 16:43 (UTC)

For everybody, if you want to install the newest ocrmypdf change pkgbuild file to this.

Maintainer: mutantmonkey aur@mutantmonkey.in
Contributor: Daniel Reuter daniel.robin.reuter@googlemail.com

pkgname=ocrmypdf pkgver=6.1.3 pkgrel=1 pkgdesc="A tool to add an OCR text layer to scanned PDF files, allowing them to be searched" url="https://github.com/jbarlow83/OCRmyPDF" arch=('any') license=('custom') depends=('python>=3.5' 'python-cffi>=1.9.1' 'python-pillow>=4.0.0' 'python-pypdf2>=1.26' 'python-reportlab>=3.3.0' 'python-ruffus>=2.6.3' 'ghostscript>=9.15' 'qpdf>=7.0.0' 'tesseract>=3.04' 'unpaper>=6.1' 'img2pdf>=0.2.3' 'python-setuptools_scm' 'python-defusedxml>=0.5.0' 'python-pytest-runner>=3.5.0') makedepends=('python-setuptools') source=("https://pypi.python.org/packages/8c/6b/fbd6d134ffa0acd14ba0323d8e4acd739c27f6b1296c5983dfbe86fe821c/ocrmypdf-${pkgver}.tar.gz") sha256sums=('9320a3913df54d94fce8db4b1ece32e557e313dc0f1a423ab4c533f49771e6c5')

package() { cd "${srcdir}/${pkgname}-${pkgver}" python setup.py install --root="$pkgdir/" --optimize=1 install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE }

john-soda commented on 2018-04-10 13:11 (UTC) (edited on 2018-04-10 13:19 (UTC) by john-soda)

I was able to install ocrmypdf 5.4.x. But when I try to update or uninstall the old version and install the new one I always get following error message:

File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 667, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')

When I install the newest ocrmypdf via git and pip,

pip3 install git+https://github.com/jbarlow83/OCRmyPDF.git

it works.

john-soda commented on 2017-11-18 11:16 (UTC)

I needed an additonal dependency "python-setuptools-scm" without following error happend. Download error on https://pypi.python.org/simple/setuptools-scm/: [Errno -2] Name or service not known -- Some packages may not be found! Couldn't find index page for 'setuptools_scm' (maybe misspelled?) Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found! No local packages or working download links found for setuptools_scm Traceback (most recent call last): File "setup.py", line 244, in <module> zip_safe=False) File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 128, in setup _install_setup_requires(attrs) File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 666, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm') ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Makepkg was unable to build ocrmypdf.

jbarlow commented on 2017-11-09 08:15 (UTC)

@mutantmonkey. I'm the author of ocrmypdf. Thanks for maintaining this for Arch Linux and glad you find it useful. When you have a chance please consider updating the dependencies to match setup.py. For v5.2 the requirements for several packages are higher. At the minimum versions listed it won't work anymore (Tesseract 3.04 is now required, for one thing). I also suggest qpdf >= 7.0.0 because older versions have known security holes handling in malicious/malformed PDFs.

mutantmonkey commented on 2017-08-12 18:20 (UTC)

The version of img2pdf in AUR is now up-to-date, so using img2pdf-git is no longer necessary. Both python-ruffus and python-pypdf2 are already listed as dependencies and available in the AUR. If you are having trouble, you should try rebuilding them because you may already have older versions on your system built against an earlier version of Python, which will not work.

rabarrett commented on 2017-08-12 17:20 (UTC)

I got it to run, but only after installing python-pypdf2 -Should this be a dependency?

rabarrett commented on 2017-08-08 18:46 (UTC)

I also tried to clone the git repository for ocrmypdf and install it with makepkg (using the PKGBUILD from here). In doing so, I had to install 2 packages manually: [code] $ makepkg -i ==> WARNING: A package has already been built, installing existing package... ==> Installing package ocrmypdf with pacman -U... loading packages... resolving dependencies... warning: cannot resolve "python-ruffus>=2.6.3", a dependency of "ocrmypdf" warning: cannot resolve "img2pdf>=0.2.1", a dependency of "ocrmypdf" :: The following package cannot be upgraded due to unresolvable dependencies: ocrmypdf :: Do you want to skip the above package for this upgrade? [y/N] [/code] (I installed those two it warned about) But I still got the same error: [code] $ ocrmypdf Traceback (most recent call last): File "/usr/bin/ocrmypdf", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3049, in <module> @_call_aside File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3033, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3062, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 658, in _build_master ws.require(__requires__) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 972, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 858, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'PyPDF2>=1.26' distribution was not found and is required by ocrmypdf [code]