mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-12 00:43:31 -05:00
[PR #13346] [MERGED] Fix: Use dynamic Python command to run uvicorn and support pyenv setups. #62014
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13346
Author: @dh4340
Created: 4/30/2025
Status: ✅ Merged
Merged: 5/7/2025
Merged by: @tjbck
Base:
dev← Head:patch-1📝 Commits (1)
8f31b6dFix: Use dynamic Python command to run uvicorn and support pyenv setups.📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
backend/start.sh(+3 -1)📄 Description
Updated the uvicorn startup command to dynamically detect and use either 'python3' or 'python', ensuring compatibility across different environments and pyenv setups. This avoids issues where only one of the commands is available.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Description
uvicornstartup command to dynamically select the appropriate Python interpreter (python3orpython) based on availability. This improves environment compatibility, especially in systems usingpyenvor where only one of the commands is present.Added
command -v python3 || command -v python.Changed
uvicornexecution to be launched via the detected Python interpreter instead of relying on a system-wideuvicornbinary.Deprecated
Removed
Fixed
uvicornis not installed globally but is available as a Python module.Security
Breaking Changes
Additional Information
uvicornexecutables in virtual environments or custom Python installations.Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.