mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-04 23:37:31 +00:00
[PR #3387] [CLOSED] fix: treat torchaudio as optional in PyTorch recovery #3254
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#3254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/ComfyUI-Manager/pull/3387
Author: @0nikod
Created: 10/17/2026
Status: ❌ Closed
Base:
main← Head:fix/optional-torchaudio-checks📝 Commits (1)
337f2d1fix: treat torchaudio as optional in PyTorch recovery📊 Changes
1 file changed (+2 additions, -3 deletions)
View changed files
📝
glob/manager_util.py(+2 -3)📄 Description
Summary
Remove the mandatory torchaudio assumption from PyTorch recovery checks. Environments with torch and torchvision installed no longer report
PyTorch is not installedsolely because torchaudio is absent.Background
ComfyUI removed its mandatory torchaudio dependency in https://github.com/Comfy-Org/ComfyUI/pull/16457. Manager still required torchaudio in its initial package inventory and compared its version when deciding whether to restore PyTorch.
Changes
Reproduction
With unchanged
torch==2.7.0+cu128andtorchvision==0.22.0+cu128installed but no torchaudio, Manager previously logged:This environment now passes the recovery check without a PyTorch error or rollback.
Testing
uv run --no-project --with aiohttp --with ruff pythonand mocked inventories, logging, subprocess calls, and rollback. All passed: unchanged environments with and without audio; missing torch or torchvision; torch or torchvision version changes; and torchaudio addition, removal, and version changes. No subprocess calls were executed.uv run --no-project --with aiohttp --with ruff ruff check --no-cache .: passed.git diff --checkand staged diff check: passed.Compatibility
Existing torch and torchvision validation and recovery behavior remain unchanged. This patch only adjusts recovery triggers: if a required-package change triggers rollback, the existing installation commands can still install torchaudio. No runtime dependencies or snapshot formats change. No real PyTorch installation or GPU execution was performed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.