The installation of requirements.txt went smoothly with no conflicts or errors, but there was an error message related to torchaudio when starting the web.
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
I hope the startup messages are normal and error-free.
### Actual Behavior
The installation of requirements.txt went smoothly with no conflicts or errors, but there was an error message related to torchaudio when starting the web.
### Steps to Reproduce
The newly configured ComfyUI startup is displaying error messages, but there are no environment conflicts.
### Debug Logs
```powershell
Here is log.
'''
Checkpoint files will always be loaded safely.
Total VRAM 11901 MB, total RAM 63604 MB
pytorch version: 2.8.0+cu129
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
Using pytorch attention
torchaudio missing, ACE model will be broken
torchaudio missing, ACE model will be broken
Python version: 3.12.11 | packaged by Anaconda, Inc. | (main, Jun 5 2025, 13:09:17) [GCC 11.2.0]
ComfyUI version: 0.3.56
ComfyUI frontend version: 1.25.11
[Prompt Server] web root: /home/shaoping/ComfyUI_portable/python_embeded/lib/python3.12/site-packages/comfyui_frontend_package/static
Traceback (most recent call last):
File "/home/shaoping/ComfyUI_portable/ComfyUI/nodes.py", line 2129, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/shaoping/ComfyUI_portable/ComfyUI/comfy_extras/nodes_audio.py", line 4, in
import torchaudio
File "/home/shaoping/ComfyUI_portable/python_embeded/lib/python3.12/site-packages/torchaudio/__init__.py", line 4, in
from . import _extension # noqa # usort: skip
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shaoping/ComfyUI_portable/python_embeded/lib/python3.12/site-packages/torchaudio/_extension/__init__.py", line 42, in
_check_cuda_version()
File "/home/shaoping/ComfyUI_portable/python_embeded/lib/python3.12/site-packages/torchaudio/_extension/utils.py", line 168, in _check_cuda_version
version = torchaudio.lib._torchaudio.cuda_version()
^^^^^^^^^^^^^^
AttributeError: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
Cannot import /home/shaoping/ComfyUI_portable/ComfyUI/comfy_extras/nodes_audio.py module for custom nodes: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
Traceback (most recent call last):
File "/home/shaoping/ComfyUI_portable/ComfyUI/nodes.py", line 2129, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/shaoping/ComfyUI_portable/ComfyUI/comfy_extras/nodes_audio_encoder.py", line 2, in
import comfy.audio_encoders.audio_encoders
File "/home/shaoping/ComfyUI_portable/ComfyUI/comfy/audio_encoders/audio_encoders.py", line 6, in
import torchaudio
File "/home/shaoping/ComfyUI_portable/python_embeded/lib/python3.12/site-packages/torchaudio/__init__.py", line 4, in
from . import _extension # noqa # usort: skip
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shaoping/ComfyUI_portable/python_embeded/lib/python3.12/site-packages/torchaudio/_extension/__init__.py", line 42, in
_check_cuda_version()
File "/home/shaoping/ComfyUI_portable/python_embeded/lib/python3.12/site-packages/torchaudio/_extension/utils.py", line 168, in _check_cuda_version
version = torchaudio.lib._torchaudio.cuda_version()
^^^^^^^^^^^^^^
AttributeError: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
Cannot import /home/shaoping/ComfyUI_portable/ComfyUI/comfy_extras/nodes_audio_encoder.py module for custom nodes: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
Import times for custom nodes:
0.0 seconds: /home/shaoping/ComfyUI_portable/ComfyUI/custom_nodes/websocket_image_save.py
WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.
IMPORT FAILED: nodes_audio.py
IMPORT FAILED: nodes_audio_encoder.py
This issue might be caused by new missing dependencies added the last time you updated ComfyUI.
Please do a: pip install -r requirements.txt
Context impl SQLiteImpl.
Will assume non-transactional DDL.
No target revision found.
Starting server
To see the GUI go to: http://127.0.0.1:8188
'''
```
### Other
OS info
archlinux@192.168.0.101
----------------------
OS: Arch Linux x86_64
Host: CVN B660I GAMING
Kernel: 6.16.4-arch1-1
Uptime: 10 hours, 13 mins
Packages: 1134 (pacman), 7 (flatpak)
Shell: zsh 5.9
Resolution: 1920x1080
DE: Plasma 6.4.4
WM: kwin
Theme: Breeze-Dark [GTK2], Breeze [GTK3]
Icons: Magna-Light-Icons [GTK2/3]
Terminal: konsole
Terminal Font: Hack 10
CPU: 12th Gen Intel i7-12700 (20) @ 4.800GHz
GPU: NVIDIA GeForce RTX 3060 Lite Hash Rate
Memory: 4512MiB / 63604MiB
Contributor guide
Assessment
This issue has not been assessed yet.