Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At the execution of the github example : converter.convert(source) is hanging #942

Open
yaelamraoui opened this issue Feb 11, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@yaelamraoui
Copy link

yaelamraoui commented Feb 11, 2025

Bug

when I launch docling on the github example the execution is stuck at the converter.convert(source)
...

Steps to reproduce

launch the example
from docling.document_converter import DocumentConverter

source = "https://arxiv.org/pdf/2408.09869" # document per local path or URL
converter = DocumentConverter()
result = converter.convert(source)
print(result.document.export_to_markdown()) # output: "## Docling Technical Report[...]"
...

Docling version

I had the issue with both the 2.20 and 2.21.0 and 2.18.0 and 2.19.0 and 2.15.0
...

Python version

Python 3.11.7
...

Side note

This morning it was working and suddenly the issue appeared
the issue is on linux environment but when I ran it on my windows it worked

@yaelamraoui yaelamraoui added the bug Something isn't working label Feb 11, 2025
@yaelamraoui yaelamraoui changed the title converter.convert(source) is hanging At the execution of the github example : converter.convert(source) is hanging Feb 11, 2025
@cau-git
Copy link
Contributor

cau-git commented Feb 12, 2025

@yaelamraoui There is a chance that you see things hanging if you are on a non-responsive network connection. You could verify that by checking out how to run docling entirely offline, without checking huggingface for models. See here: https://ds4sd.github.io/docling/usage/#model-prefetching-and-offline-usage

Please let me know if that helped.

@yaelamraoui
Copy link
Author

yaelamraoui commented Feb 12, 2025

@cau-git I did download it on local and ran the command line docling --artifacts-path="/local/path/to/models" FILE but its still hanging
I also ran the python code as described on the link you provided and it's still hanging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants