Comfy-Org / Comfy-Org/ComfyUI_frontend

WD14Tagger|pysssss This event loop is already running

Open
#4,423 1 comment 0 reactions 0 assignees View on GitHub
Custom Node
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

while using WD14Tagger node on comfyui (im using google collab)
im getting :WD14Tagger|pysssss This event loop is already running

got prompt
:679: RuntimeWarning: coroutine 'wait_for_async..run_async' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
!!! Exception during processing !!! This event loop is already running
Traceback (most recent call last):
File "/content/drive/MyDrive/ComfyUI/execution.py", line 425, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/drive/MyDrive/ComfyUI/execution.py", line 268, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/drive/MyDrive/ComfyUI/execution.py", line 242, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "/content/drive/MyDrive/ComfyUI/execution.py", line 230, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "/content/drive/MyDrive/ComfyUI/custom_nodes/comfyui-wd14-tagger/wd14tagger.py", line 200, in tag
tags.append(wait_for_async(lambda: tag(image, model, threshold, character_threshold, exclude_tags, replace_underscore, trailing_comma)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/drive/MyDrive/ComfyUI/custom_nodes/comfyui-wd14-tagger/pysssss.py", line 214, in wait_for_async
loop.run_until_complete(run_async())
File "/usr/lib/python3.11/asyncio/base_events.py", line 630, in run_until_complete
self._check_running()
File "/usr/lib/python3.11/asyncio/base_events.py", line 589, in _check_running
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-4423-WD14Tagger-pysssss-This-event-loop-is-already-running-22d6d73d365081dbadd8dd2e7d656c82) by [Unito](https://www.unito.io)

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.