Comfy-Org / Comfy-Org/ComfyUI

TypeError: 'list' object does not support the context manager protoc

Open
#9,012 1 comment 0 reactions 1 assignee Claimed by @yoland68 View on GitHub
bug-cop:taking-a-look Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 10h
Merged PRs (30d)
153

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

ile "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 156, in set_prompt
await self.cache_key_set.add_keys(node_ids)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 92, in add_keys
self.keys[node_id] = await self.get_node_signature(self.dynprompt, node_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 97, in get_node_signature
ancestors, order_mapping = self.get_ordered_ancestry(dynprompt, node_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 128, in get_ordered_ancestry
self.get_ordered_ancestry_internal(dynprompt, node_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
[Previous line repeated 6 more times]
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 137, in get_ordered_ancestry_internal
if is_link(inputs[key]):
^^^^^^^
TypeError: 'list' object does not support the context manager protoc

### Actual Behavior

ile "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 156, in set_prompt
await self.cache_key_set.add_keys(node_ids)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 92, in add_keys
self.keys[node_id] = await self.get_node_signature(self.dynprompt, node_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 97, in get_node_signature
ancestors, order_mapping = self.get_ordered_ancestry(dynprompt, node_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 128, in get_ordered_ancestry
self.get_ordered_ancestry_internal(dynprompt, node_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
[Previous line repeated 6 more times]
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 137, in get_ordered_ancestry_internal
if is_link(inputs[key]):
^^^^^^^
TypeError: 'list' object does not support the context manager protoc

### Steps to Reproduce

ile "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 156, in set_prompt
await self.cache_key_set.add_keys(node_ids)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 92, in add_keys
self.keys[node_id] = await self.get_node_signature(self.dynprompt, node_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 97, in get_node_signature
ancestors, order_mapping = self.get_ordered_ancestry(dynprompt, node_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 128, in get_ordered_ancestry
self.get_ordered_ancestry_internal(dynprompt, node_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
[Previous line repeated 6 more times]
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 137, in get_ordered_ancestry_internal
if is_link(inputs[key]):
^^^^^^^
TypeError: 'list' object does not support the context manager protoc

### Debug Logs

```powershell
ile "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 156, in set_prompt
await self.cache_key_set.add_keys(node_ids)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 92, in add_keys
self.keys[node_id] = await self.get_node_signature(self.dynprompt, node_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 97, in get_node_signature
ancestors, order_mapping = self.get_ordered_ancestry(dynprompt, node_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 128, in get_ordered_ancestry
self.get_ordered_ancestry_internal(dynprompt, node_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 142, in get_ordered_ancestry_internal
self.get_ordered_ancestry_internal(dynprompt, ancestor_id, ancestors, order_mapping)
[Previous line repeated 6 more times]
File "E:\Comfyui\ComfyUI_windows_portable_nvidia\ComfyUI\comfy_execution\caching.py", line 137, in get_ordered_ancestry_internal
if is_link(inputs[key]):
^^^^^^^
TypeError: 'list' object does not support the context manager protoc
```

### 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.