ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

FileNotFoundError: [WinError 2] The system cannot find the file specified: '[...]\\comfyui_workflow_templates\\templates'

Open jovan2009 opened this issue 4 weeks ago • 8 comments

Custom Node Testing

Expected Behavior

To be able to start ComfyUI server.

Actual Behavior

Starting main.py exits with error.

Steps to Reproduce

Before starting ComfyUI I ran pip list -o and I noticed there is an updated comfyui-workflow-templates package. I updated that and it also downloaded another similar named packages:

comfyui-workflow-templates-media-api   0.3.0
comfyui-workflow-templates-media-image 0.3.0
comfyui-workflow-templates-media-other 0.3.0
comfyui-workflow-templates-media-video 0.3.0

Also I ran a git pull from latest git in ComfyUI folder. Then trying to run ComfyUI with my usual command exited immediately. I then moved all the custom nodes to the .disabled subfolder. Simply python.exe main.py without any arguments gives the error bellow:

Debug Logs

C:\ComfyUI>python main.py
Adding extra search path checkpoints E:\ComfyUI\models\checkpoints
Adding extra search path clip E:\ComfyUI\models\clip
Adding extra search path clip_vision E:\ComfyUI\models\clip_vision
Adding extra search path configs E:\ComfyUI\models\configs
Adding extra search path controlnet E:\ComfyUI\models\controlnet
Adding extra search path diffusion_models E:\ComfyUI\models\diffusion_models
Adding extra search path diffusion_models E:\ComfyUI\models\unet
Adding extra search path embeddings E:\ComfyUI\models\embeddings
Adding extra search path loras E:\ComfyUI\models\loras
Adding extra search path upscale_models E:\ComfyUI\models\upscale_models
Adding extra search path vae E:\ComfyUI\models\vae
Checkpoint files will always be loaded safely.
Total VRAM 15975 MB, total RAM 65465 MB
pytorch version: 2.10.0.dev20251106+cu130
C:\Python313\install\Lib\site-packages\torch\library.py:356: UserWarning: Warning only once for all operators,  other operators may also be overridden.
  Overriding a previously registered kernel for the same operator and the same dispatch key
  operator: flash_attn::_flash_attn_backward(Tensor dout, Tensor q, Tensor k, Tensor v, Tensor out, Tensor softmax_lse, Tensor(a6!)? dq, Tensor(a7!)? dk, Tensor(a8!)? dv, float dropout_p, float softmax_scale, bool causal, SymInt window_size_left, SymInt window_size_right, float softcap, Tensor? alibi_slopes, bool deterministic, Tensor? rng_state=None) -> Tensor
    registered at C:\Python313\install\Lib\site-packages\torch\_library\custom_ops.py:922
  dispatch key: ADInplaceOrView
  previous kernel: no debug info
       new kernel: registered at C:\Python313\install\Lib\site-packages\torch\_library\custom_ops.py:922 (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\pytorch\aten\src\ATen\core\dispatch\OperatorEntry.cpp:215.)
  self.m.impl(
xformers version: 0.0.33+e98c69b.d20251104
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 5060 Ti : cudaMallocAsync
Enabled pinned memory 29459.0
working around nvidia conv3d memory bug.
Using xformers attention
Python version: 3.13.9 (main, Oct 31 2025, 22:58:20) [MSC v.1944 64 bit (AMD64)]
ComfyUI version: 0.3.68
ComfyUI frontend version: 1.32.2
[Prompt Server] web root: C:\Python313\install\Lib\site-packages\comfyui_frontend_package\static

Import times for custom nodes:
   0.0 seconds: C:\ComfyUI\custom_nodes\websocket_image_save.py

Context impl SQLiteImpl.
Will assume non-transactional DDL.
No target revision found.
Traceback (most recent call last):
  File "C:\Python313\install\Lib\site-packages\aiohttp\web_urldispatcher.py", line 566, in __init__
    directory = Path(directory).expanduser().resolve(strict=True)
  File "C:\Python313\install\Lib\pathlib\_local.py", line 670, in resolve
    return self.with_segments(os.path.realpath(self, strict=strict))
                              ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "<frozen ntpath>", line 738, in realpath
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Python313\\install\\Lib\\site-packages\\comfyui_workflow_templates\\templates'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\ComfyUI\main.py", line 372, in <module>
    event_loop, _, start_all_func = start_comfyui()
                                    ~~~~~~~~~~~~~^^
  File "C:\ComfyUI\main.py", line 336, in start_comfyui
    prompt_server.add_routes()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\ComfyUI\server.py", line 852, in add_routes
    self.app.add_routes([
    ~~~~~~~~~~~~~~~~~~~^^
        web.static('/templates', workflow_templates_path)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ])
    ^^
  File "C:\Python313\install\Lib\site-packages\aiohttp\web_app.py", line 389, in add_routes
    return self.router.add_routes(routes)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "C:\Python313\install\Lib\site-packages\aiohttp\web_urldispatcher.py", line 1283, in add_routes
    registered_routes.extend(route_def.register(self))
                             ~~~~~~~~~~~~~~~~~~^^^^^^
  File "C:\Python313\install\Lib\site-packages\aiohttp\web_routedef.py", line 98, in register
    resource = router.add_static(self.prefix, self.path, **self.kwargs)
  File "C:\Python313\install\Lib\site-packages\aiohttp\web_urldispatcher.py", line 1207, in add_static
    resource = StaticResource(
        prefix,
    ...<6 lines>...
        append_version=append_version,
    )
  File "C:\Python313\install\Lib\site-packages\aiohttp\web_urldispatcher.py", line 568, in __init__
    raise ValueError(f"'{directory}' does not exist") from error
ValueError: 'C:\Python313\install\Lib\site-packages\comfyui_workflow_templates\templates' does not exist

C:\ComfyUI>pip list
Package                                Version
-------------------------------------- ------------------------
accelerate                             1.12.0.dev0
aiofiles                               25.1.0
aiohappyeyeballs                       2.6.1
aiohttp                                3.13.2
aiohttp_socks                          0.10.1
aiosignal                              1.4.0
albucore                               0.0.33
albumentations                         2.0.8
alembic                                1.17.1
annotated-doc                          0.0.3
annotated-types                        0.7.0
antlr4-python3-runtime                 4.13.2
anyio                                  4.11.0
anysqlite                              0.0.5
asteval                                1.0.7
asttokens                              3.0.0
attrs                                  25.4.0
audioop-lts                            0.2.2
audioread                              3.1.0
av                                     16.0.1
bashlex                                0.18
beautifulsoup4                         4.14.2
bitsandbytes                           0.48.2
blinker                                1.9.0
braceexpand                            0.1.7
bracex                                 2.6
brotli                                 1.2.0
build                                  1.3.0
causal_conv1d                          1.5.4+true
certifi                                2025.10.5
cffi                                   2.0.0
cfgv                                   3.4.0
chardet                                5.2.0
charset-normalizer                     3.4.4
cibuildwheel                           3.2.1
click                                  8.3.0
click-default-group                    1.2.4
cmake                                  4.1.2
color-matcher                          0.6.0
colorama                               0.4.6
coloredlogs                            15.0.1
colorlog                               6.10.1
comfyui-embedded-docs                  0.3.1
comfyui_frontend_package               1.32.2
comfyui-workflow-templates             0.3.0
comfyui-workflow-templates-core        0.3.0
comfyui-workflow-templates-media-api   0.3.0
comfyui-workflow-templates-media-image 0.3.0
comfyui-workflow-templates-media-other 0.3.0
comfyui-workflow-templates-media-video 0.3.0
comm                                   0.2.3
conformer                              0.3.2
contourpy                              1.3.3
cryptography                           46.0.3
cupy-cuda13x                           13.6.0
curl_cffi                              0.13.0
cycler                                 0.12.1
Cython                                 3.2.0
datasets                               4.4.1
ddt                                    1.7.2
decorator                              5.2.1
dep-logic                              0.5.2
dependency-groups                      1.3.1
diffusers                              0.36.0.dev0
dill                                   0.4.0
distlib                                0.4.0
distro                                 1.9.0
docling                                2.61.1
docling-core                           2.50.1
docling-ibm-models                     3.10.2
docling-parse                          4.7.1
docstring_parser                       0.17.0
docutils                               0.22.3
easydict                               1.13
easyocr                                1.7.2
einops                                 0.8.1
et_xmlfile                             2.0.0
executing                              2.2.1
facexlib                               0.3.0
Faker                                  37.12.0
fast_hadamard_transform                1.0.4.post1+true
fastapi                                0.121.0
fastrlock                              0.8.3
ffmpeg-python                          0.2.0
ffmpy                                  0.6.4
filelock                               3.20.0
filetype                               1.2.0
filterpy                               1.4.5
findpython                             0.7.0
flash_attn                             2.8.3
flatbuffers                            25.9.23
fonttools                              4.60.1
frozenlist                             1.8.0
fsspec                                 2025.10.0
ftfy                                   6.3.1
funcparserlib                          2.0.0a0
future                                 1.0.0
gallery_dl                             1.30.10
gguf                                   0.17.1
gitdb                                  4.0.12
GitPython                              3.1.45
greenlet                               3.2.4
groovy                                 0.1.2
guidance                               0.3.0
guidance-stitch                        0.1.5
h11                                    0.16.0
h2                                     4.3.0
hf-xet                                 1.2.0
hishel                                 1.1.4
hpack                                  4.1.0
httpcore                               1.0.9
httpx                                  0.28.1
huggingface-hub                        0.36.0
humanfriendly                          10.0
humanize                               4.14.0
humpy                                  0.1.2
hy                                     1.1.0
hyperframe                             6.1.0
id                                     1.5.0
identify                               2.6.15
idna                                   3.11
ImageIO                                2.37.2
imageio-ffmpeg                         0.6.0
imagesize                              1.4.1
importlib_metadata                     8.7.0
iniconfig                              2.3.0
insightface                            0.7.3
installer                              0.7.0
ipython                                9.7.0
ipython_pygments_lexers                1.1.1
ipywidgets                             8.1.8
jedi                                   0.19.2
Jinja2                                 3.1.6
jiter                                  0.11.1
joblib                                 1.5.2
jsonlines                              4.0.0
jsonref                                1.1.0
jsonschema                             4.25.1
jsonschema-specifications              2025.9.1
jupyterlab_widgets                     3.0.16
kiwisolver                             1.4.10rc0
kornia                                 0.8.1
kornia_rs                              0.1.9
latex2mathml                           3.78.1
lazy_loader                            0.4
library                                3.0.142
librosa                                0.11.0
lightning-utilities                    0.15.2
llguidance                             1.3.0
llvmlite                               0.46.0b1
loguru                                 0.7.3
lxml                                   6.0.2
Mako                                   1.3.10
markdown-it-py                         4.0.0
markdowncleaner                        0.3.0
marko                                  2.2.1
MarkupSafe                             3.0.3
matplotlib                             3.10.7
matplotlib-inline                      0.2.1
matrix-nio                             0.25.2
maturin                                1.9.6
mdurl                                  0.1.2
mistral_common                         1.8.5
ml_dtypes                              0.5.3
modelscope                             1.31.0
mpire                                  2.10.2
mpmath                                 1.3.0
msgpack                                1.1.2
mss                                    10.1.0
multidict                              6.7.0
multiprocess                           0.70.18
mutagen                                1.47.0
narwhals                               2.10.2
natsort                                8.4.0
networkx                               3.6rc0
ninja                                  1.13.0
nodeenv                                1.9.1
numba                                  0.63.0b1
numpy                                  2.3.4
nvidia-cublas                          13.1.0.3
nvidia-cudnn-cu13                      9.15.0.57
nvidia-cudnn-frontend                  1.16.0
omegaconf                              2.4.0.dev4
onnx                                   1.19.1
onnxruntime                            1.23.2
open_clip_torch                        3.2.0
openai                                 2.7.1
opencv-contrib-python                  4.12.0.88
opencv-python                          4.12.0.88
opencv-python-headless                 4.12.0.88
openpyxl                               3.1.5
optimum                                2.1.0.dev0
orjson                                 3.11.4
packaging                              25.0
pandas                                 2.3.3
parso                                  0.8.5
pbs-installer                          2025.10.31
pdm                                    2.26.1
pdm-backend                            2.4.5
peft                                   0.18.0rc1.dev0
pillow                                 12.0.0
pip                                    25.3
platformdirs                           4.5.0
plotly                                 6.4.0
pluggy                                 1.6.0
polyfactory                            2.22.3
pooch                                  1.8.2
praw                                   7.8.1
prawcore                               2.4.0
pre_commit                             4.3.0
prettytable                            3.16.0
prometheus_client                      0.23.1
prompt_toolkit                         3.0.52
propcache                              0.4.1
protobuf                               6.33.0
psutil                                 7.1.3
pure_eval                              0.2.3
puremagic                              2.0.0b4
pyarrow                                22.0.0
pybind11                               3.0.1
pyclipper                              1.3.0.post6
pycountry                              24.6.1
pycparser                              2.23
pycryptodome                           3.23.0
pycryptodomex                          3.23.0
pydantic                               2.12.4
pydantic_core                          2.41.5
pydantic-extra-types                   2.10.6
pydantic-settings                      2.11.0
pydub                                  0.25.1
pyelftools                             0.32
PyGithub                               2.8.1
Pygments                               2.19.2
PyJWT                                  2.10.1
pylatexenc                             2.10
pyloudnorm                             0.1.1
pymediainfo                            7.0.1
PyNaCl                                 1.6.0
pyparsing                              3.3.0a1
pypdfium2                              5.0.0
pypng                                  0.20220715.0
pyproject_hooks                        1.2.0
pyreadline3                            3.5.4
PySide6                                6.10.0
PySide6_Addons                         6.10.0
PySide6_Essentials                     6.10.0
pysubs2                                1.8.0
pytest                                 8.4.2
python-bidi                            0.6.7
python-dateutil                        2.9.0.post0
python-docx                            1.2.0
python-dotenv                          1.2.1
python-mpv-jsonipc                     1.2.1
python-multipart                       0.0.20
python-pptx                            1.0.2
python-socks                           2.7.2
pytorch-extension                      0.2
pytorch-lightning                      2.6.0.dev0
pytz                                   2025.2
PyWavelets                             1.9.0
pywin32                                311
pywinpath                              2016.5.3b3
PyYAML                                 6.0.3
qtorch                                 0.3.0
qwen-vl-utils                          0.0.14
rapidocr                               3.4.2
referencing                            0.37.0
regex                                  2025.11.3
requests                               2.32.5
requests-file                          3.0.1
resolvelib                             1.2.1
rich                                   14.2.0
rotary-embedding-torch                 0.8.9
rpds-py                                0.28.0
rtree                                  1.4.1
ruff                                   0.14.4
s3tokenizer                            0.2.0
safehttpx                              0.1.7
safetensors                            0.7.0rc0
sageattention                          2.2.0
sageattn3                              1.0.0
scikit-image                           0.25.2
scikit-learn                           1.7.2
scipy                                  1.16.3
screeninfo                             0.8.1
seaborn                                0.13.2
semantic-version                       2.10.0
semchunk                               3.2.5
sentencepiece                          0.2.2
setuptools                             80.9.0
setuptools-rust                        1.12.0
setuptools-scm                         9.2.2
shapely                                2.1.2
shellingham                            1.5.4
shiboken6                              6.10.0
simsimd                                6.5.3
six                                    1.17.0
smmap                                  5.0.2
sniffio                                1.3.1
socksio                                1.0.0
soundfile                              0.13.1
soupsieve                              2.8
soxr                                   1.0.0
spandrel                               0.4.1
spas_sage_attn                         0.1.0
SQLAlchemy                             2.0.44
sqlite-fts4                            1.0.3
sqlite-utils                           4.0a0
stack-data                             0.6.3
standard-aifc                          3.13.0
standard-chunk                         3.13.0
standard-sunau                         3.13.0
starlette                              0.50.0
stringzilla                            4.2.3
sympy                                  1.14.0
tabulate                               0.9.0
threadpoolctl                          3.6.0
tifffile                               2025.10.16
tiktoken                               0.12.0
timm                                   1.0.22
tinytag                                2.1.2
tldextract                             5.3.0
tokenizers                             0.22.1
toml                                   0.10.2
tomli                                  2.3.0
tomli_w                                1.2.0
tomlkit                                0.13.3
torch                                  2.10.0.dev20251106+cu130
torchaudio                             2.10.0.dev20251105+cu130
torchdiffeq                            0.2.5
torchmetrics                           1.8.2
torchsde                               0.2.6
torchvision                            0.25.0.dev20251106+cu130
tqdm                                   4.67.1
traitlets                              5.14.3
trampoline                             0.1.2
transformers                           4.57.1
triton-windows                         3.5.0.post21
truststore                             0.10.4
typer                                  0.20.0
typer-slim                             0.20.0
typing_extensions                      4.15.0
typing-inspection                      0.4.2
tzdata                                 2025.2
unearth                                0.18.1
unpaddedbase64                         2.1.0
update-checker                         0.18.0
urllib3                                2.5.0
uv                                     0.9.7
uvicorn                                0.38.0
virtualenv                             20.35.4
wcwidth                                0.2.14
websocket-client                       1.9.0
websockets                             15.0.1
wget                                   3.2
wheel                                  0.45.1
widgetsnbextension                     4.0.15
win32_setctime                         1.2.0
xformers                               0.0.33+e98c69b.d20251104
xlsxwriter                             3.2.9
xxhash                                 3.6.0
yacs                                   0.1.8
yarl                                   1.22.0
yt-dlp                                 2025.11.3.233024.dev0
yt-dlp-ejs                             0.3.0
zipp                                   3.23.0

C:\ComfyUI>

Other

No response

jovan2009 avatar Nov 07 '25 11:11 jovan2009

This is the content of the folder mentioned in the error:

Image

jovan2009 avatar Nov 07 '25 11:11 jovan2009

Uninstalling comfyui-workflow-templates and related packages and installing the requirements.txt version solves the problem.

C:\ComfyUI>pip uninstall comfyui-workflow-templates comfyui-workflow-templates-core comfyui-workflow-templates-media-api comfyui-workflow-templates-media-image comfyui-workflow-templates-media-other comfyui-workflow-templates-media-video
Found existing installation: comfyui-workflow-templates 0.3.0
Uninstalling comfyui-workflow-templates-0.3.0:
  Would remove:
    c:\python313\install\lib\site-packages\comfyui_workflow_templates-0.3.0.dist-info\*
    c:\python313\install\lib\site-packages\comfyui_workflow_templates\*
Proceed (Y/n)? y
  Successfully uninstalled comfyui-workflow-templates-0.3.0
Found existing installation: comfyui-workflow-templates-core 0.3.0
Uninstalling comfyui-workflow-templates-core-0.3.0:
  Would remove:
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_core-0.3.0.dist-info\*
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_core\*
Proceed (Y/n)? y
  Successfully uninstalled comfyui-workflow-templates-core-0.3.0
Found existing installation: comfyui-workflow-templates-media-api 0.3.0
Uninstalling comfyui-workflow-templates-media-api-0.3.0:
  Would remove:
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_media_api-0.3.0.dist-info\*
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_media_api\*
Proceed (Y/n)? y
  Successfully uninstalled comfyui-workflow-templates-media-api-0.3.0
Found existing installation: comfyui-workflow-templates-media-image 0.3.0
Uninstalling comfyui-workflow-templates-media-image-0.3.0:
  Would remove:
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_media_image-0.3.0.dist-info\*
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_media_image\*
Proceed (Y/n)? y
  Successfully uninstalled comfyui-workflow-templates-media-image-0.3.0
Found existing installation: comfyui-workflow-templates-media-other 0.3.0
Uninstalling comfyui-workflow-templates-media-other-0.3.0:
  Would remove:
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_media_other-0.3.0.dist-info\*
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_media_other\*
Proceed (Y/n)? y
  Successfully uninstalled comfyui-workflow-templates-media-other-0.3.0
Found existing installation: comfyui-workflow-templates-media-video 0.3.0
Uninstalling comfyui-workflow-templates-media-video-0.3.0:
  Would remove:
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_media_video-0.3.0.dist-info\*
    c:\python313\install\lib\site-packages\comfyui_workflow_templates_media_video\*
Proceed (Y/n)? y
  Successfully uninstalled comfyui-workflow-templates-media-video-0.3.0

C:\ComfyUI>pip install comfyui-workflow-templates==0.2.11
Collecting comfyui-workflow-templates==0.2.11
  Downloading comfyui_workflow_templates-0.2.11-py3-none-any.whl.metadata (55 kB)
Downloading comfyui_workflow_templates-0.2.11-py3-none-any.whl (88.2 MB)
   ---------------------------------------- 88.2/88.2 MB 6.1 MB/s  0:00:14
Installing collected packages: comfyui-workflow-templates
Successfully installed comfyui-workflow-templates-0.2.11

C:\ComfyUI>python main.py
Adding extra search path checkpoints E:\ComfyUI\models\checkpoints
Adding extra search path clip E:\ComfyUI\models\clip
Adding extra search path clip_vision E:\ComfyUI\models\clip_vision
Adding extra search path configs E:\ComfyUI\models\configs
Adding extra search path controlnet E:\ComfyUI\models\controlnet
Adding extra search path diffusion_models E:\ComfyUI\models\diffusion_models
Adding extra search path diffusion_models E:\ComfyUI\models\unet
Adding extra search path embeddings E:\ComfyUI\models\embeddings
Adding extra search path loras E:\ComfyUI\models\loras
Adding extra search path upscale_models E:\ComfyUI\models\upscale_models
Adding extra search path vae E:\ComfyUI\models\vae
Checkpoint files will always be loaded safely.
Total VRAM 15975 MB, total RAM 65465 MB
pytorch version: 2.10.0.dev20251106+cu130
C:\Python313\install\Lib\site-packages\torch\library.py:356: UserWarning: Warning only once for all operators,  other operators may also be overridden.
  Overriding a previously registered kernel for the same operator and the same dispatch key
  operator: flash_attn::_flash_attn_backward(Tensor dout, Tensor q, Tensor k, Tensor v, Tensor out, Tensor softmax_lse, Tensor(a6!)? dq, Tensor(a7!)? dk, Tensor(a8!)? dv, float dropout_p, float softmax_scale, bool causal, SymInt window_size_left, SymInt window_size_right, float softcap, Tensor? alibi_slopes, bool deterministic, Tensor? rng_state=None) -> Tensor
    registered at C:\Python313\install\Lib\site-packages\torch\_library\custom_ops.py:922
  dispatch key: ADInplaceOrView
  previous kernel: no debug info
       new kernel: registered at C:\Python313\install\Lib\site-packages\torch\_library\custom_ops.py:922 (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\pytorch\aten\src\ATen\core\dispatch\OperatorEntry.cpp:215.)
  self.m.impl(
xformers version: 0.0.33+e98c69b.d20251104
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 5060 Ti : cudaMallocAsync
Enabled pinned memory 29459.0
working around nvidia conv3d memory bug.
Using xformers attention
Python version: 3.13.9 (main, Oct 31 2025, 22:58:20) [MSC v.1944 64 bit (AMD64)]
ComfyUI version: 0.3.68
ComfyUI frontend version: 1.32.2
[Prompt Server] web root: C:\Python313\install\Lib\site-packages\comfyui_frontend_package\static

Import times for custom nodes:
   0.0 seconds: C:\ComfyUI\custom_nodes\websocket_image_save.py

Context impl SQLiteImpl.
Will assume non-transactional DDL.
No target revision found.
Starting server

To see the GUI go to: http://127.0.0.1:8188

jovan2009 avatar Nov 07 '25 11:11 jovan2009

Simply adding 'templates' folder to '\comfyui_workflow_templates' allowed to run server for me. Just as another simple solution.

xAK3Dx avatar Nov 07 '25 12:11 xAK3Dx

Simply adding 'templates' folder to '\comfyui_workflow_templates' allowed to run server for me. Just as another simple solution.

I see. I didn't try it but sounds reasonable. But it is still a bug that has to be corrected or mark the new templates package as beta / release candidate, not final. I stumbled upon it due to my compulsive behavior to update every package to latest version, if possible. Following requirements.txt would have prevented that. But I never follow requirements.txt very strictly in the regard of versions of the packages in general, that's how I roll :-D It's the first time I shot myself in the foot in this way updating willy-nilly comfyui-workflow-templates package. Of course I shot myself in the foot plenty of times with other packages.

jovan2009 avatar Nov 07 '25 13:11 jovan2009

A better fix might be to add and os.path.exists(workflow_templates_path) to line 851 in server.py (https://github.com/comfyanonymous/ComfyUI/blob/a1a70362ca376cff05a0514e0ce771ab26d92fd9/server.py#L851), so that it becomes:

        workflow_templates_path = FrontendManager.templates_path()
        if workflow_templates_path and os.path.exists(workflow_templates_path):
            self.app.add_routes([
                web.static('/templates', workflow_templates_path)
            ])

mitch-avis avatar Nov 07 '25 20:11 mitch-avis

Simply adding 'templates' folder to '\comfyui_workflow_templates' allowed to run server for me. Just as another simple solution.

@xAK3Dx I tried your solution but it works only apparently. Meaning that indeed it allows the server to run but when I tried to look at the workflow templates it shows only templates that come with custom nodes:

Image

So I reverted again to comfyui-workflow-templates==0.2.11.

jovan2009 avatar Nov 10 '25 11:11 jovan2009

@jovan2009 Yeah, I didn't checked 'Templates' inside ComfyUi Indeed.

xAK3Dx avatar Nov 10 '25 11:11 xAK3Dx

@jovan2009 Yeah, I didn't checked 'Templates' inside ComfyUi Indeed.

@xAK3Dx Yeah, it was unlikely for such a hack to work 100% anyway.

jovan2009 avatar Nov 10 '25 11:11 jovan2009

I will close this, currently this is not an issue any more.

jovan2009 avatar Nov 22 '25 14:11 jovan2009