ComfyUI-to-Python-Extension icon indicating copy to clipboard operation
ComfyUI-to-Python-Extension copied to clipboard

Doesn't work with Power Lora Loader (standard ComfyUI node from rgthree), crashes

Open jnpatrick99 opened this issue 1 year ago • 2 comments

It generates the following code that cannot be processed by black:

power_lora_loader_rgthree_631 = power_lora_loader_rgthree.load_loras(PowerLoraLoaderHeaderWidget={'type': 'PowerLoraLoaderHeaderWidget'}, lora_1={'on': False, 'lora': 'lora.safetensors', 'strength': 1.2}, lora_2={'on': False, 'lora': 'lora2.safetensors', 'strength': 0.7}, ➕ Add Lora="", model=get_value_at_index(any_switch_rgthree_633, 0), clip=get_value_at_index(dualcliploader_11, 0))

this is generated in assemble_python_code.py in def assemble_python_code:

final_code = black.format_str(final_code, mode=black.Mode())

Please notice the "➕ Add Lora" where ➕ is an illegal character.

jnpatrick99 avatar Jan 16 '25 19:01 jnpatrick99

facing exactly the same problem

Tuich avatar Jan 20 '25 01:01 Tuich

You can try https://github.com/pydn/ComfyUI-to-Python-Extension/issues/114

mbylstra avatar Apr 04 '25 11:04 mbylstra