I suspect it's just a library that is missing. But since it's installed via homebrew it might be more than just a simple install.
Where are you installing from?
Homebrew
What operating system are you working on?
macOS
Relevant log output
$ ocrmypdf -l deu+eng -s "$FILE" "$INBOX/$BASENAME"
Traceback (most recent call last):
File "/opt/homebrew/bin/ocrmypdf", line 5, in <module>
from ocrmypdf.__main__ import run
File "/opt/homebrew/Cellar/ocrmypdf/15.4.3/libexec/lib/python3.12/site-packages/ocrmypdf/__init__.py", line 10, in <module>
from ocrmypdf import helpers, hocrtransform, pdfa, pdfinfo
File "/opt/homebrew/Cellar/ocrmypdf/15.4.3/libexec/lib/python3.12/site-packages/ocrmypdf/helpers.py", line 28, in <module>
import pikepdf
File "/opt/homebrew/Cellar/ocrmypdf/15.4.3/libexec/lib/python3.12/site-packages/pikepdf/__init__.py", line 55, in <module>
from .models import (
File "/opt/homebrew/Cellar/ocrmypdf/15.4.3/libexec/lib/python3.12/site-packages/pikepdf/models/__init__.py", line 18, in <module>
from .metadata import PdfMetadata
File "/opt/homebrew/Cellar/ocrmypdf/15.4.3/libexec/lib/python3.12/site-packages/pikepdf/models/metadata.py", line 18, in <module>
from lxml import etree
ModuleNotFoundError: No module named 'lxml'
What were you trying to do?
$ ocrmypdf -l deu+eng -s "$FILE" "$INBOX/$BASENAME"
I suspect it's just a library that is missing. But since it's installed via homebrew it might be more than just a simple install.
Where are you installing from?
Homebrew
What operating system are you working on?
macOS
Relevant log output