mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #23063] issue: Update openwebui -> now Error on start "bs4 module missing" [python 3.12] #19877
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @4lexRed on GitHub (Mar 26, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23063
Check Existing Issues
Installation Method
Other
Open WebUI Version
0.8.11
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Running
DATA_DIR=~/.open-webui /home/MYUSER/.local/bin/uvx --python 3.12 open-webui@latest servestarts the openwebui
Actual Behavior
I get an error messager saying
ModuleNotFoundError: No module named 'bs4'
referencing this file that requests the bs4 pacakge
/.cache/uv/archive-v0/sRH1ZqGL6AtKP5_1XHdtm/lib/python3.12/site-packages/open_web
│ ui/env.py:18 in
│
│ 15
│ 16
│ 17 import markdown
│ ❱ 18 from bs4 import BeautifulSoup
│ 19 from open_webui.constants import ERROR_MESSAGES
│ 20
Steps to Reproduce
I cleaned the UV cache.
Tried to start "the tool" with uv again
DATA_DIR=~/.open-webui /home/MYUSER/.local/bin/uvx --python 3.12 open-webui@latest serve-> still the same error message.
Then reinstalling the tool with
uv tool install --python 3.12 --force open-webui@latest(I had to force it, as open-webui was already installed)
shows that the bs4 (beautiful soup) is not integrated in the requirements of the openwebui-package.
Here is the alphabetical sorted list of packages starting with the letter B
Logs & Screenshots
Additional Information
Seems like when bs4 was integrated into the openwebui uv-package, someone forgot to update the required package list for python 3.12
The workaround to install bs4 with pip systemwide is not working, as my python is managed by the OS.
I might be able to force the system to install bs4 by passing the --break-system-packages flag, but I rather see the package list for the uv-package fixed.
@4lexRed commented on GitHub (Mar 26, 2026):
Tried to downgrade by
uv tool install --python 3.12 open-webui@0.8.10or
uv tool install --python 3.12 open-webui@0.8.9both commands gave me this error message:
Only with
uv tool uninstall open-webuiuv cache cleanuv tool install --python 3.12 open-webui@0.8.8I was able to get open-webui up and running again.
@Golotvinov commented on GitHub (Mar 26, 2026):
Can confirm I have the same problem when trying to start Open WebUI using uvx. Version 0.8.10 couldn't start because of a bad ddgs library version (?) and 0.8.11 doesn't start because of "bs4 module missing".
It's been almost 4 weeks since I was able to use OWUI ...
@Gabelloide commented on GitHub (Mar 26, 2026):
Same problem using uvx and python 3.11
@jvdneste commented on GitHub (Mar 26, 2026):
Same issue on ubuntu 24.04 in a Python 3.12.3 venv. I did
pip install open-webuifollowed byopen-webui serve@Classic298 commented on GitHub (Mar 26, 2026):
fixed in dev
1994d65306