Skip to content

It looks like this PR and 2.83.0 release might have broken the docling-tools model download command: #648

Description

@sgottuso-bh

It looks like this PR and 2.83.0 release might have broken the docling-tools model download command:

 Traceback (most recent call last):                                                                                                                                                               
   File "/var/lang/bin/docling-tools", line 5, in <module>                                                                                                                                        
     from docling.cli.tools import app                                                                                                                                                            
   File "/var/lang/lib/python3.12/site-packages/docling/cli/tools.py", line 3, in <module>                                                                                                        
     from docling.cli.models import app as models_app
   File "/var/lang/lib/python3.12/site-packages/docling/cli/models.py", line 13, in <module>
     from docling.utils.model_downloader import download_models
   File "/var/lang/lib/python3.12/site-packages/docling/utils/model_downloader.py", line 17, in <module>
     from docling.models.stages.chart_extraction.granite_vision import (
   File "/var/lang/lib/python3.12/site-packages/docling/models/stages/chart_extraction/granite_vision.py", line 25, in <module>
     from docling.models.base_model import BaseItemAndImageEnrichmentModel
   File "/var/lang/lib/python3.12/site-packages/docling/models/base_model.py", line 22, in <module>
     from docling.datamodel.document import ConversionResult
   File "/var/lang/lib/python3.12/site-packages/docling/datamodel/document.py", line 38, in <module>
     from docling_core.types.legacy_doc.base import (
 ModuleNotFoundError: No module named 'docling_core.types.legacy_doc'

Unless there's a suggested upgrade/workaround?

Originally posted by @sgottuso-bh in #644 (comment)

Confirmed that docling-tools models download continues to work if you install docling and pin docling-core to < 2.83.0

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