fix: improve start_ui.sh compatibility for Linux environments#169
Open
derhally wants to merge 1 commit intoAutoForgeAI:masterfrom
Open
fix: improve start_ui.sh compatibility for Linux environments#169derhally wants to merge 1 commit intoAutoForgeAI:masterfrom
derhally wants to merge 1 commit intoAutoForgeAI:masterfrom
Conversation
Fixes AutoForgeAI#168 This commit addresses several compatibility issues in start_ui.sh: - Auto-detect package manager (uv > pip3 > pip) for broader compatibility - Use detected $PYTHON_CMD variable consistently throughout script - Add Python 3.11+ version requirement check - Try multiple Python commands in priority order - Use portable shebang (#!/usr/bin/env bash) - Add set -e for better error handling - Improve error messages and diagnostics - Use exec for final Python invocation The script now works correctly on systems with only pip3 or uv available, and properly detects and uses the correct Python version. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #168
Summary
This PR addresses several compatibility issues in
start_ui.shthat prevented it from working correctly in certain Linux environments.Changes
uv>pip3>pip$PYTHON_CMDvariable consistently throughout scriptpython3.13,python3.12,python3.11,python3,python#!/usr/bin/env bashset -efor better error handlingexecfor final Python invocationTesting
uvandpython3pip3oruvavailableFiles Changed
start_ui.sh