Error during installation

An error occurred during installation. The contents of the log file are as follows.
It is likely caused by the absence of a graphics card, but since the WebUI version was running without one, I would appreciate it if you could improve this issue.


[2024-11-26 10:46:03.692] [error] Traceback (most recent call last):
File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\main.py”, line 91, in

[2024-11-26 10:46:03.693] [error] import execution
File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\execution.py”, line 13, in

[2024-11-26 10:46:03.694] [error] import nodes
[2024-11-26 10:46:03.695] [error]
File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\nodes.py”, line 21, in

[2024-11-26 10:46:03.698] [error] import comfy.diffusers_load

[2024-11-26 10:46:03.699] [error] File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\comfy\diffusers_load.py”, line 3, in
import comfy.sd

[2024-11-26 10:46:03.700] [error] File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\comfy\sd.py”, line 5, in

[2024-11-26 10:46:03.701] [error] from comfy import model_management
[2024-11-26 10:46:03.702] [error]
File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\comfy\model_management.py”, line 143, in

[2024-11-26 10:46:03.704] [error] total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
[2024-11-26 10:46:03.704] [error]

[2024-11-26 10:46:03.705] [error] ^^^^^^^^^^^^^^^^^^
[2024-11-26 10:46:03.706] [error]
File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\comfy\model_management.py”, line 112, in get_torch_device
return torch.device(torch.cuda.current_device())
^^^^^^^^^^^^^^^
[2024-11-26 10:46:03.707] [error] ^^^^^^^^^^^^
File “C:\Users\user\Documents\ComfyUI\ComfyUI.venv\Lib\site-packages\torch\cuda_init_.py”, line 940, in current_device
_lazy_init()

[2024-11-26 10:46:03.708] [error] File “C:\Users\user\Documents\ComfyUI\ComfyUI.venv\Lib\site-packages\torch\cuda_init_.py”, line 319, in _lazy_init
torch._C._cuda_init()

[2024-11-26 10:46:03.708] [error] RuntimeError: No CUDA GPUs are available


Sorry, we currently only support nvidia card windows machines. But can add this later. You start it with --cpu flag normally?

Thank you for reaching out.
I have an RTX 4060Ti 16GB, but due to the high electricity costs, I have been running it in CPU mode via the WebUI.
If I add the --cpu flag, will it start in CPU mode?
Which file and which line should I modify?

Came here to report this issue - the machine I’m using for testing has no GPU attached. If there’s a way to activate CPU mode, that would be great. If not, I would recommend the installer display a note to this effect - I had assumed hardware options would be detected on installation and/or startup.