ComfyUI-WanVideoWrapper icon indicating copy to clipboard operation
ComfyUI-WanVideoWrapper copied to clipboard

WanVideoSampler AttributeError: type object 'CompiledKernel' has no attribute 'launch_enter_hook'

Open LL0424 opened this issue 5 months ago • 21 comments

ImageHow to solve this problem

LL0424 avatar Jul 31 '25 09:07 LL0424

downgrade triton worked for me

Klow666 avatar Jul 31 '25 18:07 Klow666

downgrade triton worked for me

what version downgrade to?

brianb5010 avatar Jul 31 '25 19:07 brianb5010

found this, I noticed my torch version is too low: Triton 3.4 only works with PyTorch >= 2.8.

brianb5010 avatar Jul 31 '25 19:07 brianb5010

pip install -U "triton-windows<3.4" assuming your on torch 2.7 + if lower check the docs for correct version

Klow666 avatar Jul 31 '25 20:07 Klow666

thx. had the same issue. downgrade worked!

suphansli avatar Aug 04 '25 16:08 suphansli

pip install -U "triton-windows<3.4" assuming your on torch 2.7 + if lower check the docs for correct version

I have torch 2.7.0+cu128 and triton-windows 3.3.1post19 but still got an error

SealTecH avatar Aug 05 '25 06:08 SealTecH

使用pip安装 -U "triton-windows<3.4",假设你使用的是torch 2.7 + 如果版本更低,请查看文档以获取正确版本。

我有 torch 2.7.0+cu128 和 triton-windows 3.3.1post19 但仍然出现了一个错误

是不是fp8e4nv报错,说不支持。

shungyuesuolong avatar Aug 07 '25 08:08 shungyuesuolong

使用pip安装 -U "triton-windows<3.4",假设你使用的是torch 2.7 + 如果版本更低,请查看文档以获取正确版本。

我有 torch 2.7.0+cu128 和 triton-windows 3.3.1post19 但仍然出现了一个错误

是不是fp8e4nv报错,说不支持。

Sorry, I don't know what is fp8e4nv. And that's why I assume that no - it does not throw such error.

My case was a bit messy. I have both Python 3.10 and 3.12 and comfy-desktop. I kept getting this error despite all the efforts to install and reinstall triton. Then I reinstalled comfy ui in a separate folder. For some reason, I couldn't install triton into .venv of fresh comfy (in console it said its already installed, but in fact it was not). All the problems ended up when I just copied folders triton and triton-windows from C:\Users\my_user\AppData\Roaming\Python\Python312\site-packages to .venv folder of fresh comfyUI

SealTecH avatar Aug 07 '25 19:08 SealTecH

Downgrading worked for me too, thanks! For the people using ComfyUI portable: comfyui-portable-folder\python_embeded>python.exe -m pip install -U "triton-windows<3.4"

addy87 avatar Aug 09 '25 09:08 addy87

Downgrading worked for me too, thanks! For the people using ComfyUI portable: comfyui-portable-folder\python_embeded>python.exe -m pip install -U "triton-windows<3.4"

I've run this but still receive the same error. I doubt that triton gets properly installed in my comfyui portable, because when i run the order: python.exe -m pip uninstall triton, I receive : WARNING: Skipping triton as it is not installed.

Nomad234 avatar Aug 09 '25 12:08 Nomad234

Downgrading worked for me too, thanks! For the people using ComfyUI portable: comfyui-portable-folder\python_embeded>python.exe -m pip install -U "triton-windows<3.4"

I've run this but still receive the same error. I doubt that triton gets properly installed in my comfyui portable, because when i run the order: python.exe -m pip uninstall triton, I receive : WARNING: Skipping triton as it is not installed.

(Drive letter)D:\ComfyUI_windows_portable\python_embeded\python.exe -m install -U "triton-windows<3.4"

One thing to note is that Triton seems to have a very different reference to the environment. Try to specify the correct address of Python when installing. If that doesn't work, try to reference the Python environment of the portable package into the system variable

WuMIn259 avatar Aug 14 '25 08:08 WuMIn259

Downgrading solved my problem too. I downgraded to this (3.3.1post19)

HaN3453 avatar Aug 16 '25 12:08 HaN3453

Downgrading worked for me too, thanks! For the people using ComfyUI portable: comfyui-portable-folder\python_embeded>python.exe -m pip install -U "triton-windows<3.4"

Works form me, many thx!

inglob avatar Aug 21 '25 00:08 inglob

downgrade triton worked for me

how i can know what version of triton i have and what version to downgrade i should choose?

margo2130 avatar Sep 01 '25 06:09 margo2130

downgrade triton worked for me

what version downgrade to?

how can i downgrade my triton? can you explain how i can findout which version to downgrade?

margo2130 avatar Sep 01 '25 06:09 margo2130

I tried everything I saw and nothing worked... But

I SOLVED IT with Torch 2.6 and Triton 3.2—it’s more stable.

Step1 pip uninstall -y torch triton triton-windows

Step2 pip install torch==2.6.0 --force-reinstall

Step3 pip install "triton-windows==3.2.0.post19" --force-reinstall

Alesdanz avatar Sep 16 '25 21:09 Alesdanz

Try disabling torch compile

Yogesh-DevHub avatar Sep 21 '25 17:09 Yogesh-DevHub

it worked,thx

chamlyn2022 avatar Oct 06 '25 10:10 chamlyn2022

t

pip install -U "triton-windows<3.4" assuming your on torch 2.7 + if lower check the docs for correct version

Thank it work for me..

aidifussion avatar Oct 09 '25 01:10 aidifussion

brianb5010

降级也对我有用,谢谢!致使用 ComfyUI 便携版的用户: comfyui-portable-folder\python_embeded>python.exe -m pip install -U "triton-windows<3.4"

感谢对我很有用,在此之前我问了无数次ai但是都没有解决问题。尝试了环境变量的增加修改,更新了C++编译器。cuda降级等一系列问题。我也不知道是不是在做这些前提的情况下才能降级成功的。总之很感谢您!作者这个问题可以在环境变量中增加+dynamo变量可以在ai中查到。

TwhiteShark avatar Oct 14 '25 17:10 TwhiteShark

downgrade triton worked for me

what version downgrade to?

how can i downgrade my triton? can you explain how i can findout which version to downgrade?

Check this

InhabitancyCocoon avatar Nov 19 '25 12:11 InhabitancyCocoon