Skip to content

KeyError: '➕' #119

@Harr7y

Description

@Harr7y

I am running a FLUX try-on workflow, but an error occurs.

Traceback (most recent call last):
File "/scratch/dyvm6xra/dyvm6xrauser25/comfyUI/ComfyUI/custom_nodes/comfyui-to-python-extension/init.py", line 50, in save_as_script
ComfyUItoPython(workflow=workflow, output_file=sio)
File "/scratch/dyvm6xra/dyvm6xrauser25/comfyUI/ComfyUI/custom_nodes/comfyui-to-python-extension/comfyui_to_python.py", line 544, in init
self.execute()
File "/scratch/dyvm6xra/dyvm6xrauser25/comfyUI/ComfyUI/custom_nodes/comfyui-to-python-extension/comfyui_to_python.py", line 573, in execute
generated_code = code_generator.generate_workflow(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/dyvm6xra/dyvm6xrauser25/comfyUI/ComfyUI/custom_nodes/comfyui-to-python-extension/comfyui_to_python.py", line 290, in generate_workflow
final_code = self.assemble_python_code(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/dyvm6xra/dyvm6xrauser25/comfyUI/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 1208, in format_str
File "src/black/init.py", line 1222, in _format_str_once
File "src/black/parsing.py", line 73, in lib2to3_parse
File "src/blib2to3/pgen2/driver.py", line 204, in parse_string
File "src/blib2to3/pgen2/driver.py", line 149, in parse_tokens
KeyError: '➕'

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