Repository navigation
fix(video): keep PyAV below 19 so faster-whisper can open audio - #4842
SyedFahad7 wants to merge 1 commit into
Conversation
faster-whisper 1.2.1 decodes with av.open(..., metadata_errors="ignore"). PyAV 19.0.0 removed that argument, and the video extra resolved av 19 on Python 3.12+, so transcription raised TypeError before any audio was read. PyAV 16.1.0 through 18.1.0 still accept the keyword. The compatible range is av>=11,<19, on the same interpreter marker as faster-whisper. [all] carries the same constraint. Relocking also records the package version as 0.9.97, matching pyproject.toml. Co-Authored-By: Grok <[email protected]> Co-authored-by: Syed Fahad <[email protected]>
|
Thanks for the pull request, @SyedFahad7. A maintainer will review it soon. Want to talk it through while it is in review? Come join us on our Discord server. For longer-form discussion there is also GitHub Discussions. A couple of things that speed up review: make sure the test suite passes on Python 3.10 and 3.13, and that the change keeps extraction deterministic. |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
There was a problem hiding this comment.
Graphify reviewed this change.
No issues found by static checks — no coupling regressions or blocking issues in the code graph. That is not the same as safe to merge: see what was not checked.
Not checked: tests were not run; no formal proof of the changed code.
Graphify review — findings
Caps PyAV below 19 (av>=11,<19, Python 3.11+) in both the video and all extras, so a fresh install no longer resolves av 19 alongside faster-whisper 1.2.1. av 19 dropped the metadata_errors argument that faster-whisper always passes to av.open, which made transcription fail with a TypeError. The cap can go once a faster-whisper release stops passing that argument. Adds two guards: a packaging test that checks the pin is present in both extras, and a transcribe test that calls the installed av.open with metadata_errors and fails on a TypeError (skipped when av isn't installed, e.g. Python 3.10). uv.lock is regenerated to drop the av 19.0.2 entry and its resolution markers, leaving av 18.1.0.
No blocking issues surfaced. 1 lower-confidence candidate did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 44 functions depend on the 44 functions this change touches.
Health — grade A; no new coupling hotspots.
Verification — 44 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 44 function(s) in the blast radius were not formally verified this run
Test selection
Test selection
469 of 469 test file(s) selected (100%) via static blast radius.
Escalated to a full run for safety — the selection is not trustworthy on its own (see below). CI should run the whole suite.
tests/pi.test.ts— full-run-safetytests/test_affected_cli.py— full-run-safetytests/test_affected_defines.py— full-run-safetytests/test_affected_member_seed.py— full-run-safetytests/test_affected_overrides.py— full-run-safetytests/test_affected_path_file_node.py— full-run-safetytests/test_agents_platform.py— full-run-safetytests/test_alias_folding.py— full-run-safetytests/test_analyze.py— full-run-safetytests/test_anthropic_custom_endpoint.py— full-run-safetytests/test_antigravity_install.py— full-run-safetytests/test_apm_fallback_version.py— full-run-safetytests/test_architecture_doc.py— full-run-safetytests/test_astro_extraction.py— full-run-safetytests/test_astro_import_ids.py— full-run-safetytests/test_atomic_canvas_export.py— full-run-safetytests/test_atomic_version_stamp.py— full-run-safetytests/test_atomic_writes.py— full-run-safetytests/test_backend_env_isolation.py— full-run-safetytests/test_backend_extras.py— impact, changed-test, full-run-safetytests/test_backend_opt_in.py— full-run-safetytests/test_benchmark.py— full-run-safetytests/test_benchmark_raw_graph.py— full-run-safetytests/test_benchmark_real_query.py— full-run-safetytests/test_binary_media_words.py— full-run-safetytests/test_blade_extractor.py— full-run-safetytests/test_build.py— full-run-safetytests/test_build_located_semantic_identity.py— full-run-safetytests/test_build_merge_dedup_scope.py— full-run-safetytests/test_build_merge_hyperedges_and_prune.py— full-run-safetytests/test_build_merge_shrink_guard.py— full-run-safetytests/test_builtin_global_type_refs.py— full-run-safetytests/test_c_include_resolution.py— full-run-safetytests/test_cache.py— full-run-safetytests/test_cache_long_paths.py— full-run-safetytests/test_cache_stale_import_target.py— full-run-safetytests/test_callflow_html.py— full-run-safetytests/test_cargo_introspect.py— full-run-safetytests/test_cargo_missing_manifest.py— full-run-safetytests/test_carried_hyperedge_remap.py— full-run-safetytests/test_case_sensitive_resolution.py— full-run-safetytests/test_charmap_encoding.py— full-run-safetytests/test_chunking.py— full-run-safetytests/test_cjs_module_extension.py— full-run-safetytests/test_claude_cli_backend.py— full-run-safetytests/test_claude_md.py— full-run-safetytests/test_cli_broken_pipe.py— full-run-safetytests/test_cli_export.py— full-run-safetytests/test_cli_help.py— full-run-safetytests/test_cloud_cta.py— full-run-safety- … and 419 more
non-code file(s) changed (
pyproject.toml,uv.lock) → running the full suite for safety (a code graph can't see config/fixture/data deps)
changed code file(s) with no mapped test (
pyproject.toml) — a coverage gap or a missing link — running the full suite rather than only the selected tests
Selection is safe under the controlled-regression assumption; always-run tests + a periodic full run are the backstops. Advisory — it never changes the check verdict.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
…for video + extractors The four @ayushcodes10 extractor fixes (#4902 R, #4900 elixir, #4899 dart, #4897 fortran) change per-file AST output and are AST-cached; they share the global 31->32 bump already landed via #4908/#4895. Extend the comment to credit them, and add the 0.9.100 changelog entries for #4842 and the four. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Landed in v0.9.100, now on PyPI (pip install graphifyy==0.9.100). The video extra caps PyAV below 19 so faster-whisper can open audio. Thanks for the fix, @SyedFahad7. |
faster-whisper 1.2.1 decodes with av.open(..., metadata_errors="ignore"). PyAV 19.0.0 removed that argument, and the video extra resolved av 19 on Python 3.12+, so transcription raised TypeError before any audio was read. PyAV 16.1.0 through 18.1.0 still accept the keyword. The compatible range is av>=11,<19, on the same interpreter marker as faster-whisper. [all] carries the same constraint. Relocking also records the package version as 0.9.97, matching pyproject.toml.
What does this PR do?
Type of change
Verification & Invariants
How was this tested?
Graphify-specific checklist
uv run python -m tools.skillgen --bless) when changing their source fragments.