After install the unstructured[all-docs] on the CPU machine (Windows) I am getting error
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- data, machine-learning
Research direction
Reproduce the two imports from the Windows CPU environment and start with the traceback at unstructured.partition.pdf, unstructured_inference.inference.layout, and onnxruntime_pybind11_state. Compare the installed package environment and dependency-loading behavior; done means the imports complete without the DLL initialization error.
Written by the indexing model from the issue text.
Description
Now, after install the package unstructured[all-docs] on the CPU machine (Windows) I am getting error, during the loading the packages.
Here I share the Error logs. Please help me with these:
Unstructured for document parsing
from unstructured.partition.pdf import partition_pdf
from unstructured.chunking.title import chunk_by_title
Error:
ImportError Traceback (most recent call last)
Cell In[3], [line 5](vscode-notebook-cell:?execution_count=3&line=5)
2 from typing import List
4 # Unstructured for document parsing
----> [5](vscode-notebook-cell:?execution_count=3&line=5) from unstructured.partition.pdf import partition_pdf
6 from unstructured.chunking.title import chunk_by_title
8 # LangChain components
File e:\Dibyendu\1. Programms\7. Redis\Redis\.venv\Lib\site-packages\unstructured\partition\pdf.py:19
17 from PIL import Image as PILImage
18 from pypdf import PdfReader
---> [19](file:///E:/Dibyendu/1.%20Programms/7.%20Redis/Redis/.venv/Lib/site-packages/unstructured/partition/pdf.py:19) from unstructured_inference.inference.layout import DocumentLayout
20 from unstructured_inference.inference.layoutelement import LayoutElement
22 from unstructured.chunking import add_chunking_strategy
File e:\Dibyendu\1. Programms\7. Redis\Redis\.venv\Lib\site-packages\unstructured_inference\inference\layout.py:18
16 from unstructured_inference.inference.layoutelement import LayoutElement, LayoutElements
17 from unstructured_inference.logger import logger
---> [18](file:///E:/Dibyendu/1.%20Programms/7.%20Redis/Redis/.venv/Lib/site-packages/unstructured_inference/inference/layout.py:18) from unstructured_inference.models.base import get_model
19 from unstructured_inference.models.unstructuredmodel import (
20 UnstructuredElementExtractionModel,
21 UnstructuredObjectDetectionModel,
22 )
23 from unstructured_inference.visualize import draw_bbox
...
27 "(other than %SystemRoot%\\System[32](file:///E:/Dibyendu/1.%20Programms/7.%20Redis/Redis/.venv/Lib/site-packages/onnxruntime/capi/_pybind_state.py:32)), "
28 "make sure it can be found by setting the correct path.")
---> 32 from .onnxruntime_pybind11_state import * # noqa
ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
- Dominant language
- HTML
- Stars
- 15.8k
- Forks
- 1.4k
- Avg merge
- 8d 4h
- Merged PRs (30d)
- 40
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Unstructured-IO/unstructured
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Unstructured-IO/unstructured#4876 ·
Maintainers usually reply within 6 days
-
bug: partition_email() raises io.UnsupportedOperation on a file-like object that cannot seekPossibly taken @Bensonluo claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Unstructured-IO/unstructured#4864 ·
Maintainers usually reply within 6 days
-
fix(nlp): match single-letter bullets in the enumerated bullet patternPossibly taken @Eapp1e claimed this 33 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Unstructured-IO/unstructured#4635 ·
Maintainers usually reply within 6 days
-
bug(cleaners): translate_text passes text instead of chunk in attention window loopPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Unstructured-IO/unstructured#4558 · 1 comment ·
Maintainers usually reply within 6 days
-
extract_text_before/extract_text_after raise UnboundLocalError when the pattern is absentPossibly taken @ayam04 claimed this 103 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Unstructured-IO/unstructured#4427 · 3 comments ·
Maintainers usually reply within 6 days
All issues in Unstructured-IO/unstructured
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
fairagro/m4.2_sql_to_arc#388 ·
Maintainers usually reply within 1 day
-
Add: FAP TV Gay FeedOpencheck:failed feeds:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
iptv-org/database#40182 · 1 comment ·
Maintainers usually reply within 1 day
-
copilot-metrics
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area: explore bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nplhse/collaborative-ivena-statistics#2107 ·
Maintainers usually reply within 1 day