Skip to content

Pin torchaudio below 2.9 and document global install from source - #38

Merged
paberr merged 3 commits into
mainfrom
fix/torchaudio-pin
Jul 15, 2026
Merged

Pin torchaudio below 2.9 and document global install from source#38
paberr merged 3 commits into
mainfrom
fix/torchaudio-pin

Conversation

@paberr

@paberr paberr commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pin torchaudio>=2.8,<2.9: pyannote-audio still calls torchaudio.list_audio_backends(), which was removed in torchaudio 2.9, so every fresh install (e.g. uvx ownscribe) crashes during transcription. The cap is temporary until Is torchaudio 2.9 supported? pyannote/pyannote-audio#1974 is fixed upstream.
  • Cap requires-python to <3.14: torchaudio 2.8 has no Python 3.14 wheels, so without the cap uvx picks 3.14 and resolution fails. Matches the existing classifiers (3.12/3.13 only).
  • README: add the missing uv tool install --editable . step to the "From source" section so the ownscribe command lands on PATH.
  • README: point brew users to brew install uv && uv tool install 'ownscribe[all]' since a brew formula isn't practical for this dependency stack.

The uv.lock churn is only dropped Python 3.14 marker branches — still the same 144 packages, torchaudio stays at 2.8.0.

Fixes #34
Fixes #26
Refs #33

Test plan

  • uv lock resolves cleanly, torchaudio pinned at 2.8.0
  • uv run pytest: 243 passed

🤖 Generated with Claude Code

paberr added 3 commits July 15, 2026 17:07
pyannote-audio still calls torchaudio.list_audio_backends(), which was
removed in torchaudio 2.9, so fresh installs crash during transcription
with AttributeError. Cap torchaudio to <2.9 until this is fixed upstream
(pyannote/pyannote-audio#1974).

Also cap requires-python to <3.14: torchaudio 2.8 has no Python 3.14
wheels, so uvx would otherwise pick 3.14 and fail to resolve. Matches
the classifiers, which already only list 3.12 and 3.13.

Fixes #34
After 'uv sync' the binary only exists inside .venv/bin and is not on
PATH. Document 'uv tool install --editable .' as the follow-up step.

Fixes #26
A brew formula isn't practical for the PyTorch/llama-cpp-python
dependency stack, so document the uv-based alternative instead.

Refs #33
@paberr
paberr merged commit 28b1e6d into main Jul 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant