ComfyUI does not start

Having successfully installed ComfyUI Desktop v0.4.5 I am receive “Unable to start ComfyUI Desktop v0.4.5”

The last few lines of the log are as follows:

Adding extra search path download_model_base F:\ComfyUI-Desktop\models
Setting output directory to: F:\ComfyUI-Desktop\output
Setting input directory to: F:\ComfyUI-Desktop\input
Setting user directory to: F:\ComfyUI-Desktop\user

[2025-01-13 12:49:28.877] [info] [START] Security scan
[DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-01-13 12:49:28.877055

[2025-01-13 12:49:28.878] [info] ** Platform: Windows
** Python version: 3.12.8 (main, Dec 6 2024, 18:10:20) [MSC v.1942 64 bit (AMD64)]
** Python executable: F:\ComfyUI-Desktop.venv\Scripts\python.exe
** ComfyUI Path: F:\ComfyUI_New\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack/
** Log path: F:\ComfyUI-Desktop\user\comfyui.log

[2025-01-13 12:49:29.971] [info] [START] Security scan

[2025-01-13 12:49:30.963] [info] [DONE] Security scan

[2025-01-13 12:49:30.964] [error] Failed to execute startup-script: C:\Users\Stephen\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager\prestartup_script.py / type object ‘datetime.datetime’ has no attribute ‘datetime’

[2025-01-13 12:49:30.967] [error] object address : 000001CEB93E17E0
object refcount : 3
object type : 00007FFBFB782270
object type name: AttributeError
object repr : AttributeError(“type object ‘datetime.datetime’ has no attribute ‘datetime’”)

Would appreciate any help, thanks!

Thank you for letting us know! With a little more info, we should be able to reproduce this issue and get it resolved.

  1. Have you installed desktop previously, or was this a fresh install?
  2. Could you please upload the log files? There is some extra info on app startup there. Either here or to hello@comfy.org works.

Log file locations:
https://comfyorg.notion.site/ComfyUI-Desktop-User-Guide-1146d73d365080a49058e8d629772f0a#1486d73d365080999843ea13fda2fac1

Have reviewed the logs - it is almost certainly being caused by a custom nodes.

If you search for the exact string [info] ERROR: Restoring in the main.log you sent, you should find 4 instances - each one naming an extension that failed to be restored.

There were some other errors, but this is the easiest starting point. You can simply disable those four by moving their directories out of the custom_nodes directory in your install location.

1 Like