Skip to content

fix: resolve Windows venv interpreters in setup-image-video.sh (#4200) - #4287

Merged
atomantic merged 2 commits into
mainfrom
claim/issue-4200
Aug 15, 2026
Merged

fix: resolve Windows venv interpreters in setup-image-video.sh (#4200)#4287
atomantic merged 2 commits into
mainfrom
claim/issue-4200

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

  • AudioLDM2 and ACE-Step installers hardcoded the POSIX venv interpreter path (bin/python3), so on Windows — where a venv created via Git Bash puts the interpreter at Scripts/python.exe — the pip install steps failed against a nonexistent path and aborted the whole installer under set -euo pipefail.
  • Adds a shared venv_python() helper (resolves the interpreter for either layout) and a venv_exists() companion (checks either layout is present), and applies both consistently across all 6 venv call sites in the script (MiniMax H3 CUDA, AudioLDM2, ACE-Step, MiniMax Music 3, MuScriptor, FLUX.2) — replacing three different ad-hoc probing idioms that had grown up independently, two of which never checked for the Windows layout at all.
  • Closes AudioLDM2 and ACE-Step installers fail on Windows: they invoke the venv's bin/python3, which Windows venvs don't have #4200.

Test plan

  • bash -n scripts/setup-image-video.sh — syntax check passes.
  • cd server && NODE_ENV=test npx vitest run ../scripts/setup-image-video.test.js — 13/13 tests pass, covering both helpers directly (POSIX/Windows/missing-venv resolution) plus a structural per-site assertion and a negative regression guard that fails if a future call site bypasses the shared helpers.
  • Full server test suite run (unrelated pre-existing timeout flakes under load, none touching this change).

The 6 pre-creation guards each re-encoded the same POSIX/Windows layout
probe that venv_python() already owns. Factor it into venv_exists() so
future layout changes are a one-place edit instead of seven, and extend
the test to cover the new helper plus a guard against future call sites
bypassing it.
@atomantic
atomantic merged commit 7b00d19 into main Aug 15, 2026
1 check passed
@atomantic
atomantic deleted the claim/issue-4200 branch August 15, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AudioLDM2 and ACE-Step installers fail on Windows: they invoke the venv's bin/python3, which Windows venvs don't have

1 participant