Comfy-Org / Comfy-Org/ComfyUI

object NoneType can't be used in 'await' expression

Open
#9,155 7 comments 0 reactions 0 assignees View on GitHub
bug-cop:answered User Support
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)

### Your question

Updated the last version of ComfyUI, now when I try start ComfyUI I get this error before opening the webpage.

### Logs

```powershell
[Prompt Server] web root: C:\Users\User\Desktop\ComfyUI\python_embeded\Lib\site-packages\comfyui_frontend_package\static
C:\Users\User\Desktop\ComfyUI\ComfyUI\custom_nodes\agilly1989_motorway\prestartup_script.py:19: RuntimeWarning: coroutine 'init_external_custom_nodes' was never awaited
original_init_external_custom_nodes() # Call the function with patched behavior
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
File "C:\Users\User\Desktop\ComfyUI\ComfyUI\main.py", line 361, in
event_loop, _, start_all_func = start_comfyui()
^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\ComfyUI\ComfyUI\main.py", line 316, in start_comfyui
asyncio_loop.run_until_complete(nodes.init_extra_nodes(
File "asyncio\base_events.py", line 691, in run_until_complete
File "C:\Users\User\Desktop\ComfyUI\ComfyUI\nodes.py", line 2382, in init_extra_nodes
await init_external_custom_nodes()
TypeError: object NoneType can't be used in 'await' expression
```

### Other

I was working normally before I updated it. I use a Nvidia GPU.

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.