Skip to content

Centos 7 quay.io/docling-project/docling-serve:latest ImportError: libQt5Core-195a14c9.so.5.15.18: cannot open shared object file: No such file or directoryΒ #573

@majestichou

Description

@majestichou

docker run -p 9969:5001 quay.io/docling-project/docling-serve:latest

Then an error occured:

Starting production server πŸš€

Server started at http://0.0.0.0:5001
Documentation at http://0.0.0.0:5001/docs
Scalar docs at http://0.0.0.0:5001/scalar

Logs:
INFO:     Started server process [1]
INFO:     Waiting for application startup.
WARNING:docling.models.stages.ocr.auto_ocr_model:No OCR engine found. Please review the install details.
Loading weights: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 770/770 [00:00<00:00, 3279.06it/s]
ERROR:    Traceback (most recent call last):
  File "/opt/app-root/lib64/python3.12/site-packages/starlette/routing.py", line 694, in lifespan
    async with self.lifespan_context(app) as maybe_state:
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/src/docling_serve/app.py", line 158, in lifespan
    await orchestrator.warm_up_caches()
  File "/opt/app-root/lib64/python3.12/site-packages/docling_jobkit/orchestrators/local/orchestrator.py", line 132, in warm_up_caches
    converter.initialize_pipeline(InputFormat.PDF)
  File "/opt/app-root/lib64/python3.12/site-packages/docling/document_converter.py", line 320, in initialize_pipeline
    pipeline = self._get_pipeline(doc_format=format)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.12/site-packages/docling/document_converter.py", line 594, in _get_pipeline
    self.initialized_pipelines[cache_key] = pipeline_class(
                                            ^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.12/site-packages/docling/pipeline/standard_pdf_pipeline.py", line 467, in __init__
    self._init_models()
  File "/opt/app-root/lib64/python3.12/site-packages/docling/pipeline/standard_pdf_pipeline.py", line 498, in _init_models
    self.table_model = table_factory.create_instance(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.12/site-packages/docling/models/factories/base_factory.py", line 57, in create_instance
    return _cls(options=options, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.12/site-packages/docling/models/stages/table_structure/table_structure_model.py", line 76, in __init__
    from docling_ibm_models.tableformer.data_management.tf_predictor import (
  File "/opt/app-root/lib64/python3.12/site-packages/docling_ibm_models/tableformer/data_management/tf_predictor.py", line 9, in <module>
    import cv2
ImportError: libQt5Core-195a14c9.so.5.15.18: cannot open shared object file: No such file or directory

ERROR:    Application startup failed. Exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions