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

running a sample example gives error #653

Open
simpliatanu opened this issue Dec 27, 2024 · 2 comments
Open

running a sample example gives error #653

simpliatanu opened this issue Dec 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@simpliatanu
Copy link

Bug

...

Steps to reproduce

keeps comparing about having 1.0 version of dumpy?? I have lumpy 2x installed
...
run this sample code
from docling.document_converter import DocumentConverter

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

Docling version

...docling 2.14.0
docling-core 2.12.1
docling-ibm-models 3.1.0
docling-parse 3.0.0

Python version

...3.12.6

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/opt/miniconda3/envs/py312_6/lib/python3.12/site-packages/ipykernel_launcher.py", line 18, in
app.launch_new_instance()
File "/opt/miniconda3/envs/py312_6/lib/python3.12/site-packages/traitlets/config/application.py", line 1075, in launch_instance
app.start()
File "/opt/miniconda3/envs/py312_6/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 739, in start
self.io_loop.start()
File "/opt/miniconda3/envs/py312_6/lib/python3.12/site-packages/tornado/platform/asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "/opt/miniconda3/envs/py312_6/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/opt/miniconda3/envs/py312_6/lib/python3.12/site-packages/nest_asyncio.py", line 133, in _run_once
handle._run()
File "/opt/miniconda3/envs/py312_6/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/opt/miniconda3/envs/py312_6/lib/python3.12/site-packages/ipykernel/kernelbase.py", line 545, in dispatch_queue
await self.process_one()
File "/opt/miniconda3/envs/py312_6/lib/python3.12/site-packages/ipykernel/kernelbase.py", line 534, in process_one
await dispatch(*args)
File "/opt/minico

@simpliatanu simpliatanu added the bug Something isn't working label Dec 27, 2024
@trinanjan12
Copy link

trinanjan12 commented Dec 28, 2024

@simpliatanu
#create a fresh conda env
conda create -n docling_main python=3.11 pip ipykernel
conda activate docling_main
conda install poetry
#check if poetry is installed inside conda env by
which poetry
#now go to the project dir where poetry.toml file is there
#we dont want to again create one more ve
poetry config virtualenvs.create false
poetry install

check after this

@workflowsguy
Copy link

I have the same problem.

As Docling does not build on 3.12 (#672) , I have created a virtual environment using virtualenv especially for it with Python 3.11.
While Docling itself builds there, every execution with a command line like docling --to md Test.pdfcauses the error reported by @simpliatanu

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

3 participants