mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-24 14:23:59 -05:00
[PR #13321] [CLOSED] fix: ensure uvicorn uses correct Python environment (venv/pyenv) by invoking via python #23154
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13321
Author: @dh4340
Created: 4/29/2025
Status: ❌ Closed
Base:
main← 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
Description:
This PR updates the application startup command to invoke
uvicornvia the appropriate Python interpreter instead of callinguvicorndirectly. This ensures the correct virtual environment (venv) orpyenv-managed Python version is used, avoiding accidental fallback to the system Python.Changes:
Motivation:
uvicornmay use the system Python, ignoring the active virtual environment orpyenvconfiguration.uvicornviapython -mensures it is invoked using the correct Python context.Impact:
venv,pyenv).Testing:
pyenvenvironmentsvenv)python3orpython🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.