Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HyVideoTextEncode 'NoneType' object is not subscriptable #427

Open
dihan opened this issue Mar 7, 2025 · 0 comments
Open

HyVideoTextEncode 'NoneType' object is not subscriptable #427

dihan opened this issue Mar 7, 2025 · 0 comments

Comments

@dihan
Copy link

dihan commented Mar 7, 2025

Image

ComfyUI Error Report

Error Details

  • Node ID: 30
  • Node Type: HyVideoTextEncode
  • Exception Type: TypeError
  • Exception Message: 'NoneType' object is not subscriptable

Stack Trace

  File "/home/dihan/ml/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 "/home/dihan/ml/ComfyUI/custom_nodes/wavespeed/first_block_cache.py", line 90, in new_get_output_data
    out = get_output_data(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/dihan/ml/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 "/home/dihan/ml/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/home/dihan/ml/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/dihan/ml/ComfyUI/custom_nodes/comfyui-hunyuanvideowrapper/nodes.py", line 932, in process
    prompt_embeds, negative_prompt_embeds, attention_mask, negative_attention_mask = encode_prompt(self,
                                                                                     ^^^^^^^^^^^^^^^^^^^

  File "/home/dihan/ml/ComfyUI/custom_nodes/comfyui-hunyuanvideowrapper/nodes.py", line 855, in encode_prompt
    text_inputs = text_encoder.text2tokens(prompt,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/dihan/ml/ComfyUI/custom_nodes/comfyui-hunyuanvideowrapper/hyvideo/text_encoder/__init__.py", line 238, in text2tokens
    text = self.apply_text_to_template(text, prompt_template["template"])
                                             ~~~~~~~~~~~~~~~^^^^^^^^^^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant