Skip to content

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

@dibyendubiswas1998

Description

@dibyendubiswas1998

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions