I tried this plugin while I can successfully run ocrmypdf on a shell.
On selecting a pdf (highlighted) in calibre and clicking the ocrthispdf button, I pressed the "Do OCR for this book button". I did not run and there are some error messages:
Quote:
calibre, version 8.5.0
ERROR: Unhandled exception: <b>ValueError</b>:__main__.__spec__ is None
calibre 8.5 embedded-python: False
Linux-6.12.107+deb13-amd64-x86_64-with-glibc2.41 Linux ('64bit', 'ELF')
('Linux', '6.12.107+deb13-amd64', '#1 SMP PREEMPT_DYNAMIC Debian 6.12.107-1 (2026-08-29)')
Python 3.13.5
Interface language: None
EXE path: /usr/bin/python3.13
Successfully initialized third party plugins: Find Duplicates (1, 10, 10) && KOReader Sync (0, 8, 2) && OCRthisPDF (1, 0, 0) && Toolbars Button (2, 0, 0)
Traceback (most recent call last):
File "calibre_plugins.ocrthispdf.main", line 1048, in ocr_my_pdf
if importlib.util.find_spec('__main__', package='ocrmypdf') is None:
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^
File "<frozen importlib.util>", line 111, in find_spec
ValueError: __main__.__spec__ is None
|