docling-project / docling-project/docling

docling -v --pdf-backend dlparse_v1 --from pdf --to md --ocr-engine tesseract --ocr-lang zh,en --output D:\Downloads 02信息系统项目管理师教程_刘明亮_25_2.pdf failed

Open
#1,616 1 comment 0 reactions 2 assignees Claimed by @nikos-livathinos View on GitHub
bug ocr triage/close-stale windows
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Bug

...
# docling -v --pdf-backend dlparse_v1 --from pdf --to md --ocr-engine tesseract --ocr-lang zh,en --output D:\Downloads 02信息系统项目管理师教程_刘明亮_25_2.pdf

INFO:docling.document_converter:Going to convert document batch...
INFO:docling.document_converter:Initializing pipeline for StandardPdfPipeline with options hash c310c811b6d5e575a71eef2dac6dedb5
INFO:docling.models.tesseract_ocr_cli_model:command: tesseract --list-langs
INFO:docling.utils.accelerator_utils:Accelerator device: 'cpu'
INFO:docling.utils.accelerator_utils:Accelerator device: 'cpu'
INFO:docling.models.factories.base_factory:Loading plugin 'docling_defaults'
INFO:docling.models.factories:Registered picture descriptions: ['vlm', 'api']
INFO:docling.pipeline.base_pipeline:Processing document 02信息系统项目管理师教程_刘明亮_25_2.pdf
INFO:docling.models.tesseract_ocr_cli_model:command: tesseract -l zh+en R:\Temp\tmp6nagl7a8.png stdout tsv
WARNING:docling.pipeline.base_pipeline:Encountered an error during conversion of document eb056df45b4e586b4debfde8fef71bca638ac0a2267269f02fc381ec08a36a90:
Traceback (most recent call last):

File "F:\SDKs\Python\6v\Lib\site-packages\docling\pipeline\base_pipeline.py", line 160, in _build_document
for p in pipeline_pages: # Must exhaust!

File "F:\SDKs\Python\6v\Lib\site-packages\docling\pipeline\base_pipeline.py", line 126, in _apply_on_pages
yield from page_batch

File "F:\SDKs\Python\6v\Lib\site-packages\docling\models\page_assemble_model.py", line 69, in __call__
for page in page_batch:

File "F:\SDKs\Python\6v\Lib\site-packages\docling\models\table_structure_model.py", line 181, in __call__
for page in page_batch:

File "F:\SDKs\Python\6v\Lib\site-packages\docling\models\layout_model.py", line 146, in __call__
for page in page_batch:

File "F:\SDKs\Python\6v\Lib\site-packages\docling\models\tesseract_ocr_cli_model.py", line 229, in __call__
df_result = self._run_tesseract(fname)
^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\SDKs\Python\6v\Lib\site-packages\docling\models\tesseract_ocr_cli_model.py", line 128, in _run_tesseract
df_result = pd.read_csv(
^^^^^^^^^^^^

File "F:\SDKs\Python\6\Lib\site-packages\pandas\io\parsers\readers.py", line 1026, in read_csv
return _read(filepath_or_buffer, kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\SDKs\Python\6\Lib\site-packages\pandas\io\parsers\readers.py", line 620, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\SDKs\Python\6\Lib\site-packages\pandas\io\parsers\readers.py", line 1620, in __init__
self._engine = self._make_engine(f, self.engine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\SDKs\Python\6\Lib\site-packages\pandas\io\parsers\readers.py", line 1898, in _make_engine
return mapping[engine](f, **self.options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\SDKs\Python\6\Lib\site-packages\pandas\io\parsers\c_parser_wrapper.py", line 93, in __init__
self._reader = parsers.TextReader(src, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "parsers.pyx", line 581, in pandas._libs.parsers.TextReader.__cinit__

pandas.errors.EmptyDataError: No columns to parse from file

INFO:docling.document_converter:Finished converting document 02信息系统项目管理师教程_刘明亮_25_2.pdf in 46.20 sec.
WARNING:docling.cli.main:Document R:\Temp\tmpezi_ubgc\02信息系统项目管理师教程_刘明亮_25_2.pdf failed to convert.
INFO:docling.cli.main:Processed 1 docs, of which 1 failed
INFO:docling.cli.main:All documents were converted in 46.20 seconds.

### Steps to reproduce

...

### Docling version

...
2.32.0
### Python version

...
3.11

[02信息系统项目管理师教程_刘明亮_25_2.pdf](https://github.com/user-attachments/files/20327406/02._._25_2.pdf)

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.