From b352d13edfb5ba39e2bf454073d0b9445cd7006e Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 3 Sep 2026 00:34:09 +0400 Subject: [PATCH] Fixes to pip --- application/parser/file/bulk.py | 2 +- application/parser/file/docling_parser.py | 2 +- application/parser/file/ocr_parser.py | 2 +- application/requirements.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/parser/file/bulk.py b/application/parser/file/bulk.py index 2630f122..4b7f4703 100644 --- a/application/parser/file/bulk.py +++ b/application/parser/file/bulk.py @@ -199,7 +199,7 @@ def _docling_file_extractor( logging.log( missing_log_level, "docling is not installed. Using standard parsers%s. For layout-model " - "parsing, install with: pip install -r requirements-docling.txt", + "parsing, install with: pip install -r application/requirements-docling.txt", " with native OCR" if ocr_enabled else "", ) return _legacy_file_extractor(pdf_text_fast_path, ocr_enabled=ocr_enabled) diff --git a/application/parser/file/docling_parser.py b/application/parser/file/docling_parser.py index 8b157c5e..e1a41cba 100644 --- a/application/parser/file/docling_parser.py +++ b/application/parser/file/docling_parser.py @@ -593,7 +593,7 @@ class DoclingParser(BaseParser): if importlib.util.find_spec("docling.document_converter") is None: raise ImportError( "docling is required for DoclingParser. " - "Install it with: pip install docling" + "Install it with: pip install -r application/requirements-docling.txt" ) # Create converter with hybrid OCR (smart: text direct, bitmaps OCR'd) diff --git a/application/parser/file/ocr_parser.py b/application/parser/file/ocr_parser.py index 784a1493..61c15f19 100644 --- a/application/parser/file/ocr_parser.py +++ b/application/parser/file/ocr_parser.py @@ -130,7 +130,7 @@ def resolve_ocr_backend(requested: Optional[str] = None) -> str: if backend == "docling" and not docling_installed: logger.warning( "OCR_BACKEND=docling but docling is not installed (pip install -r " - "requirements-docling.txt); using the native OCR backend" + "application/requirements-docling.txt); using the native OCR backend" ) return "native" if backend == "auto": diff --git a/application/requirements.txt b/application/requirements.txt index cb359123..e598d4c2 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -14,7 +14,7 @@ daytona==0.205.1 defusedxml==0.7.1 # Default document converter (DOC_PARSER_ENGINE=anydoc). The docling engine # (OCR, layout/table models, read_document's structured output) is an -# optional extra: pip install -r requirements-docling.txt +# optional extra: pip install -r application/requirements-docling.txt firecrawl-anydoc==0.2.3 docx2txt==0.9 ddgs>=8.0.0