mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-18 10:45:31 -04:00
fix(macos): use venv Python for pip install and uvicorn launch
On PEP 668 systems (newer Homebrew Python), pip install outside a venv is rejected. The script creates a venv but then called the system $PY for pip and uvicorn. Switch to ./venv/bin/python for both. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -118,9 +118,9 @@ if [ ! -d venv ]; then
|
||||
"$PY" -m venv venv
|
||||
fi
|
||||
echo "▶ Installing Python packages (first run downloads a few — can take a few minutes)…"
|
||||
"$PY" -m pip install --quiet --upgrade pip
|
||||
./venv/bin/python -m pip install --quiet --upgrade pip
|
||||
# Not --quiet: this is the slow step, so show progress (and any real errors).
|
||||
"$PY" -m pip install -r requirements.txt
|
||||
./venv/bin/python -m pip install -r requirements.txt
|
||||
|
||||
# 4. First-run setup: creates data dirs and prints an initial admin password
|
||||
# the first time (idempotent — does nothing if already set up). Suppress its
|
||||
@@ -179,4 +179,4 @@ if [ -n "$TAILSCALE_URL" ]; then
|
||||
fi
|
||||
echo " (this takes a few seconds; press Ctrl+C here to stop)"
|
||||
echo
|
||||
"$PY" -m uvicorn app:app --host "$HOST" --port "$PORT"
|
||||
./venv/bin/python -m uvicorn app:app --host "$HOST" --port "$PORT"
|
||||
|
||||
Reference in New Issue
Block a user