mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 07:24:59 -05:00
infra: Pypi package installs files outside the open_webui namespace in site-packages #1171
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 @motin on GitHub (Jun 7, 2024).
Bug Report
Description
Bug Summary:
Pypi package installs files outside the open_webui namespace in site-packages
Steps to Reproduce:
poetry init
poetry add open-webui
poetry install
Check
.venv/lib/python3.11/site-packages/Expected Behavior:
All files related to open webui are inside the open_webui folder.
Actual Behavior:
Only the frontend folder and a init.py file is inside the open_webui folder. The rest are installed in the root of site-packages, including a main.py file right at
.venv/lib/python3.11/site-packages/main.py. This may lead to import errors depending on which other dependencies are installed in the same venv.Environment
Open WebUI Version: 0.2.5
Operating System: Latest MacOS
Reproduction Details
Confirmation:
Logs and Screenshots
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
Poetry
Additional Information
The METADATA file of the open_webui package:
@tjbck commented on GitHub (Jun 7, 2024):
@tcztzy
@tcztzy commented on GitHub (Jun 8, 2024):
It needs refactoring all the python codes.
https://github.com/open-webui/open-webui/issues/1885#issuecomment-2095315233
@tjbck commented on GitHub (Sep 21, 2024):
Resolved