Package: ocrmypdf
Version: 14.0.1+dfsg1-1
Severity: normal
Tags: upstream
Hello,
I get this error when using the option --remove-background:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ocrmypdf/_sync.py", line 393, in
run_pipeline
optimize_messages = exec_concurrent(context, executor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ocrmypdf/_sync.py", line 280, in
exec_concurrent
executor(
File "/usr/lib/python3/dist-packages/ocrmypdf/_concurrent.py", line 87, in
__call__
self._execute(
File "/usr/lib/python3/dist-
packages/ocrmypdf/builtin_plugins/concurrency.py", line 141, in _execute
result = future.result()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in
__get_result
raise self._exception
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ocrmypdf/_sync.py", line 196, in
exec_page_sync
ocr_image, preprocess_out = make_intermediate_images(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ocrmypdf/_sync.py", line 139, in
make_intermediate_images
preprocess_out = preprocess(
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ocrmypdf/_sync.py", line 108, in
preprocess
image = preprocess_remove_background(image, page_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ocrmypdf/_pipeline.py", line 477, in
preprocess_remove_background
raise NotImplementedError("--remove-background is temporarily not
implemented")
NotImplementedError: --remove-background is temporarily not implemented
Upstream bug: https://github.com/ocrmypdf/OCRmyPDF/issues/944
Best,
Amr
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing'), (100, 'unstable'), (50, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ocrmypdf depends on:
ii ghostscript 10.0.0~dfsg-9+b1
ii icc-profiles-free 2.0.1+dfsg-1.1
ii python3 3.11.1-2
ii python3-coloredlogs 15.0.1-1
ii python3-deprecation 2.1.0-2
ii python3-img2pdf 0.4.4-3
ii python3-packaging 23.0-1
ii python3-pdfminer 20221105+dfsg-1
ii python3-pikepdf 6.0.0+dfsg-1+b2
ii python3-pil 9.4.0-1.1+b1
ii python3-pkg-resources 65.6.3-1
ii python3-pluggy 1.0.0+repack-1
ii python3-reportlab 3.6.12-1
ii python3-tqdm 4.64.1-1
ii python3-typing-extensions 4.4.0-1
ii tesseract-ocr 5.3.0-2
ii zlib1g 1:1.2.13.dfsg-1
Versions of packages ocrmypdf recommends:
pn pngquant <none>
ii unpaper 7.0.0-0.1
Versions of packages ocrmypdf suggests:
pn img2pdf <none>
pn ocrmypdf-doc <none>
pn python-watchdog <none>
-- no debconf information