You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug/unable to process .docx file from office 365 #3937
Describe the bug
When I try to use the partition on .docx file, it fails with error unstructured.partition.common.UnsupportedFileFormatError: Partitioning is not supported for the FileType.ZIP file type.
from unstructured.partition.auto import partition
elements = partition("Document.docx")
Expected behavior
Partioning should be done without any errors
Screenshots
NA
Environment Info
OS version: macOS-14.6.1-arm64-arm-64bit
Python version: 3.10.15
unstructured version: None
unstructured-inference version: 0.8.7
pytesseract is not installed
Torch version: 2.6.0
Detectron2 is not installed
[notice] A new release of pip is available: 23.2.1 -> 25.0.1
[notice] To update, run: python3 -m pip install --upgrade pip
[notice] A new release of pip is available: 23.2.1 -> 25.0.1
[notice] To update, run: python3 -m pip install --upgrade pip
PaddleOCR is not installed
Libmagic version: file-5.41
magic file from /usr/share/file/magic
Traceback (most recent call last):
FileNotFoundError: [Errno 2] No such file or directory: 'libreoffice'
Activity
srisudarsan commentedon Mar 4, 2025
Stumbled on similar issue with other libraries when searching for this, few of them for reference
open-xml-templating/docxtemplater#366
neilharvey/FileSignatures#46
And it is possible that the same could be affecting other office file formats like PPTX, XLSX, etc.
Let me know what you think of this and I can potentially suggest a fix for this too
srisudarsan commentedon Mar 10, 2025
Hello @micmarty-deepsense , do you have any comments for this ?
Matches prefix to verify presence of DOCX,PPTX,XLSX files instead of …