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

Can't handle the Impact wildcard processor

Open AuricMists opened this issue 1 year ago • 2 comments

I get an issue with the Impact wildcard processor - Traceback (most recent call last): File "F:\Work\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-to-Python-Extension_init_.py", line 50, in save_as_script ComfyUItoPython(workflow=workflow, output_file=sio) File "F:\Work\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 544, in init self.execute() File "F:\Work\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 573, in execute generated_code = code_generator.generate_workflow( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\Work\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 290, in generate_workflow final_code = self.assemble_python_code( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\Work\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 413, in assemble_python_code final_code = black.format_str(final_code, mode=black.Mode()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src\black_init_.py", line 1204, in format_str File "src\black_init_.py", line 1218, in _format_str_once File "src\black\parsing.py", line 98, in lib2to3_parse black.parsing.InvalidInput: Cannot parse: 130:620: impactwildcardprocessor_61 = impactwildcardprocessor.doit(wildcard_text="[some text with wildcard macro expansions]", populated_text="[Some text with the wildcards expanded]", mode=True, seed=random.randint(1, 2**64), Select to add Wildcard="Select the Wildcard to add to the text")

AuricMists avatar Dec 20 '24 16:12 AuricMists

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

mbylstra avatar Apr 04 '25 11:04 mbylstra

Same again as #92, I disable the node and replace it with a text node then patch the resulting code to suit.

AuricMists avatar Apr 07 '25 12:04 AuricMists