Unable to start ComfyUI

Hey,
I go through the install and just always end up with the same error. I uninstall, manually delete the files etc etc.

Looking at the logs, it is always this

[2024-11-26 08:25:58.870] [info]
Prestartup times for custom nodes:

[2024-11-26 08:25:58.874] [info] 113.2 seconds: C:\Users\Admin\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager

[2024-11-26 08:25:59.128] [error] Traceback (most recent call last):
File “C:\Users\Admin\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\main.py”, line 89, in

[2024-11-26 08:25:59.133] [error] import comfy.utils
File “C:\Users\Admin\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\comfy\utils.py”, line 20, in
import torch
ModuleNotFoundError: No module named ‘torch’

Same here. Have tried reinstall button with no luck. I’m trying to install with migration. maybe that has something t do with it?

same issue,I have no idea what to do next, someone could help hopefully

Can you try again, this should be fixed now?

1 Like

Still getting the error and cannot proceed, Done Everything possible but no luck

me2, still unable to start ComfyUI. Does the ComfyUI Desktop have any minimum hardware requirement?

same issue, python install not work

Running uv command: C:\Users\abc\AppData\Local\Programs@comfyorgcomfyui-electron\resources\uv\win\uv.exe venv --python 3.12.4
[2024-11-26 17:22:56.103] [error] Error creating virtual environment: Error: File not found:
[2024-11-26 17:22:56.583] [info] Received renderer-ready message!
[2024-11-26 17:22:56.584] [info] Sending queued message loading-progress { status: ‘python-setup’ }
[2024-11-26 17:22:56.585] [info] Sending queued message loading-progress { status: ‘error’ }
[2024-11-26 17:22:56.586] [info] Sending queued message log-message Error: File not found:

I have the same issue. After I checked the log, mail.log. I found the problem is that WIN powershell didn’t exeucte the “C:\Users\abc\AppData\Local\Programs@comfyorgcomfyui-electron\resources\uv\win\uv.exe venv --python 3.12.4” correctly. I checked with Chatgpt. There are two issues:

  1. powershell don’t support the path with space. My user name is like “ab c”.
  2. powershell may misunderstanding “@”. So even [“C:\Users\ab c\AppData \Local\Programs@comfyorgcomfyui-electron\resources\uv\win\uv.exe” venv --python 3.12.4] is still wrong.

The correct spell shoud be “‘& C:\Users\ab’ c\AppData\Local\Programs'@comfyorgcomfyui-electron\resources\uv\win\uv.exe venv --python 3.12.4”. Start with “&” and ’ before space and “@”.
I manually tested in powershell with above command and it is work. Hope it help you to fix it soon.

So i reinstalled on my main drive and now ComfyUI starts. So basically if you install on a different drive then the main drive you get the error. So that becomes a problem when you don’t want to use your main drive as your install drive.

On step 1 of setup, “Location Install”, it has “System Locations” already filled in, with “C:\Users\User Name.…” as an example. But I can’t seem to change it to get it to understand the space. In the log, one of the things I find is “The term ‘C:\Users\User’ is not recognized as the name of a cmdlet, function, script file, or operable program.” and another spot has “ObjectNotFound: (C:\Users\User:String) [ ],”

Anybody able to get it working? I’ve tryed everything possible. Need help. :slight_smile:

Hopped on a call with @pmineiro07, it turns out it’s due to AMD gpu. We currently do not yet have support for AMD gpus. Sorry for all your inconvinience :pray:

Nvidia GPU here. (Install on external drive) Unable to start ComfyUI.
the error in my log says:
AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\utils\extra_config.py", line 2, in
import yaml
ModuleNotFoundError: No module named ‘yaml’

Hey @yoland - I actually do not have an AMD. Please see below. Any idea of what it could be?

Same error here. Trying to install on external SSD

What do the main.log say? There should be a part like this:

Running command: C:\Users\..\OneDrive\Documents\ComfyUI\.venv\Scripts\python.exe C:\Users\..\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\main.py

Thanks for reporting this!We fixed the space issue in 0.3.18