[GH-ISSUE #1446] cm-cli.py fix all : ValueError: too many values to unpack #606

Closed
opened 2026-10-27 21:19:45 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @mmartial on GitHub (Jan 12, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1446

I have a local installation of ComfyUI and ComfyUI-Manager.

ComfyUI: v0.3.10-41-g2307ff6
         (2025-01-08)
Manager: V3.7

Both share an activated venv.
COMFYUI_PATH is set.
I only have one custom node installed: comfyui-crystools

When I try to run pyhton3 PATH/cm-cli.py fix all
I get a ValueError: too many values to unpack (expected 2)

Error log:

FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/2233941102_nodes_page_1_limit_1000.json [DONE]
FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE]
FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/2233941102_nodes_page_1_limit_1000.json [DONE]
nightly_channel: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/cache
FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE]
Current snapshot is saved as `2025-01-12_22-06-36_cli-autosave.json`
╭─────────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ /comfy/mnt/ComfyUI/custom_nodes/ComfyUI-Manager/cm-cli.py:812 in fix                                                                                                                                                                             │
│                                                                                                                                                                                                                                                  │
│    809 │   if 'all' in nodes:                                                                   ╭───────── locals ─────────╮                                                                                                                     │
│    810 │   │   asyncio.run(auto_save_snapshot())                                                │        channel = None    │                                                                                                                     │
│    811 │                                                                                        │           mode = None    │                                                                                                                     │
│ ❱  812 │   for_each_nodes(nodes, fix_node, allow_all=True)                                      │          nodes = ['all'] │                                                                                                                     │
│    813                                                                                          │ user_directory = None    │                                                                                                                     │
│    814                                                                                          ╰──────────────────────────╯                                                                                                                     │
│    815 @app.command("show-versions", help="Show all available versions of the node")                                                                                                                                                             │
│                                                                                                                                                                                                                                                  │
│ /comfy/mnt/ComfyUI/custom_nodes/ComfyUI-Manager/cm-cli.py:571 in for_each_nodes                                                                                                                                                                  │
│                                                                                                                                                                                                                                                  │
│    568 │   is_all = False                                                                       ╭────── locals ───────╮                                                                                                                          │
│    569 │   if allow_all and 'all' in nodes:                                                     │ allow_all = True    │                                                                                                                          │
│    570 │   │   is_all = True                                                                    │    is_all = True    │                                                                                                                          │
│ ❱  571 │   │   nodes = get_all_installed_node_specs()                                           │     nodes = ['all'] │                                                                                                                          │
│    572 │   else:                                                                                ╰─────────────────────╯                                                                                                                          │
│    573 │   │   nodes = [x for x in nodes if x.lower() not in ['comfy', 'comfyui', 'all']]                                                                                                                                                        │
│    574                                                                                                                                                                                                                                           │
│                                                                                                                                                                                                                                                  │
│ /comfy/mnt/ComfyUI/custom_nodes/ComfyUI-Manager/cm-cli.py:549 in get_all_installed_node_specs                                                                                                                                                    │
│                                                                                                                                                                                                                                                  │
│    546 │   │   │   node_spec_str = f"{k}@{str(latest[0])}"                                      ╭──────────────────────────────────── locals ─────────────────────────────────────╮                                                              │
│    547 │   │   │   res.append(node_spec_str)                                                    │             k = 'comfyui-crystools'                                             │                                                              │
│    548 │                                                                                        │ node_spec_str = 'comfyui-crystools@1.21.0'                                      │                                                              │
│ ❱  549 │   for k, _ in unified_manager.nightly_inactive_nodes.keys():                           │     processed = {'comfyui-crystools', 'comfyui-manager'}                        │                                                              │
│    550 │   │   if k in processed:                                                               │           res = ['comfyui-manager@nightly', 'comfyui-crystools@1.21.0']         │                                                              │
│    551 │   │   │   continue                                                                     │             v = ('1.21.0', '/comfy/mnt/ComfyUI/custom_nodes/comfyui-crystools') │                                                              │
│    552                                                                                          ╰─────────────────────────────────────────────────────────────────────────────────╯                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: too many values to unpack (expected 2)
Originally created by @mmartial on GitHub (Jan 12, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1446 I have a local installation of ComfyUI and ComfyUI-Manager. ``` ComfyUI: v0.3.10-41-g2307ff6 (2025-01-08) Manager: V3.7 ``` Both share an activated `venv`. `COMFYUI_PATH` is set. I only have one custom node installed: `comfyui-crystools` When I try to run `pyhton3 PATH/cm-cli.py fix all` I get a `ValueError: too many values to unpack (expected 2)` Error log: ``` FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/2233941102_nodes_page_1_limit_1000.json [DONE] FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE] FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/2233941102_nodes_page_1_limit_1000.json [DONE] nightly_channel: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/cache FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE] Current snapshot is saved as `2025-01-12_22-06-36_cli-autosave.json` ╭─────────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ /comfy/mnt/ComfyUI/custom_nodes/ComfyUI-Manager/cm-cli.py:812 in fix │ │ │ │ 809 │ if 'all' in nodes: ╭───────── locals ─────────╮ │ │ 810 │ │ asyncio.run(auto_save_snapshot()) │ channel = None │ │ │ 811 │ │ mode = None │ │ │ ❱ 812 │ for_each_nodes(nodes, fix_node, allow_all=True) │ nodes = ['all'] │ │ │ 813 │ user_directory = None │ │ │ 814 ╰──────────────────────────╯ │ │ 815 @app.command("show-versions", help="Show all available versions of the node") │ │ │ │ /comfy/mnt/ComfyUI/custom_nodes/ComfyUI-Manager/cm-cli.py:571 in for_each_nodes │ │ │ │ 568 │ is_all = False ╭────── locals ───────╮ │ │ 569 │ if allow_all and 'all' in nodes: │ allow_all = True │ │ │ 570 │ │ is_all = True │ is_all = True │ │ │ ❱ 571 │ │ nodes = get_all_installed_node_specs() │ nodes = ['all'] │ │ │ 572 │ else: ╰─────────────────────╯ │ │ 573 │ │ nodes = [x for x in nodes if x.lower() not in ['comfy', 'comfyui', 'all']] │ │ 574 │ │ │ │ /comfy/mnt/ComfyUI/custom_nodes/ComfyUI-Manager/cm-cli.py:549 in get_all_installed_node_specs │ │ │ │ 546 │ │ │ node_spec_str = f"{k}@{str(latest[0])}" ╭──────────────────────────────────── locals ─────────────────────────────────────╮ │ │ 547 │ │ │ res.append(node_spec_str) │ k = 'comfyui-crystools' │ │ │ 548 │ │ node_spec_str = 'comfyui-crystools@1.21.0' │ │ │ ❱ 549 │ for k, _ in unified_manager.nightly_inactive_nodes.keys(): │ processed = {'comfyui-crystools', 'comfyui-manager'} │ │ │ 550 │ │ if k in processed: │ res = ['comfyui-manager@nightly', 'comfyui-crystools@1.21.0'] │ │ │ 551 │ │ │ continue │ v = ('1.21.0', '/comfy/mnt/ComfyUI/custom_nodes/comfyui-crystools') │ │ │ 552 ╰─────────────────────────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ValueError: too many values to unpack (expected 2) ```
Author
Owner

@mmartial commented on GitHub (Jan 12, 2025):

If helpful, the CLI process is described at https://github.com/mmartial/ComfyUI-Nvidia-Docker/blob/multibuild/init.bash#L249

<!-- gh-comment-id:2585952558 --> @mmartial commented on GitHub (Jan 12, 2025): If helpful, the CLI process is described at https://github.com/mmartial/ComfyUI-Nvidia-Docker/blob/multibuild/init.bash#L249
Author
Owner

@mmartial commented on GitHub (Jan 13, 2025):

I will also add that once the WebUI is loaded, I am able to Try Fix the Import Failed nodes successfully.

<!-- gh-comment-id:2586016300 --> @mmartial commented on GitHub (Jan 13, 2025): I will also add that once the WebUI is loaded, I am able to `Try Fix` the `Import Failed` nodes successfully.
Author
Owner

@ltdrdata commented on GitHub (Jan 13, 2025):

This is fixed

<!-- gh-comment-id:2586105656 --> @ltdrdata commented on GitHub (Jan 13, 2025): This is fixed
Author
Owner

@mmartial commented on GitHub (Jan 13, 2025):

Confirmed working. Thank you

== Running ComfyUI-Manager CLI to fix installed custom nodes
FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/2233941102_nodes_page_1_limit_1000.json [DONE]
FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE]
FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/2233941102_nodes_page_1_limit_1000.json [DONE]
nightly_channel: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/cache
FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE]
Current snapshot is saved as `2025-01-13_03-31-04_cli-autosave.json`
1/2 [   FIXING  ]: comfyui-manager
Install: pip packages
[...]
<!-- gh-comment-id:2586112328 --> @mmartial commented on GitHub (Jan 13, 2025): Confirmed working. Thank you ``` == Running ComfyUI-Manager CLI to fix installed custom nodes FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/2233941102_nodes_page_1_limit_1000.json [DONE] FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE] FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/2233941102_nodes_page_1_limit_1000.json [DONE] nightly_channel: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/cache FETCH DATA from: /comfy/mnt/ComfyUI/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE] Current snapshot is saved as `2025-01-13_03-31-04_cli-autosave.json` 1/2 [ FIXING ]: comfyui-manager Install: pip packages [...] ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#606
No description provided.