Comfy-Org / Comfy-Org/ComfyUI

After updating Comfyui to the latest version "Keywords: v0.3.49, WAN 2.2", I can no longer create videos with wan2.1.

Open
#9,260 2 comments 0 reactions 0 assignees View on GitHub
bug-cop:answered Custom Nodes Bug Potential Bug
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

After updating Comfyui to the latest version "Keywords: v0.3.49, WAN 2.2", I can no longer create videos with wan2.1. I also updated the "WanVideoRapper" version::

It gives the following error:

### Actual Behavior

I have no idea what happened

### Steps to Reproduce

[FusionX_07386.json](https://github.com/user-attachments/files/21697063/FusionX_07386.json)

### Debug Logs

```powershell
Seq len: 12960
!!! Exception during processing !!! cannot import name 'Wan22' from 'comfy.latent_formats' (F:\ComfyUI_windows_portable\ComfyUI\comfy\latent_formats.py)
Traceback (most recent call last):
File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 347, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 222, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 194, in _map_node_over_list
process_inputs(input_dict, i)
File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 183, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper\nodes.py", line 2448, in process
from .latent_preview import prepare_callback #custom for tiny VAE previews
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper\latent_preview.py", line 8, in
from comfy.latent_formats import Wan21, Wan22
ImportError: cannot import name 'Wan22' from 'comfy.latent_formats' (F:\ComfyUI_windows_portable\ComfyUI\comfy\latent_formats.py)

Prompt executed in 98.89 seconds
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.