From 7630e72dcb6f04d3f621c32b45d5de4046d169b4 Mon Sep 17 00:00:00 2001 From: Flag Date: Wed, 22 Apr 2026 18:18:10 +0000 Subject: [PATCH] =?UTF-8?q?api=20/view=20=C2=97=20utiliser=20worker=20ling?= =?UTF-8?q?bot=5Fpath=20au=20lieu=20de=20hardcode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le wrapper viser cd /home/floppyrj45/ai-video/lingbot-map quel que soit le worker. Sur .84 (user root) le path est /root/ai-video/lingbot-map, donc le cd echouait + venv absent + open3d pas importe = viser ne demarrait jamais. Utiliser worker[lingbot_path] qui est deja configure dans WORKERS. --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index de412b6..cb7d236 100644 --- a/app/main.py +++ b/app/main.py @@ -337,7 +337,7 @@ async def _launch_viewer(worker: dict, ply_path: str, port: int) -> None: f"#!/bin/bash\n" f"pkill -f 'viser_ply.py.*--port {port}' 2>/dev/null\n" f"sleep 1\n" - f"cd /home/floppyrj45/ai-video/lingbot-map\n" + f"cd {worker['lingbot_path']}\n" f"source .venv/bin/activate\n" f"exec python3 {VIEWER_SCRIPT_REMOTE} {ply_path!r} --port {port} --downsample 0\n" )