docling-project / docling-project/docling

Keep running into rapidocr issues in Docker

Open
#2,607 2 comments 0 reactions 0 assignees View on GitHub
question triage/close-stale
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

I do not know if this is an issue with docling or rapidocr-onnxruntime but I keep getting:
```
backend-1 | 2025-11-10 16:13:41,914 - INFO - Loading plugin 'docling_defaults'
backend-1 | 2025-11-10 16:13:41,917 - INFO - Registered picture descriptions: ['vlm', 'api']
backend-1 | 2025-11-10 16:13:41,925 - INFO - Loading plugin 'docling_defaults'
backend-1 | 2025-11-10 16:13:41,937 - INFO - Registered ocr engines: ['auto', 'easyocr', 'ocrmac', 'rapidocr', 'tesserocr', 'tesseract']
backend-1 | 2025-11-10 16:13:42,159 - INFO - rapidocr cannot be used because onnxruntime is not installed.
backend-1 | 2025-11-10 16:13:42,160 - INFO - easyocr cannot be used because it is not installed.
backend-1 | 2025-11-10 16:13:42,166 - INFO - rapidocr cannot be used because rapidocr or torch is not installed.
backend-1 | 2025-11-10 16:13:42,166 - WARNING - No OCR engine found. Please review the install details.
```

requirements.txt:
```
. . .
docling[rapidocr]==2.61.1
rapidocr-onnxruntime==1.4.4
onnxruntime==1.23.2
```

Dockerfile:
```
FROM python:3.12-slim

WORKDIR /app

RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
RUN mkdir -p /root/.cache/docling/models/

RUN docling-tools models download rapidocr --output-dir /root/.cache/docling/models/

EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

```

Manually installing the pip packages inside the container has no effect, and states the packages are installed

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.