OCRmyPDF

Edit Package OCRmyPDF

OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched

Refresh
Refresh
Source Files (show unmerged sources)
Filename Size Changed
OCRmyPDF.changes 0000001286 1.26 KB
OCRmyPDF.spec 0000003149 3.08 KB
_service:download_url:OCRmyPDF-8.0.1.tar.gz 0007481902 7.14 MB
v10.3.1.tar.gz 0007881422 7.52 MB
Latest Revision
Napo Bear's avatar Napo Bear (napobear) committed (revision 1)
Comments 1

Thomas Moldt's avatar

Hi, I ran into a problem when trying out this package on Leap 15.2.

Repository     : Project of napobear (openSUSE_Leap_15.2)
Name           : OCRmyPDF
Version        : 10.3.1-lp152.26.1
Arch           : noarch
Vendor         : obs://build.opensuse.org/home:napobear
Installed Size : 649.0 KiB
Installed      : Yes
Status         : up-to-date
Source package : OCRmyPDF-10.3.1-lp152.26.1.src
Summary        : Add an OCR text layer to scanned PDF files

When I invoke ocrmypdf (as normal user of course) I get the following traceback:

ocrmypdf --version
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 578, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 895, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pikepdf 2.5.2 (/usr/lib64/python3.6/site-packages), 
Requirement.parse('pikepdf<2,>=1.14.0'), {'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.6/site-packages/pkg_resources/__init__.py", line 3123, in <module>
    [@_call_aside](https://build.opensuse.org/users/_call_aside)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3107, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3136, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 580, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 593, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 781, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pikepdf<2,>=1.14.0' distribution was not found and is required by ocrmypdf

I use the following version of python3-pikepdf:

Repository     : Python Modules (openSUSE_Leap_15.2)
Name           : python3-pikepdf
Version        : 2.5.2-lp152.16.2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/devel:languages:python
Installed Size : 1.9 MiB
Installed      : Yes
Status         : up-to-date
Source package : python-pikepdf-2.5.2-lp152.16.2.src
Summary        : Read and write PDFs with Python, powered by qpdf
Description    : 
    Read and write PDFs with Python, powered by qpdf.

Can you give me any advice?

Thanks a lot!

openSUSE Build Service is sponsored by