[PR #23112] [CLOSED] fix: add beautifulsoup4 to pyproject.toml dependencies #42666

Closed
opened 2026-04-25 14:29:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/23112
Author: @yang1002378395-cmyk
Created: 3/26/2026
Status: Closed

Base: devHead: fix/add-beautifulsoup4-dependency


📝 Commits (1)

  • 14e94bf fix: add beautifulsoup4 to pyproject.toml dependencies

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 pyproject.toml (+1 -0)

📄 Description

Pull Request Checklist

  • Target branch: dev
  • Description: Fix missing dependency causing ModuleNotFoundError for uvx/pip installs
  • Changelog: Added below
  • Testing: Verified beautifulsoup4 is imported in codebase but missing from pyproject.toml

Changelog Entry

Description

  • Add beautifulsoup4 to pyproject.toml dependencies to fix ModuleNotFoundError for non-Docker installations

Fixed

  • ModuleNotFoundError: No module named 'bs4' when installing via uvx/pip (Issue #23063)

Root Cause Analysis

BeautifulSoup4 is imported in:

  • backend/open_webui/env.py
  • backend/open_webui/retrieval/web/utils.py

But was missing from pyproject.toml dependencies (only in backend/requirements.txt which is not used by uvx installs).

Test Plan

  1. Install open-webui via uvx: uvx open-webui@latest serve
  2. Before fix: ModuleNotFoundError: No module named 'bs4'
  3. After fix: Should start successfully

Fixes #23063


Contributor License Agreement


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/23112 **Author:** [@yang1002378395-cmyk](https://github.com/yang1002378395-cmyk) **Created:** 3/26/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/add-beautifulsoup4-dependency` --- ### 📝 Commits (1) - [`14e94bf`](https://github.com/open-webui/open-webui/commit/14e94bf4e7b5b68831eabfb7a735ff1ad825feb7) fix: add beautifulsoup4 to pyproject.toml dependencies ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `pyproject.toml` (+1 -0) </details> ### 📄 Description # Pull Request Checklist - [x] **Target branch:** dev - [x] **Description:** Fix missing dependency causing ModuleNotFoundError for uvx/pip installs - [x] **Changelog:** Added below - [x] **Testing:** Verified beautifulsoup4 is imported in codebase but missing from pyproject.toml # Changelog Entry ### Description - Add beautifulsoup4 to pyproject.toml dependencies to fix ModuleNotFoundError for non-Docker installations ### Fixed - ModuleNotFoundError: No module named 'bs4' when installing via uvx/pip (Issue #23063) ### Root Cause Analysis BeautifulSoup4 is imported in: - backend/open_webui/env.py - backend/open_webui/retrieval/web/utils.py But was missing from pyproject.toml dependencies (only in backend/requirements.txt which is not used by uvx installs). ### Test Plan 1. Install open-webui via uvx: `uvx open-webui@latest serve` 2. Before fix: ModuleNotFoundError: No module named 'bs4' 3. After fix: Should start successfully Fixes #23063 --- ### Contributor License Agreement - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 14:29:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#42666