Release 1.2.0: wxPython migration + vacation exclusion
This commit is contained in:
23
start_gui.sh
23
start_gui.sh
@@ -31,8 +31,8 @@ fi
|
||||
# Nutze Python aus venv
|
||||
PYTHON_VENV=".venv/bin/python"
|
||||
|
||||
# Überprüfe, ob Abhängigkeiten installiert sind
|
||||
if ! $PYTHON_VENV -c "import pdfplumber" 2>/dev/null; then
|
||||
# Überprüfe, ob Kern-Abhängigkeiten installiert sind
|
||||
if ! $PYTHON_VENV -c "import pdfplumber, icalendar, pypdf2, pytz, packaging" 2>/dev/null; then
|
||||
echo "📚 Installiere Abhängigkeiten..."
|
||||
|
||||
if $PYTHON_VENV -m pip install -q pdfplumber icalendar pypdf2 pytz packaging 2>/dev/null; then
|
||||
@@ -53,16 +53,25 @@ if ! $PYTHON_VENV -c "import pdfplumber" 2>/dev/null; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Versuche tkinterdnd2 zu installieren (optional für Drag & Drop)
|
||||
if ! $PYTHON_VENV -c "import tkinterdnd2" 2>/dev/null; then
|
||||
echo "💡 Installiere tkinterdnd2 für Drag & Drop (optional)..."
|
||||
$PYTHON_VENV -m pip install -q tkinterdnd2 2>/dev/null && echo "✓ Drag & Drop aktiviert" || echo "ℹ️ Drag & Drop nicht verfügbar (kein Problem)"
|
||||
# Überprüfe, ob wxPython installiert ist
|
||||
if ! $PYTHON_VENV -c "import wx" 2>/dev/null; then
|
||||
echo "📚 Installiere wxPython..."
|
||||
if $PYTHON_VENV -m pip install wxPython; then
|
||||
echo "✓ wxPython installiert"
|
||||
else
|
||||
echo "❌ wxPython konnte nicht installiert werden"
|
||||
echo "💡 Auf Linux fehlen ggf. Build-Abhängigkeiten. Unter Debian/Ubuntu/Mint oft hilfreich:"
|
||||
echo " sudo apt-get update"
|
||||
echo " sudo apt-get install -y build-essential python3-dev libgtk-3-dev libglib2.0-dev libjpeg-dev libtiff-dev libpng-dev"
|
||||
echo " rm -rf .venv && ./start_gui.sh"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Starte die GUI
|
||||
echo "🎨 Starte GUI..."
|
||||
if [ -f "$PYTHON_VENV" ]; then
|
||||
$PYTHON_VENV gui.py
|
||||
$PYTHON_VENV gui_wxpython.py
|
||||
else
|
||||
echo "❌ Fehler: Python-Umgebung ist beschädigt"
|
||||
echo "📁 Bitte löschen Sie das .venv Verzeichnis und versuchen Sie erneut:"
|
||||
|
||||
Reference in New Issue
Block a user