Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.
Python ai-filmmakingai-videoai-video-generatorapple-siliconhailuoimage-to-videolip-synclocal-ailora-trainingltx-2ltx-2-5ltx-videomacosminimax-h3mlxmusic-generationoffline-aipinokiotext-to-videovideo-generation
fix(stats): quiet + cosmetic dashboard-fetch failures (#43)
mrbizarro485ff4910102
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.pyindex 92f6d04..da8eef0 100644--- a/mlx_ltx_panel.py+++ b/mlx_ltx_panel.py@@ -2445,13 +2445,14 @@ def _resolve_github_token() -> str:_STATS_WARNED_NO_TOKEN = False+_STATS_WARNED_FETCH_FAIL = Falsedef _run_stats_fetch_once() -> None:"""Spawn scripts/fetch_repo_stats.py as a subprocess. Output to thepanel's `push()` log so the user can see what happened. Idempotent —the fetcher itself replaces today's row on re-runs in the same UTC day."""- global _STATS_WARNED_NO_TOKEN+ global _STATS_WARNED_NO_TOKEN, _STATS_WARNED_FETCH_FAILif not STATS_FETCHER.is_file():return # repo install missing the script — fail silenttoken = _resolve_github_token()@@ -2473,9 +2474,22 @@ def _run_stats_fetch_once() -> None:capture_output=True, text=True, timeout=120, env=env,)if cp.returncode != 0:- push(f"stats: fetch failed (exit {cp.returncode}): "- f"{(cp.stderr or cp.stdout or '').strip().splitlines()[-1][:200]}")+ # The stats dashboard is a maintainer-only nicety; a fetch failure+ # (403 rate-limit/token-scope, network blip, etc.) has ZERO effect+ # on generation, models, or training. Warn once, cosmetically, so a+ # transient 403 doesn't spam the log or read as a real failure that+ # sends users to the bug tracker (issue #43).+ if not _STATS_WARNED_FETCH_FAIL:+ _detail = (cp.stderr or cp.stdout or "").strip().splitlines()+ _detail = _detail[-1][:160] if _detail else "unknown error"+ push(f"stats: dashboard refresh skipped ({_detail}). "+ "This only affects the maintainer stats panel — "+ "generation, models, and training are unaffected.")+ _STATS_WARNED_FETCH_FAIL = Truereturn+ # Success — clear the one-shot warning latch so a genuine future+ # failure can surface again.+ _STATS_WARNED_FETCH_FAIL = False# Last stdout line is the human-readable summary the fetcher prints# at exit. Forward to the panel log so /status surfaces it.last_line = ""@@ -2485,9 +2499,15 @@ def _run_stats_fetch_once() -> None:if last_line:push(f"stats: {last_line}")except subprocess.TimeoutExpired:- push("stats: fetch timed out after 120s (rate limit? network?)")+ if not _STATS_WARNED_FETCH_FAIL:+ push("stats: dashboard refresh timed out (harmless — maintainer "+ "stats panel only; generation is unaffected).")+ _STATS_WARNED_FETCH_FAIL = Trueexcept Exception as exc: # noqa: BLE001- push(f"stats: fetch raised {exc!r}")+ if not _STATS_WARNED_FETCH_FAIL:+ push(f"stats: dashboard refresh skipped ({exc!r}). Harmless — "+ "maintainer stats panel only; generation is unaffected.")+ _STATS_WARNED_FETCH_FAIL = Truedef stats_fetch_loop() -> None: