From 664ed04cd9c8a7a0a4afec046d2c608bdee98dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 23 Nov 2025 06:13:17 +0100 Subject: [PATCH] feat: add virtual environment support for Python services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update supervisord.conf to use venv Python executables for orchestrator and webdav-sync - Add virtual environment setup to arty.yml setup/python-env script - Isolate dependencies for webdav-sync, model-orchestrator, and vllm services - Fixes dependency conflicts between services (pydantic versions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- arty.yml | 25 ++++++++++++++++++++----- supervisord.conf | 4 ++-- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/arty.yml b/arty.yml index 1eb7fe9..c24e3a1 100644 --- a/arty.yml +++ b/arty.yml @@ -188,16 +188,31 @@ scripts: echo "⚠ Warning: $AI_ROOT/core/requirements.txt not found" fi - # Install vLLM dependencies - echo "Installing vLLM dependencies..." + # Create virtual environments for services with isolated dependencies + echo "" + echo "Creating virtual environments for services..." + + # WebDAV sync service + if [ -f "webdav-sync/requirements.txt" ]; then + echo " - webdav-sync..." + cd webdav-sync && python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && deactivate && cd .. + fi + + # Model orchestrator service + if [ -f "model-orchestrator/requirements.txt" ]; then + echo " - model-orchestrator..." + cd model-orchestrator && python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && deactivate && cd .. + fi + + # vLLM service (may require more memory) if [ -f "vllm/requirements.txt" ]; then - sudo pip3 install -r vllm/requirements.txt - else - echo "⚠ Warning: vllm/requirements.txt not found" + echo " - vllm (this may take a while)..." + cd vllm && python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && deactivate && cd .. fi echo "" echo "✓ Python environment configured successfully" + echo " Virtual environments created for: webdav-sync, model-orchestrator, vllm" setup/comfyui-base: | echo "=========================================" diff --git a/supervisord.conf b/supervisord.conf index dd899e4..9110784 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -41,7 +41,7 @@ stopwaitsecs=30 # AI Model Orchestrator [program:orchestrator] -command=python3 model-orchestrator/orchestrator_subprocess.py +command=model-orchestrator/venv/bin/python model-orchestrator/orchestrator_subprocess.py directory=. autostart=false autorestart=true @@ -58,7 +58,7 @@ stopwaitsecs=30 # ComfyUI WebDAV Sync Service [program:webdav-sync] -command=python3 webdav_sync.py +command=webdav-sync/venv/bin/python webdav_sync.py directory=webdav-sync autostart=true autorestart=true