Skip to content

list indices must be integers or slices, not str #32

Open
@Neytiri7

Description

@Neytiri7

It operates normally with the default cliptext Encode,
If you use the Advanced CLIP Text Encode, an error occurs.

There is an error even if the setting is made to none and comfy.

!!! Exception during processing !!! list indices must be integers or slices, not str Traceback (most recent call last): File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\execution.py", line 323, 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 "W:\SynologyDrive\ComfyUI-webui\ComfyUI\execution.py", line 198, 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 "W:\SynologyDrive\ComfyUI-webui\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\ComfyUI_ADV_CLIP_emb\nodes.py", line 21, in encode embeddings_final, pooled = advanced_encode(clip, text, token_normalization, weight_interpretation, w_max=1.0, apply_to_pooled=affect_pooled=='enable') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\ComfyUI_ADV_CLIP_emb\adv_encode.py", line 266, in advanced_encode return advanced_encode_from_tokens(tokenized['l'], ~~~~~~~~~^^^^^ TypeError: list indices must be integers or slices, not str

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions