Skip to content

No module named 'docling.document_converter'; 'docling' is not a package #1933

Open
@thistleknot

Description

@thistleknot

Bug

trying to replicate a simple argparse version of your readme
...

Steps to reproduce

import argparse
from docling.document_converter import DocumentConverter
parser = argparse.ArgumentParser()
parser.add_argument('input')
parser.add_argument('output')
args = parser.parse_args()
converter = DocumentConverter()
result = converter.convert(args.input)
with open(args.output, 'w', encoding='utf-8') as f:
    f.write(result.document.export_to_markdown())

python file.py a.pdf b.md

Docling version

2.28.4
...

Python version

3.10
...

windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions