Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
Setup: report the tool's own reason when the isolated Python install fails
Bowen Xue8419791d75ae
diff --git a/freevideo.ps1 b/freevideo.ps1index 5a3e24a..468d114 100644--- a/freevideo.ps1+++ b/freevideo.ps1@@ -137,10 +137,14 @@ try {if ($pythonExit -eq 0) { $installed = $true; break }if (-not (Test-FreeVideoSlowDownloadFailure $pythonOutput)) { $allNetworkFailures = $false }Write-Host "Python install source $attempt returned exit code $pythonExit. Details retained in $bootstrapLog"+ $pythonReason = Get-FreeVideoFailureReason $pythonOutput+ if ($pythonReason) { Write-Host "uv reported: $pythonReason" }}}}- if (-not $installed) { throw "Python installation failed (uv exit $pythonExit). Check your network or connection mode in Downloads. See $bootstrapLog and retry." }+ $pythonDetail = ''+ if ($pythonReason) { $pythonDetail = " uv reported: $pythonReason." }+ if (-not $installed) { throw "Python installation failed (uv exit $pythonExit).$pythonDetail Check your network or connection mode in Downloads. See $bootstrapLog and retry." }$freevideoPython = (& $uv python find --managed-python $versions.python | Select-Object -Last 1).Trim()if ($LASTEXITCODE -ne 0 -or -not (Test-Path -LiteralPath $freevideoPython)) { throw 'Managed Python could not be located.' }} finally {diff --git a/freevideo_engine/failure_details.py b/freevideo_engine/failure_details.pyindex a62984c..0e41438 100644--- a/freevideo_engine/failure_details.py+++ b/freevideo_engine/failure_details.py@@ -860,7 +860,7 @@ def _launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_relines = [line.strip() for line in text.splitlines() if line.strip()]causes = [line for line in lines if re.match(r'^(?:[\w.]+(?:Error|Exception):|ERROR[: ]|Failed step:|Setup failed:)', line)]detail = causes[-1] if causes else next((line for line in reversed(lines)- if not line.startswith(('File ', 'Traceback', '^', 'All files retained.', 'Rerun the same setup command'))), '')+ if not line.startswith(('File ', 'Traceback', '^', 'All files retained.', 'Existing files are retained.', 'Rerun the same setup command'))), '')detail = re.sub(r'^(?:ValueError|RuntimeError|OSError):\s*', '', detail)from .launcher_copy import lan_errortitle = '暂时未能完成' if zh else 'Couldn’t complete this step'diff --git a/freevideo_engine/windows_bootstrap.ps1 b/freevideo_engine/windows_bootstrap.ps1index b7cc3e9..b6f9acb 100644--- a/freevideo_engine/windows_bootstrap.ps1+++ b/freevideo_engine/windows_bootstrap.ps1@@ -64,6 +64,16 @@ function Invoke-FreeVideoBootstrapCommand {}}+function Get-FreeVideoFailureReason {+ param([string]$Output)+ # The last two lines of a child's output on one short line, so the console and+ # the setup report carry what the tool said, not only its exit code.+ $lines = @($Output -split "`r?`n" | ForEach-Object { $_.Trim() } | Where-Object { $_ } | Select-Object -Last 2)+ $reason = $lines -join ' | '+ if ($reason.Length -gt 400) { $reason = $reason.Substring(0, 400) }+ return $reason+}+function Test-FreeVideoSlowDownloadFailure {param([string]$Detail)# Keep the patient-round gate aligned with network.slow_download_failure.