Skip to content

📜 fix: add missing msoffcrypto-tool package for xlsx file support#264

Merged
danny-avila merged 2 commits intodanny-avila:mainfrom
ABHIJITH-EA:fix/excel-msoffcrypto-dependency
Mar 20, 2026
Merged

📜 fix: add missing msoffcrypto-tool package for xlsx file support#264
danny-avila merged 2 commits intodanny-avila:mainfrom
ABHIJITH-EA:fix/excel-msoffcrypto-dependency

Conversation

@ABHIJITH-EA
Copy link
Copy Markdown
Contributor

Description

Excel (.xlsx) files currently fails with the following error:

No module named 'msoffcrypto'

The XLSX loader relies on msoffcrypto-tool, but the dependency is not listed in requirements.txt.

Fixes #263

Fix

Adds the missing dependency:

msoffcrypto-tool==6.0.0

This resolves the error when processing Excel files.

Testing

Verified by uploading .xlsx files after installing dependencies locally.

@ABHIJITH-EA ABHIJITH-EA marked this pull request as draft March 12, 2026 11:12
@ABHIJITH-EA ABHIJITH-EA marked this pull request as ready for review March 12, 2026 11:12
@ABHIJITH-EA
Copy link
Copy Markdown
Contributor Author

Hi @danny-avila,

We are currently using LibreChat's file search feature with rag_api, and while uploading .xlsx files we encountered the msoffcrypto missing module error. Adding msoffcrypto-tool to the dependencies resolved the issue on our side.

At the moment we are manually installing the package inside the running container as a workaround, but this has to be repeated every time the container restarts. Including the dependency in the project would help avoid this issue for deployments using Excel uploads.

If the proposed PR needs any adjustments or is not aligned with the project's preferred approach, I'd be happy to update it. Please let me know if there's anything I should change.

Thanks for your time and for maintaining the project!

Pin msoffcrypto-tool to >=6.0.0,<7 (consistent with other >= deps in
this project like pymongo, pydantic, boto3) to prevent accidental
breakage from future major version bumps.
@danny-avila danny-avila changed the title fix: add missing msoffcrypto-tool package for xlsx file support 📜 fix: add missing msoffcrypto-tool package for xlsx file support Mar 20, 2026
@danny-avila danny-avila merged commit e30e4e3 into danny-avila:main Mar 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Excel(xlsx) files fails due to missing dependency msoffcrypto-tool

2 participants