Skip to content

Scripted Workflow Execution Fails with KeyError: '0' in "comfyui-easy-use" #100

@linfen0

Description

@linfen0

When i use this node's Loader ComfyUI Easy use error occured regardless to virtual,or real mode.However, the same workflow runs successfully when executed through the ComfyUI frontend.

Actual Behavior:
The workflow fails with the following error:

[Impact Pack] ComfyUI-Impact-Pack: Error on prompt - several features will not work.
'workflow'
[EasyUse] Loading models...
[EasyUse] Load LORA: sdxl_lightning_8step_lora.safetensors: 1.0, 1.0, LBW=None, A=None, B=None
!!! Exception during processing !!! '0'
Traceback (most recent call last):
  File "f:\AI_Study_studio\Ai_draw\ComfyUI\execution.py", line 327, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "f:\AI_Study_studio\Ai_draw\ComfyUI\execution.py", line 202, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "f:\AI_Study_studio\Ai_draw\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "f:\AI_Study_studio\Ai_draw\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\AI_Study_studio\Ai_draw\ComfyUI\custom_nodes\comfyui-easy-use\py\nodes\loaders.py", line 177, in a1111loader
    return super().adv_pipeloader(ckpt_name, 'Default', vae_name, clip_skip,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\AI_Study_studio\Ai_draw\ComfyUI\custom_nodes\comfyui-easy-use\py\nodes\loaders.py", line 86, in adv_pipeloader
    positive_embeddings_final, positive_wildcard_prompt, model, clip = prompt_to_cond('positive', model, clip, clip_skip, lora_stack, positive, positive_token_normalization, positive_weight_interpretation, a1111_prompt_style, my_unique_id, prompt, easyCache, model_type=model_type)
                                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\AI_Study_studio\Ai_draw\ComfyUI\custom_nodes\comfyui-easy-use\py\libs\conditioning.py", line 10, in prompt_to_cond
    styles_selector = is_linked_styles_selector(prompt, my_unique_id, type)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\AI_Study_studio\Ai_draw\ComfyUI\custom_nodes\comfyui-easy-use\py\libs\utils.py", line 189, in is_linked_styles_selector
    inputs_values = prompt[unique_id]['inputs'][prompt_type] if prompt_type in prompt[unique_id][
                                                                               ~~~~~~^^^^^^^^^^^
KeyError: '0'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpendingPending ComfyUI or custom node changesruntime

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions