mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
comfyUI node workflow cant run #291
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Iassc4444 on GitHub (May 18, 2025).
Self Checks
Provide a description of requested docs changes
system remind me edit prompt part for
{{positive_prompt}}, I have done it.but new problem happened.
Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"UnboundLocalError","message":"cannot access local variable 'prompt' where it is not associated with a value"}
@dosubot[bot] commented on GitHub (May 18, 2025):
The error you're encountering,
UnboundLocalError, typically occurs when a local variable is referenced before it has been assigned a value. In the context of the ComfyUI node workflow, this error suggests that the 'prompt' variable is being accessed without being properly initialized.To resolve this issue, ensure that the 'prompt' variable is initialized with a non-empty string before it is used in the workflow. The ComfyUI node workflow requires the 'prompt' to be provided by the user. If the 'prompt' is not set, the system will prompt you to input a prompt. You can check the initialization of the 'prompt' in the
_invokemethod, which should look something like this:Make sure that the 'prompt' is correctly set in your workflow configuration. If you have modified the prompt part for
{{positive_prompt}}, double-check that this variable is being correctly passed and initialized in your workflow setup [1][2].To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@Noobzm commented on GitHub (May 22, 2025):
@Iassc4444
Have you solved your problem? I have encountered a similar issue:
Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"UnboundLocalError","message":"cannot access local variable 'ws' where it is not associated with a value"}