Unable to start ComfyUI Desktop v0.3.18 on Windows

I keep getting the same error during install

Here is the comfyui.log:

[2024-12-02 19:15:33.248] [info] [START] Security scan
[DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2024-12-02 19:15:33.247837

[2024-12-02 19:15:33.294] [info] ** Platform: Windows
** Python version:
[2024-12-02 19:15:33.296] [info] 3.12.4 (main, Jul 25 2024, 21:57:00) [MSC v.1929 64 bit (AMD64)]
** Python executable: C:\Users\andre\ComfyUI.venv\Scripts\python.exe
** ComfyUI Path: C:\Users\andre\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI
** Log path: C:\Users\andre\ComfyUI\comfyui.log

[2024-12-02 19:15:34.016] [error]
[notice] A new release of pip is available: 24.0 → 24.3.1
[notice] To update, run: C:\Users\andre\ComfyUI.venv\Scripts\python.exe -m pip install --upgrade pip

[2024-12-02 19:15:34.543] [error]
[notice] A new release of pip is available: 24.0 → 24.3.1
[notice] To update, run: C:\Users\andre\ComfyUI.venv\Scripts\python.exe -m pip install --upgrade pip

[2024-12-02 19:15:34.575] [info]
Prestartup times for custom nodes:
2.3 seconds: C:\Users\andre\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager

[2024-12-02 19:15:37.496] [error] Total VRAM 12282 MB, total RAM 32386 MB
pytorch version: 2.5.1+cu121

[2024-12-02 19:15:37.498] [error] Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4080 Laptop GPU : cudaMallocAsync

[2024-12-02 19:15:40.069] [error] Using pytorch cross attention

[2024-12-02 19:15:42.127] [error] Traceback (most recent call last):
File “C:\Users\andre\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\main.py”, line 92, in
import server
File “C:\Users\andre\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\server.py”, line 21, in

[2024-12-02 19:15:42.157] [error] import aiohttp
File “C:\Users\andre\ComfyUI.venv\Lib\site-packages\aiohttp_init_.py”, line 6, in
from .client import (
File “C:\Users\andre\ComfyUI.venv\Lib\site-packages\aiohttp\client.py”, line 85, in

[2024-12-02 19:15:42.159] [error] from .connector import (
File “C:\Users\andre\ComfyUI.venv\Lib\site-packages\aiohttp\connector.py”, line 794, in
_SSL_CONTEXT_VERIFIED = _make_ssl_context(True)
^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\andre\ComfyUI.venv\Lib\site-packages\aiohttp\connector.py”, line 779, in _make_ssl_context
return ssl.create_default_context()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\andre\ComfyUI\uv-cache\cpython-3.12.4-windows-x86_64-none\Lib\ssl.py”, line 713, in create_default_context
context.load_default_certs(purpose)
File “C:\Users\andre\ComfyUI\uv-cache\cpython-3.12.4-windows-x86_64-none\Lib\ssl.py”, line 534, in load_default_certs

[2024-12-02 19:15:42.160] [error] self._load_windows_store_certs(storename, purpose)
File “C:\Users\andre\ComfyUI\uv-cache\cpython-3.12.4-windows-x86_64-none\Lib\ssl.py”, line 526, in _load_windows_store_certs
self.load_verify_locations(cadata=certs)
ssl.SSLError: not enough data: cadata does not contain a certificate (_ssl.c:4014)

1 Like

Interesting, seems like this is an upstream Python error related to malformed certs:

It is loading all root certs from the Windows certificate store at once, and it fails if it encounters a single malformed certificate instead of ignoring it and not adding it to its own trust store.