Skip to content

bug/import partition_pdf must use onnxruntime? #3981

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

Open
ryangsun opened this issue Apr 7, 2025 · 0 comments
Open

bug/import partition_pdf must use onnxruntime? #3981

ryangsun opened this issue Apr 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ryangsun
Copy link

ryangsun commented Apr 7, 2025

Describe the bug

from unstructured.partition.pdf import partition_pdf


if name == "main":

 txt = partition_pdf(filename=r'E:\ideaproj\test_doc\test_pdf\test_pdf_01.pdf', strategy='fast')

 print(txt)

my strategy='fast'
Here is the translated content:

I don't need it, but whenever I from unstructured.partition.pdf import partition_pdf,
it raises
File "D:\anaconda3\envs\mytest-llamaindex\Lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in
from .onnxruntime_pybind11_state import * # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.

To Reproduce
Provide a code snippet that reproduces the issue.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment Info
Please run python scripts/collect_env.py and paste the output here.
This will help us understand more about the environment in which the bug occurred.

Additional context
Add any other context about the problem here.

@ryangsun ryangsun added the bug Something isn't working label Apr 7, 2025
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

1 participant