install.sh: 6 Verbesserungen + 9 Pitfall-Prüfungen (Don)
1. .env-Template: ARCHIVAR_EMBEDDING_BASE_URL ergänzt 2. Ollama Service-Start + Modell-Pull gesichert 3. numpy/faiss Import-Test nach Installation 4. sys.path.insert für archivar-Imports in __init__.py 5. LLM_CONFIG Klarstellung: LLM=Cloud, Embeddings=lokal 6. loginctl enable-linger Check (KRITISCH — ohne Linger Crash-Loop) Pitfalls P1-P9 dokumentiert und geprüft in install.sh Idempotent — mehrfach ausführbar ohne Fehler
This commit is contained in:
@@ -8,6 +8,12 @@ and REST API (outgoing replies).
|
||||
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
# P3 Fix: Ensure archivar submodule is importable as top-level module.
|
||||
# Without this, absolute imports like 'from archivar.config import ...'
|
||||
# fail when the plugin is loaded from site-packages/plugins/rocketchat/.
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user