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:
@@ -1 +0,0 @@
|
|||||||
1782752485.750587
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
User requested exit via password
|
||||||
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
#\!/bin/bash
|
||||||
|
SCRIPT_DIR="/home/pi/kiwy-signage"
|
||||||
|
LOG_FILE="/home/pi/kiwy-signage/logs/player-background.log"
|
||||||
|
mkdir -p "."
|
||||||
|
echo "[2026-07-17 10:18:24] Starting player in background..." >> ""
|
||||||
|
cd "/home/pi/kiwy-signage" || exit 1
|
||||||
|
nohup bash start.sh >> "" 2>&1 &
|
||||||
|
PLAYER_PID=$\!
|
||||||
|
echo "[2026-07-17 10:18:24] Player started with PID: $PLAYER_PID" >> ""
|
||||||
|
echo "Player started in background (PID: $PLAYER_PID)"
|
||||||
|
echo "Logs: $LOG_FILE"
|
||||||
@@ -1,6 +1,3 @@
|
|||||||
#!/bin/bash
|
#\!/bin/bash
|
||||||
# Wait for desktop environment to be ready
|
|
||||||
sleep 15
|
sleep 15
|
||||||
|
cd /home/pi/kiwy-signage && bash start.sh
|
||||||
# Start the player
|
|
||||||
cd "/home/pi/Desktop/Kiwy-Signage" && bash start.sh
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"server_ip": "192.168.0.159",
|
"server_ip": "192.168.0.152",
|
||||||
"port": "8080",
|
"port": "80",
|
||||||
"screen_name": "rpi-Receptie",
|
"screen_name": "rasppberry",
|
||||||
"quickconnect_key": "8887779",
|
"quickconnect_key": "8887779",
|
||||||
"orientation": "Landscape",
|
"orientation": "Landscape",
|
||||||
"touch": "True",
|
"touch": "True",
|
||||||
|
|||||||
Regular → Executable
+409
-877
File diff suppressed because it is too large
Load Diff
Executable
+1056
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Start Kivy Signage Player
|
# Start Kivy Signage Player
|
||||||
cd "$(dirname "$0")" && source .venv/bin/activate
|
|
||||||
cd "$(dirname "$0")/src"
|
cd "$(dirname "$0")/src"
|
||||||
python3 main.py
|
python3 main.py
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"hostname": "rpi-Receptie",
|
|
||||||
"auth_code": "BrJrGzX_IT9oP_Lfke8Qgo4sDjMc49T1EhSnWmKKpDM",
|
|
||||||
"player_id": 1,
|
|
||||||
"player_name": "Receptie TV",
|
|
||||||
"playlist_id": 1,
|
|
||||||
"orientation": "Landscape",
|
|
||||||
"authenticated": true,
|
|
||||||
"server_url": "http://192.168.0.159:8080"
|
|
||||||
}
|
|
||||||
@@ -218,19 +218,6 @@ rm -f "$STOP_FLAG_FILE"
|
|||||||
# Change to the project directory
|
# Change to the project directory
|
||||||
cd "$SCRIPT_DIR"
|
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
|
# Check if configuration exists
|
||||||
if [ ! -f "config/app_config.json" ]; then
|
if [ ! -f "config/app_config.json" ]; then
|
||||||
log_message "⚠️ WARNING: Configuration file not found!"
|
log_message "⚠️ WARNING: Configuration file not found!"
|
||||||
@@ -253,7 +240,6 @@ while true; do
|
|||||||
# Start the player
|
# Start the player
|
||||||
cd "$SCRIPT_DIR/src"
|
cd "$SCRIPT_DIR/src"
|
||||||
python3 main.py &
|
python3 main.py &
|
||||||
PLAYER_PID=$!
|
|
||||||
|
|
||||||
log_message "Player PID: $PLAYER_PID"
|
log_message "Player PID: $PLAYER_PID"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user