Skip to content

diffusers/utils/import_utils.py No module named 'triton.ops' #10940

@ZanePoe

Description

@ZanePoe

Describe the bug

` File "/home/zanepoe/miniconda3/envs/comfyui/lib/python3.12/site-packages/diffusers/utils/import_utils.py", line 910, in getattr
module = self._get_module(self._class_to_module[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zanepoe/miniconda3/envs/comfyui/lib/python3.12/site-packages/diffusers/utils/import_utils.py", line 922, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.models.modeling_utils because of the following error (look up to see its traceback):
No module named 'triton.ops'

Cannot import /home/zanepoe/workspace/sd/ComfyUI/custom_nodes/ComfyUI-LTXVideo module for custom nodes: Failed to import diffusers.models.modeling_utils because of the following error (look up to see its traceback):
No module named 'triton.ops'
`

Reproduction

This error occurred when upgrading triton to 3.2.0

Logs

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/zanepoe/workspace/sd/ComfyUI/nodes.py", line 2147, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/zanepoe/workspace/sd/ComfyUI/custom_nodes/ComfyUI-MuseTalkUtils/__init__.py", line 4, in <module>
    from .musetalk_train_preprocess import *
  File "/home/zanepoe/workspace/sd/ComfyUI/custom_nodes/ComfyUI-MuseTalkUtils/musetalk_train_preprocess.py", line 8, in <module>
    from . import vae
  File "/home/zanepoe/workspace/sd/ComfyUI/custom_nodes/ComfyUI-MuseTalkUtils/vae.py", line 1, in <module>
    from diffusers import AutoencoderKL
  File "<frozen importlib._bootstrap>", line 1412, in _handle_fromlist
  File "/home/zanepoe/miniconda3/envs/comfyui/lib/python3.12/site-packages/diffusers/utils/import_utils.py", line 911, in __getattr__
    value = getattr(module, name)
            ^^^^^^^^^^^^^^^^^^^^^
  File "/home/zanepoe/miniconda3/envs/comfyui/lib/python3.12/site-packages/diffusers/utils/import_utils.py", line 910, in __getattr__
    module = self._get_module(self._class_to_module[name])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zanepoe/miniconda3/envs/comfyui/lib/python3.12/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):
No module named 'triton.ops'

System Info

triton-3.2.0;
Name: torch:
Version: 2.6.0+cu126;
Name: diffusers:
Version: 0.32.2;
Python 3.12.8;
GPU:2080ti。

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions