docling-project / docling-project/docling
libgl1 and libglib2 missing when using 2.56.1
- Dominant language
- Python
- Stars
- 66.4k
- Forks
- 4.8k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 95
Description
After upgrading our working Python container app from docling 2.55.1 to docling 2.56.1 via
`uv add --upgrade docling`
we got these errors:
```
2025-10-15 08:37:22,491 - INFO - detected formats: []
2025-10-15 08:37:22,500 - INFO - Going to convert document batch...
2025-10-15 08:37:22,500 - INFO - Initializing pipeline for StandardPdfPipeline with options hash 4f2edc0f7d9bb60b38ebfecf9a2609f5
2025-10-15 08:37:22,500 - INFO - rapidocr cannot be used because onnxruntime is not installed.
2025-10-15 08:37:22,500 - INFO - easyocr cannot be used because it is not installed.
2025-10-15 08:37:22,503 - INFO - rapidocr cannot be used because rapidocr or torch is not installed.
2025-10-15 08:37:22,503 - WARNING - No OCR engine found. Please review the install details.
2025-10-15 08:37:22,503 - INFO - Accelerator device: 'cpu'
[converter] Exception: libGL.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/app/converter/main.py", line 263, in handle_convert_msg
conversion_result = await asyncio.to_thread(to_markdown, mime, raw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/converter/convert.py", line 56, in to_markdown
result = _converter.convert(ds, headers={"Content-Type": lower_mime})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/pydantic/_internal/_validate_call.py", line 39, in wrapper_function
return wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/pydantic/_internal/_validate_call.py", line 136, in __call__
res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docling/document_converter.py", line 245, in convert
return next(all_res)
^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docling/document_converter.py", line 268, in convert_all
for conv_res in conv_res_iter:
^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docling/document_converter.py", line 340, in _convert
for item in map(
^^^^
File "/app/.venv/lib/python3.12/site-packages/docling/document_converter.py", line 387, in _process_document
conv_res = self._execute_pipeline(in_doc, raises_on_error=raises_on_error)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docling/document_converter.py", line 408, in _execute_pipeline
pipeline = self._get_pipeline(in_doc.format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docling/document_converter.py", line 370, in _get_pipeline
self.initialized_pipelines[cache_key] = pipeline_class(
^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docling/pipeline/standard_pdf_pipeline.py", line 67, in __init__
TableStructureModel(
File "/app/.venv/lib/python3.12/site-packages/docling/models/table_structure_model.py", line 72, in __init__
from docling_ibm_models.tableformer.data_management.tf_predictor import (
File "/app/.venv/lib/python3.12/site-packages/docling_ibm_models/tableformer/data_management/tf_predictor.py", line 13, in
import cv2
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Received message with id: t_e76b370531afc8d3:uploads/Stellungnahmen_etc/BStBK-Referentenentwurf_Schwarzarbeitsbekaempfung.pdf:sha256:afdee0e98b91d6c39406e9c1828aee9d4e420b26bc956703ea63900ae0ad5f35 from: 2025-10-15 08:37:19.450067+00:00 "{\"tenant_id\":\"t_e76b370531afc8d3\",\"source_type\":\"upload\",\"source_key\":\"uploads/Stellungnahmen_etc/BStBK-Referentenentwurf_Schwarzarbeitsbekaempfung.pdf\",\"raw_uri\":\"s3://cvt-ai-bot-saas--staging/tenant/t_e76b370531afc8d3/public/raw/pdf/Stellungnahmen_etc/e2fe3dcc-bf23-4d92-9341-1a249b69d511/1760517439318-afdee0e98b91d6c39406e9c1828aee9d4e420b26bc956703ea63900ae0ad5f35.pdf\",\"mime\":\"application/pdf\",\"content_hash\":\"sha256:afdee0e98b91d6c39406e9c1828aee9d4e420b26bc956703ea63900ae0ad5f35\",\"filename\":\"BStBK-Referentenentwurf_Schwarzarbeitsbekaempfung.pdf\",\"is_private\":false,\"base_folder_name\":\"Stellungnahmen_etc\"}"
2025-10-15 08:37:23,486 - INFO - detected formats: []
2025-10-15 08:37:23,501 - INFO - Going to convert document batch...
2025-10-15 08:37:23,501 - INFO - Initializing pipeline for StandardPdfPipeline with options hash 4f2edc0f7d9bb60b38ebfecf9a2609f5
2025-10-15 08:37:23,501 - INFO - rapidocr cannot be used because onnxruntime is not installed.
2025-10-15 08:37:23,501 - INFO - easyocr cannot be used because it is not installed.
2025-10-15 08:37:23,505 - INFO - rapidocr cannot be used because rapidocr or torch is not installed.
2025-10-15 08:37:23,505 - WARNING - No OCR engine found. Please review the install details.
2025-10-15 08:37:23,505 - INFO - Accelerator device: 'cpu'
```
### Steps to reproduce
...
### Docling version
...
### Python version
...
Solution:
we had to add these packages to the container:
libgl1
libglib2.0-0
After that, the rapidocr model was downloaded successfully.
Contributor guide
Assessment
This issue has not been assessed yet.