mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[GH-ISSUE #1444] [Errno 2] No such file or directory: '/usr/local/lib/python3.11/site-packages/unstructured/nlp/english-words.txt' #132226
Reference in New Issue
Block a user
Originally created by @xcjs on GitHub (Apr 6, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1444
Bug Report
Description
When uploading a document and after clicking save, an error occurs regarding what I believe is a missing Python package.
Bug Summary:
[Provide a brief but clear summary of the bug]
See Description.
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Expected Behavior:
[Describe what you expected to happen.]
Between the XSS bug and this bug, I haven't been able to experiment with the documents feature yet. I would expect the file to be uploaded and the context available for reference in an LLM conversation.
Actual Behavior:
[Describe what actually happened.]
The following error message appears:
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
See above.
Installation Method
I'm using the Docker images.
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
I have no additional information to provide that I'm aware of.
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@cmalpass commented on GitHub (Apr 6, 2024):
I had this same problem. I found that the underlying python package that provides this functionality had a bad build and it left out some crucial files (like the one mentioned). The latest build version includes them again.
You can reinstall / force install this package using the following command from the command line or docker exec:
pip install unstructured --force-reinstallHere are some more docs in case you want to do a full document support reinstall:
pip install "unstructured[all-docs]" --force-reinstallUnstructured Docs
@xcjs commented on GitHub (Apr 6, 2024):
@cmalpass Thanks for the workaround! Unfortunately it's not a permanent fix until the container is updated. My container orchestration will break it again every 24 hours.
@justinh-rahb commented on GitHub (Apr 6, 2024):
Thanks @cmalpass, we can just force-push a new docker build through to fix it then.
@tjbck commented on GitHub (Apr 6, 2024):
Merged dev branch to main, let me know if the issue persists!