Fix Python 3.13 compatibility and installation issues
- Replaced all cp311 wheels with cp313 wheels for Python 3.13 compatibility - Added new dependency wheels: aiohappyeyeballs, evdev, ffpyplayer - Rebuilt install.sh with virtual environment + offline wheel installation - Added --sudo-user/-U and --sudo-password/-W CLI arguments - Added run_sudo() helper to avoid password prompts during installation - Fixed 'Setting Up Player Directories' hang (cat->stdin) by using touch - Updated start.sh to activate virtual environment before running player - Updated run_player.sh to activate virtual environment - Removed old cp311 incompatible wheels - Added backup of previous install.sh as install.sh.bak
This commit is contained in:
@@ -218,19 +218,6 @@ rm -f "$STOP_FLAG_FILE"
|
||||
# Change to the project directory
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
# Check if virtual environment exists
|
||||
if [ -d ".venv" ]; then
|
||||
log_message "✓ Virtual environment found"
|
||||
source .venv/bin/activate
|
||||
else
|
||||
log_message "⚠️ Creating virtual environment..."
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
log_message "📦 Installing dependencies..."
|
||||
pip3 install -r requirements.txt
|
||||
log_message "✓ Virtual environment ready"
|
||||
fi
|
||||
|
||||
# Check if configuration exists
|
||||
if [ ! -f "config/app_config.json" ]; then
|
||||
log_message "⚠️ WARNING: Configuration file not found!"
|
||||
@@ -253,7 +240,6 @@ while true; do
|
||||
# Start the player
|
||||
cd "$SCRIPT_DIR/src"
|
||||
python3 main.py &
|
||||
PLAYER_PID=$!
|
||||
|
||||
log_message "Player PID: $PLAYER_PID"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user