Skip to content

UnstructuredWordDocumentLoader exception: File is not a zip file #521

Open
@chetaofeng

Description

@chetaofeng

run:
try:
from langchain_community.document_loaders import UnstructuredWordDocumentLoader
loader = UnstructuredWordDocumentLoader("a.docx")
documents = loader.load()
return documents
except Exception as e:
print(f"加载文档时出错: {e}")
return []

console:
\langchain-demo\demo08.py
加载文档时出错: File is not a zip file
未能加载任何文档

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