From 8ea7e8928b8cfa85aa461920c2faf7050177db8d Mon Sep 17 00:00:00 2001 From: type-two Date: Fri, 17 Jul 2026 18:42:43 +1000 Subject: [PATCH] stt/wan run.py: prepend homebrew to PATH (job env can't find ffmpeg) Co-Authored-By: Claude Fable 5 --- server/operators/stt_local/run.py | 4 ++++ server/operators/wan_video/run.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/server/operators/stt_local/run.py b/server/operators/stt_local/run.py index e630bd8..b51ed9e 100644 --- a/server/operators/stt_local/run.py +++ b/server/operators/stt_local/run.py @@ -1,9 +1,13 @@ import argparse import json +import os import sys import time from pathlib import Path +# job env has a minimal PATH; whisper shells out to ffmpeg +os.environ["PATH"] = "/opt/homebrew/bin:/usr/local/bin:" + os.environ.get("PATH", "") + ap = argparse.ArgumentParser() ap.add_argument("--input", action="append", default=[]) ap.add_argument("--outdir", required=True) diff --git a/server/operators/wan_video/run.py b/server/operators/wan_video/run.py index 104d3dd..332c041 100644 --- a/server/operators/wan_video/run.py +++ b/server/operators/wan_video/run.py @@ -4,6 +4,7 @@ cached in RAM between jobs). Frames come back as PNGs; ffmpeg muxes the MP4.""" import argparse import json import mimetypes +import os import random import subprocess import sys @@ -13,6 +14,9 @@ import urllib.request import uuid from pathlib import Path +# job env has a minimal PATH; we shell out to ffmpeg for the mux +os.environ["PATH"] = "/opt/homebrew/bin:/usr/local/bin:" + os.environ.get("PATH", "") + ROOT = Path(__file__).resolve().parents[3] COMFY = ROOT / "vendor" / "comfyui" API = "http://127.0.0.1:8188"