Skip to content

Commit b4e3f18

Browse files
committed
TEMP: diagnose imageio-ffmpeg on Blacksmith windows (to be dropped)
1 parent b36fb16 commit b4e3f18

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎.github/workflows/python-tests.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,24 @@ jobs:
158158
uv run --no-sync python -c "import cv2, mediapipe; print(cv2.__version__, mediapipe.__version__)"
159159
if ($LASTEXITCODE -ne 0) { throw 'cv2 or mediapipe still fails to import after preparing the runner' }
160160
161+
# TEMPORARY: diagnose why the bundled imageio-ffmpeg binary is rejected on Blacksmith Windows.
162+
- name: diagnose ffmpeg (temporary)
163+
if: ${{ runner.os == 'Windows' && (steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true) }}
164+
shell: pwsh
165+
continue-on-error: true
166+
run: |
167+
$dlls = 'ADVAPI32','AVICAP32','CRYPT32','GDI32','IMM32','IPHLPAPI','KERNEL32','OLEAUT32','SETUPAPI','SHELL32','SHLWAPI','USER32','VERSION','WINMM','WS2_32','bcrypt','msvcrt','ncrypt','ole32','MSVFW32'
168+
foreach ($name in $dlls) {
169+
if (Test-Path "$env:windir\System32\$name.dll") { Write-Output "$name.dll present" } else { Write-Output "$name.dll MISSING" }
170+
}
171+
$exe = Get-ChildItem .venv\Lib\site-packages\imageio_ffmpeg\binaries\*.exe | Select-Object -First 1
172+
Write-Output "ffmpeg exe: $($exe.FullName)"
173+
try { & $exe.FullName -version } catch { Write-Output "ffmpeg invocation threw: $_" }
174+
Write-Output "ffmpeg exit code: $LASTEXITCODE"
175+
Write-Output ('ffmpeg exit code (hex): 0x{0:X8}' -f $LASTEXITCODE)
176+
uv run --no-sync python -c "import imageio_ffmpeg; print(imageio_ffmpeg.get_ffmpeg_exe())"
177+
Write-Output "get_ffmpeg_exe exit code: $LASTEXITCODE"
178+
161179
- name: run pytest
162180
if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
163181
# `logical`, not `auto`: xdist's `auto` asks psutil for *physical* cores, which is half

0 commit comments

Comments
 (0)