Skip to content

Write HTML. Render video. Built for agents.

fix(hyperframes-media): install MusicGen deps via python3 -m pip, not bare pip (#1894)

Miguel Ángel942080fa8e8e
diff --git a/skills-manifest.json b/skills-manifest.json
index 760a1bb02a..fbe6589d1a 100644
--- a/skills-manifest.json
+++ b/skills-manifest.json
@@ -42,7 +42,7 @@
"files": 3
},
"hyperframes-media": {
- "hash": "b753e640f35e2d33",
+ "hash": "e7d7ed17b27ffa26",
"files": 46
},
"hyperframes-registry": {
diff --git a/skills/hyperframes-media/scripts/lib/bgm.mjs b/skills/hyperframes-media/scripts/lib/bgm.mjs
index 935c03cf60..d4db76e880 100644
--- a/skills/hyperframes-media/scripts/lib/bgm.mjs
+++ b/skills/hyperframes-media/scripts/lib/bgm.mjs
@@ -30,8 +30,15 @@ function pyOk(probe) {
const { cmd, args } = pythonInvocation(["-c", probe]);
return spawnSync(cmd, args, { stdio: "ignore" }).status === 0;
}
+// `python -m pip`, not a bare `pip` binary: a Homebrew/system Python often
+// exposes only `python3`/`pip3` on PATH, so a plain `pip` spawn silently
+// no-ops (ENOENT) and the documented "auto-installed on demand" path never
+// actually installs. `-m pip` also guarantees the packages land in the SAME
+// interpreter pyOk() probes — a bare `pip`/`pip3` could resolve to a
+// different Python installation than `python3` if more than one is on PATH.
function pipInstall(deps) {
- return spawnSync("pip", ["install", "-q", ...deps], { stdio: "ignore" }).status === 0;
+ const { cmd, args } = pythonInvocation(["-m", "pip", "install", "-q", ...deps]);
+ return spawnSync(cmd, args, { stdio: "ignore" }).status === 0;
}
// ── retrieval (HeyGen music library) ──────────────────────────────────────────