StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Can't Launching ComfyUI Package After Updates of ComfyUI and StabilityMatrix

Open vrthur opened this issue 3 months ago • 2 comments

Package

ComfyUI

When did the issue occur?

Installing the Package

What GPU / hardware type are you using?

NVIDIA GeForce GTX 1080

What happened?

I am experiencing difficulties launching the ComfyUI package following the recent updates to both ComfyUI and StabilityMatrix. After the updates, the application fails to start, and I am encountering this errors in the console output : TypeError: expected string or bytes-like object [W1018 09:08:28.000000000 AllocatorConfig.cpp:28] Warning: PYTORCH_CUDA_ALLOC_CONF is deprecated, use PYTORCH_ALLOC_CONF instead (function operator ())

Now upon launch, the application fails to start as intended, and the console output provides those log below.

I likely created conflicts because the updates for Stability Matrix and ComfyUI occurred at the same time while I was already using ComfyUI. I do not want to reinstall the package to avoid losing my workflow configurations.

Console output

[START] Security scan [DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-10-18 09:07:10.345 ** Platform: Windows ** Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] ** Python executable: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\Scripts\python.exe ** ComfyUI Path: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI ** ComfyUI Base Folder Path: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI ** User directory: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\user ** ComfyUI-Manager config path: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\user\default\ComfyUI-Manager\config.ini ** Log path: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\user\comfyui.log [ComfyUI-Manager] 'numpy' dependency were fixed

Prestartup times for custom nodes: 0.0 seconds: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\custom_nodes\comfyui-easy-use 30.2 seconds: C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\custom_nodes\ComfyUI-Manager

Checkpoint files will always be loaded safely. Total VRAM 8192 MB, total RAM 32726 MB pytorch version: 2.9.0+cu126 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce GTX 1080 : cudaMallocAsync Using split optimization for attention Traceback (most recent call last): File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\main.py", line 149, in import execution File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\execution.py", line 16, in import nodes File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\nodes.py", line 24, in import comfy.diffusers_load File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\diffusers_load.py", line 3, in import comfy.sd File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\sd.py", line 32, in from . import model_detection File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\model_detection.py", line 2, in import comfy.supported_models File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\supported_models.py", line 5, in from . import sd1_clip File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\comfy\sd1_clip.py", line 3, in from transformers import CLIPTokenizer File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\transformers_init_.py", line 27, in from . import dependency_versions_check File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\transformers\dependency_versions_check.py", line 16, in from .utils.versions import require_version, require_version_core File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\transformers\utils_init_.py", line 24, in from .auto_docstring import ( File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\transformers\utils\auto_docstring.py", line 30, in from .generic import ModelOutput File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\transformers\utils\generic.py", line 34, in from .import_utils import ( File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\transformers\utils\import_utils.py", line 251, in _torch_available = version.parse(_torch_version) >= version.parse("2.1.0") File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\packaging\version.py", line 56, in parse return Version(version) File "C:\Users\Morty\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\packaging\version.py", line 200, in init match = self._regex.search(version) TypeError: expected string or bytes-like object [W1018 09:08:28.000000000 AllocatorConfig.cpp:28] Warning: PYTORCH_CUDA_ALLOC_CONF is deprecated, use PYTORCH_ALLOC_CONF instead (function operator ())

Version

2.15.2

What Operating System are you using?

Windows

vrthur avatar Oct 18 '25 07:10 vrthur

i'm having a similar issue.

When i reinstall and create a vanilla comfyui installation it runs. But when i install my custom nodes it spits out the "Warning: PYTORCH_CUDA_ALLOC_CONF is deprecated, use PYTORCH_ALLOC_CONF instead (function operator ())" error.

then when i uninstall all the nodes, its still broken.

It's something about the multiple custom nodes interacting that causes it to happen. If i spawn a new ComfyUI installation and install the minimum number of nodes for a particular workflow, it seems to work. But if install my full library of nodes it errors out upon restart. I can't figure out which combination is causing it

nurdyoga-afk avatar Oct 20 '25 20:10 nurdyoga-afk

Can't Launching ComfyUI Package After Updates of ComfyUI and StabilityMatrix

I felt the same way. For me the solution was to install numpy-1.26.4-cp310-cp310-win_amd64.whl

hansnolte avatar Oct 21 '25 08:10 hansnolte