You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I updated ComfyUI to try out Cosmos, but after the update, I had issues with all HunyuanVido modules.
I ended up doing a fresh reinstall, but when running, it complained about sage attention, so I tried to install Triton. Turns out comfy has switched to 3.12 python, so I needed a new triton version.
After installing the new triton version The modules can no longer be found again.
Prestartup times for custom nodes:
2.1 seconds: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager
Checkpoint files will always be loaded safely.
Total VRAM 24563 MB, total RAM 98010 MB
pytorch version: 2.5.1+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
Using pytorch attention
[Prompt Server] web root: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\web
Traceback (most recent call last):
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py", line 920, in get_module
return importlib.import_module("." + module_name, self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init.py", line 90, in import_module
File "", line 1387, in gcd_import
File "", line 1360, in find_and_load
File "", line 1310, in find_and_load_unlocked
File "", line 488, in call_with_frames_removed
File "", line 1387, in gcd_import
File "", line 1360, in find_and_load
File "", line 1331, in find_and_load_unlocked
File "", line 935, in load_unlocked
File "", line 999, in exec_module
File "", line 488, in call_with_frames_removed
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders_init.py", line 1, in
from .autoencoder_asym_kl import AsymmetricAutoencoderKL
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders\autoencoder_asym_kl.py", line 22, in
from ..modeling_utils import ModelMixin
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\modeling_utils.py", line 35, in
from ..quantizers import DiffusersAutoQuantizer, DiffusersQuantizer
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\quantizers_init.py", line 15, in
from .auto import DiffusersAutoQuantizer
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\quantizers\auto.py", line 22, in
from .bitsandbytes import BnB4BitDiffusersQuantizer, BnB8BitDiffusersQuantizer
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\quantizers\bitsandbytes_init.py", line 2, in
from .utils import dequantize_and_replace, dequantize_bnb_weight, replace_with_bnb_linear
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\quantizers\bitsandbytes\utils.py", line 32, in
import bitsandbytes as bnb
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\bitsandbytes_init.py", line 15, in
from .nn import modules
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\bitsandbytes\nn_init.py", line 21, in
from .triton_based_modules import (
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\bitsandbytes\nn\triton_based_modules.py", line 6, in
from bitsandbytes.triton.dequantize_rowwise import dequantize_rowwise
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\bitsandbytes\triton\dequantize_rowwise.py", line 12, in
import triton
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton_init.py", line 20, in from .runtime import (
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\runtime_init.py", line 1, in
from .autotuner import (Autotuner, Config, Heuristics, autotune, heuristics)
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\runtime\autotuner.py", line 9, in
from ..testing import do_bench, do_bench_cudagraph
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\testing.py", line 7, in
from . import language as tl
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\language_init.py", line 4, in
from . import math
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\language\math.py", line 1, in
from . import core
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\language\core.py", line 10, in
from ..runtime.jit import jit
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\runtime\jit.py", line 12, in
from ..runtime.driver import driver
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\runtime\driver.py", line 1, in
from ..backends import backends
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends_init.py", line 50, in
backends = discover_backends()
^^^^^^^^^^^^^^^^^^^^
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends_init.py", line 43, in _discover_backends
compiler = load_module(name, os.path.join(root, name, 'compiler.py'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends_init.py", line 12, in _load_module
spec.loader.exec_module(module)
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends\amd\compiler.py", line 2, in
from triton._C.libtriton import ir, passes, llvm, amd
ImportError: DLL load failed while importing libtriton: A dynamic link library (DLL) initialization routine failed.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2106, 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 "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper_init.py", line 1, in
from .nodes import NODE_CLASS_MAPPINGS as NODES_CLASS, NODE_DISPLAY_NAME_MAPPINGS as NODES_DISPLAY
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\nodes.py", line 12, in
from .hyvideo.diffusion.schedulers import FlowMatchDiscreteScheduler
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\hyvideo\diffusion_init_.py", line 1, in
from .pipelines import HunyuanVideoPipeline
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\hyvideo\diffusion\pipelines_init_.py", line 1, in
from .pipeline_hunyuan_video import HunyuanVideoPipeline
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\hyvideo\diffusion\pipelines\pipeline_hunyuan_video.py", line 31, in
from diffusers.pipelines.pipeline_utils import DiffusionPipeline
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 45, in
from ..models import AutoencoderKL
File "", line 1412, in _handle_fromlist
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py", line 910, in getattr
module = self._get_module(self._class_to_module[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py", line 922, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
DLL load failed while importing libtriton: A dynamic link library (DLL) initialization routine failed.
Cannot import V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper module for custom nodes: Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
DLL load failed while importing libtriton: A dynamic link library (DLL) initialization routine failed.
Loading: ComfyUI-Manager (V3.9.2)
ComfyUI Revision: 3055 [55add502] *DETACHED | Released on '2025-01-16'
Hi,
I updated ComfyUI to try out Cosmos, but after the update, I had issues with all HunyuanVido modules.
I ended up doing a fresh reinstall, but when running, it complained about sage attention, so I tried to install Triton. Turns out comfy has switched to 3.12 python, so I needed a new triton version.
After installing the new triton version The modules can no longer be found again.
What are my options?
Here is my error log:
[START] Security scan
[DONE] Security scan
ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-01-23 22:27:47.947
** Platform: Windows
** Python version: 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]
** Python executable: V:\Diffusion\ComfyUI_windows_portable\python_embeded\python.exe
** ComfyUI Path: V:\Diffusion\ComfyUI_windows_portable\ComfyUI
** User directory: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\user
** ComfyUI-Manager config path: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\config.ini
** Log path: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\user\comfyui.log
Prestartup times for custom nodes:
2.1 seconds: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager
Checkpoint files will always be loaded safely.
Total VRAM 24563 MB, total RAM 98010 MB
pytorch version: 2.5.1+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
Using pytorch attention
[Prompt Server] web root: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\web
Traceback (most recent call last):
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py", line 920, in get_module
return importlib.import_module("." + module_name, self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init.py", line 90, in import_module
File "", line 1387, in gcd_import
File "", line 1360, in find_and_load
File "", line 1310, in find_and_load_unlocked
File "", line 488, in call_with_frames_removed
File "", line 1387, in gcd_import
File "", line 1360, in find_and_load
File "", line 1331, in find_and_load_unlocked
File "", line 935, in load_unlocked
File "", line 999, in exec_module
File "", line 488, in call_with_frames_removed
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders_init.py", line 1, in
from .autoencoder_asym_kl import AsymmetricAutoencoderKL
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders\autoencoder_asym_kl.py", line 22, in
from ..modeling_utils import ModelMixin
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\modeling_utils.py", line 35, in
from ..quantizers import DiffusersAutoQuantizer, DiffusersQuantizer
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\quantizers_init.py", line 15, in
from .auto import DiffusersAutoQuantizer
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\quantizers\auto.py", line 22, in
from .bitsandbytes import BnB4BitDiffusersQuantizer, BnB8BitDiffusersQuantizer
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\quantizers\bitsandbytes_init.py", line 2, in
from .utils import dequantize_and_replace, dequantize_bnb_weight, replace_with_bnb_linear
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\quantizers\bitsandbytes\utils.py", line 32, in
import bitsandbytes as bnb
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\bitsandbytes_init.py", line 15, in
from .nn import modules
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\bitsandbytes\nn_init.py", line 21, in
from .triton_based_modules import (
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\bitsandbytes\nn\triton_based_modules.py", line 6, in
from bitsandbytes.triton.dequantize_rowwise import dequantize_rowwise
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\bitsandbytes\triton\dequantize_rowwise.py", line 12, in
import triton
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton_init.py", line 20, in from .runtime import (
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\runtime_init.py", line 1, in
from .autotuner import (Autotuner, Config, Heuristics, autotune, heuristics)
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\runtime\autotuner.py", line 9, in
from ..testing import do_bench, do_bench_cudagraph
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\testing.py", line 7, in
from . import language as tl
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\language_init.py", line 4, in
from . import math
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\language\math.py", line 1, in
from . import core
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\language\core.py", line 10, in
from ..runtime.jit import jit
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\runtime\jit.py", line 12, in
from ..runtime.driver import driver
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\runtime\driver.py", line 1, in
from ..backends import backends
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends_init.py", line 50, in
backends = discover_backends()
^^^^^^^^^^^^^^^^^^^^
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends_init.py", line 43, in _discover_backends
compiler = load_module(name, os.path.join(root, name, 'compiler.py'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends_init.py", line 12, in _load_module
spec.loader.exec_module(module)
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends\amd\compiler.py", line 2, in
from triton._C.libtriton import ir, passes, llvm, amd
ImportError: DLL load failed while importing libtriton: A dynamic link library (DLL) initialization routine failed.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2106, 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 "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper_init.py", line 1, in
from .nodes import NODE_CLASS_MAPPINGS as NODES_CLASS, NODE_DISPLAY_NAME_MAPPINGS as NODES_DISPLAY
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\nodes.py", line 12, in
from .hyvideo.diffusion.schedulers import FlowMatchDiscreteScheduler
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\hyvideo\diffusion_init_.py", line 1, in
from .pipelines import HunyuanVideoPipeline
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\hyvideo\diffusion\pipelines_init_.py", line 1, in
from .pipeline_hunyuan_video import HunyuanVideoPipeline
File "V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\hyvideo\diffusion\pipelines\pipeline_hunyuan_video.py", line 31, in
from diffusers.pipelines.pipeline_utils import DiffusionPipeline
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 45, in
from ..models import AutoencoderKL
File "", line 1412, in _handle_fromlist
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py", line 910, in getattr
module = self._get_module(self._class_to_module[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "V:\Diffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\import_utils.py", line 922, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
DLL load failed while importing libtriton: A dynamic link library (DLL) initialization routine failed.
Cannot import V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper module for custom nodes: Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
DLL load failed while importing libtriton: A dynamic link library (DLL) initialization routine failed.
Loading: ComfyUI-Manager (V3.9.2)
ComfyUI Revision: 3055 [55add502] *DETACHED | Released on '2025-01-16'
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
Import times for custom nodes:
0.0 seconds: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.2 seconds: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
0.3 seconds: V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager
7.5 seconds (IMPORT FAILED): V:\Diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper
The text was updated successfully, but these errors were encountered: