Skip to content

KeyError: '➕' #119

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

Open
Harr7y opened this issue May 13, 2025 · 1 comment
Open

KeyError: '➕' #119

Harr7y opened this issue May 13, 2025 · 1 comment

Comments

@Harr7y
Copy link

Harr7y commented May 13, 2025

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: '➕'

@Harr7y
Copy link
Author

Harr7y commented May 13, 2025

I printed the code and found the error:

power_lora_loader_rgthree = NODE_CLASS_MAPPINGS["Power Lora Loader (rgthree)"]()
power_lora_loader_rgthree_102 = power_lora_loader_rgthree.load_loras(PowerLoraLoaderHeaderWidget={'type': 'PowerLoraLoaderHeaderWidget'}, ➕ Add Lora="", model=get_value_at_index(checkpointloadersimple_133, 0), clip=get_value_at_index(dualcliploader_11, 0))

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