Unstructured-IO / Unstructured-IO/unstructured

After install the unstructured[all-docs] on the CPU machine (Windows) I am getting error

Open
#4,155 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
15.5k
Forks
1.3k
Avg merge
4d 2h
Merged PRs (30d)
13

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
python
Domain
data, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.