comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
55.83k stars 5.89k forks source link

Error occurred when executing CheckpointLoaderSimple: name 'execution_block_cb' is not defined #4422

Open RODRIGOAGJ opened 2 months ago

RODRIGOAGJ commented 2 months ago

Your question

Greetings! I seek your expertise to assist in resolving an error in execution.py:

def execution_block_cb(block): if block.message is not None: mes = { "prompt_id": prompt_id, "node_id": unique_id, "node_type": class_type, "executed": list(executed),

                    "exception_message": f"Execution Blocked: {block.message}",
                    "exception_type": "ExecutionBlocked",
                    "traceback": [],
                    "current_inputs": [],
                    "current_outputs": [],
                }
                server.send_sync("execution_error", mes, server.client_id)
                return ExecutionBlocker(None)
            else:
                return block   

Can't start ComfyUI, I sincerely value your assistance. Best regards Screenshot 2024-08-16 191040

Logs

No response

Other

No response

comfyanonymous commented 2 months ago

This is a custom node issue, try updating.