mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[GH-ISSUE #17594] issue: Dragging .xlsx file into open-webui triggers punkt_tab not found error #33867
Reference in New Issue
Block a user
Originally created by @peuportier on GitHub (Sep 19, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17594
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.6.30
Ollama Version (if applicable)
0.11.11
Operating System
macOS 15.6.1 (24G90)
Browser (if applicable)
18.6 (20621.3.11.11.3)
Confirmation
README.md.Expected Behavior
The .xlsx file should be processed correctly.
No manual NLTK downloads should be required.
Actual Behavior
When I drag an .xlsx file into open-webui, the application fails with an NLTK resource error:
Steps to Reproduce
Run open-webui.
Drag & drop an .xlsx file into the interface.
The app crashes with the above error.
Logs & Screenshots
2025-09-19 17:03:20.851 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58297 - "POST /api/v1/retrieval/config/update HTTP/1.1" 200
2025-09-19 17:03:20.861 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58297 - "GET /api/config HTTP/1.1" 200
2025-09-19 17:03:23.853 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58297 - "GET /ollama/api/version HTTP/1.1" 200
2025-09-19 17:03:23.903 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58297 - "GET /api/v1/tools/ HTTP/1.1" 200
2025-09-19 17:03:23.905 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58304 - "GET /api/v1/users/user/settings HTTP/1.1" 200
2025-09-19 17:03:26.579 | INFO | open_webui.routers.files:upload_file_handler:164 - file.content_type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
2025-09-19 17:03:26.586 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58297 - "POST /api/v1/files/ HTTP/1.1" 200
2025-09-19 17:03:26.606 | ERROR | open_webui.routers.retrieval:process_file:1604 -
Resource punkt_tab not found.
Please use the NLTK Downloader to obtain the resource:
For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt_tab/english/
Searched in:
- '/Users/peuportier/nltk_data'
- '/Users/peuportier/Documents/hippo/nltk_data'
- '/Users/peuportier/Documents/hippo/share/nltk_data'
- '/Users/peuportier/Documents/hippo/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x100be1260>
└ <WorkerThread(AnyIO worker thread, started 15066017792)>
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
│ └ <function WorkerThread.run at 0x31a91d8a0>
└ <WorkerThread(AnyIO worker thread, started 15066017792)>
File "/Users/peuportier/Documents/hippo/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
│ │ │ └ ()
│ │ └ functools.partial(<function process_uploaded_file at 0x15d1ca700>, <starlette.requests.Request object at 0x319a8c890>, Upload...
│ └ <method 'run' of '_contextvars.Context' objects>
└ <_contextvars.Context object at 0x3198a3f00>
File "/Users/peuportier/Documents/hippo/lib/python3.11/site-packages/open_webui/routers/files.py", line 117, in process_uploaded_file
process_file(request, ProcessFileForm(file_id=file_item.id), user=user)
│ │ │ │ │ └ UserModel(id='f1b5a9e6-8060-47fd-bf67-1b11fa6866de', name='Peuportier Aurélien', email='peuportier@hippo.ai', username=None, ...
│ │ │ │ └ 'cd6cccbc-131b-477b-818d-28f8fc08547c'
│ │ │ └ FileModel(id='cd6cccbc-131b-477b-818d-28f8fc08547c', user_id='f1b5a9e6-8060-47fd-bf67-1b11fa6866de', hash=None, filename='FCS...
│ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
│ └ <starlette.requests.Request object at 0x319a8c890>
└ <function process_file at 0x15f297420>
LookupError:
Resource punkt_tab not found.
Please use the NLTK Downloader to obtain the resource:
For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt_tab/english/
Searched in:
- '/Users/peuportier/nltk_data'
- '/Users/peuportier/Documents/hippo/nltk_data'
- '/Users/peuportier/Documents/hippo/share/nltk_data'
- '/Users/peuportier/Documents/hippo/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
2025-09-19 17:03:26.608 | ERROR | open_webui.routers.files:process_uploaded_file:124 - Error processing file: cd6cccbc-131b-477b-818d-28f8fc08547c
2025-09-19 17:03:26.610 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58304 - "GET /api/v1/files/cd6cccbc-131b-477b-818d-28f8fc08547c/process/status?stream=true HTTP/1.1" 200
2025-09-19 17:03:29.980 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58297 - "GET /api/v1/users/user/settings HTTP/1.1" 200
2025-09-19 17:03:57.866 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:58339 - "GET /_app/version.json HTTP/1.1" 304
Additional Information
No response
@tjbck commented on GitHub (Sep 23, 2025):
Unable to reproduce with the following:
file_example_XLSX_10.xlsx