Skip to content

ERROR saving with "embedding:" ->expected str, bytes or os.PathLike object, not NoneType UPDATE: (Workarround) #78

@amokiller

Description

@amokiller

hello everyone, I wanted to report a bug in the “saveimagewithmetadata” node. The error occurs when using “embedding:” in prompts (negative or positive).

tested with multiple text_encoder_nodes including basic ones (comfy-core)

It doesn't matter what name the embedding has or what path it is in. When you remove the “embedding:” the error disappears but the embedding is not loaded.

!!! Exception during processing !!! expected str, bytes or os.PathLike object, not NoneType Traceback (most recent call last): File "F:\ComfyUI_windows_portable2\ComfyUI\execution.py", line 361, 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:\ComfyUI_windows_portable2\ComfyUI\execution.py", line 236, 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:\ComfyUI_windows_portable2\ComfyUI\execution.py", line 208, in _map_node_over_list process_inputs(input_dict, i) File "F:\ComfyUI_windows_portable2\ComfyUI\execution.py", line 197, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable2\ComfyUI\custom_nodes\ComfyUI-SaveImageWithMetaData\py\nodes\node.py", line 85, in save_images pnginfo_dict_src = self.gen_pnginfo( ^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable2\ComfyUI\custom_nodes\ComfyUI-SaveImageWithMetaData\py\nodes\node.py", line 179, in gen_pnginfo inputs = Capture.get_inputs() ^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable2\ComfyUI\custom_nodes\ComfyUI-SaveImageWithMetaData\py\capture.py", line 65, in get_inputs v = format(v, input_data) ^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable2\ComfyUI\custom_nodes\ComfyUI-SaveImageWithMetaData\py\defs\formatters.py", line 63, in extract_embedding_hashes embedding_hashes.append(calc_hash(embedding_file_path)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable2\ComfyUI\custom_nodes\ComfyUI-SaveImageWithMetaData\py\utils\hash.py", line 12, in calc_hash with open(filename, "rb") as f: ^^^^^^^^^^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not NoneType

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