From 54e097c0504a7a1d39d8d72721fcc07dec93006e Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Mon, 5 Jan 2026 13:30:30 -0500 Subject: [PATCH] Fix pyenv Python path resolution in setup.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use `pyenv which python` instead of hardcoded path to handle version mapping (3.12 -> 3.12.12). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- rpi/setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpi/setup.sh b/rpi/setup.sh index b1ccb29..fe70a5e 100755 --- a/rpi/setup.sh +++ b/rpi/setup.sh @@ -220,7 +220,9 @@ fi echo -e "${GREEN}[6/11]${NC} Creating Python virtual environment..." # Create venv with pyenv Python (not system Python) -PYENV_PYTHON="$HOME/.pyenv/versions/$PYTHON_VERSION/bin/python" +# Use pyenv which to get actual path (handles 3.12 -> 3.12.12 mapping) +PYENV_PYTHON=$(pyenv which python) +echo " Using Python: $PYENV_PYTHON" if [ ! -d "venv" ]; then "$PYENV_PYTHON" -m venv venv fi