-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error occurred when executing AnyNode: Syntax error in code: invalid syntax (, line 1) #11
Comments
Press Also, could you provide the output for the function? It should be right above that. |
So, In talking to other users with the same error I thought I'd fixed, I realized this might be a problem with the LLM itself. In one user's case, using GPT4All, he was having cutoff problems where the LLM would start writing the function, and then get cut off in the middle even though his context length was definitely long enough. I've got an eye on the bug. Anyone else having it, perhaps you could shed some more insight? |
I got same problem, I use ollama as the loacal LLM, It works properly in ImpactFrames (IF prompt to prompt) node
|
I did more tests, the default node of Local LLM will work if I only connect the input and output node, but when I edit the prompt, It will get error like below, even I paste the default prompt "Take the input and multiply by 5",
|
RUN-24 gemini-1.5-flash I want you to output the image with an hue rotation by random degrees between 0 and 359 and tweaks the saturation and lightness drastically. Use the current system time as the random seed. Output should be a tensor the same shape as input. tensor([[[[0.5765, 0.5804, 0.4941],
Finding Nodes in Workspace. kwargs: {'id': '24'} 2024-06-05 11:25:56,470- root:124- INFO- Prompt executed in 0.05 seconds |
ValueError 802 AnyNodeLocal
EDIT: I don't know what changed but it spontaneously worked just now. |
Error occurred when executing AnyNode: Syntax error in code: invalid syntax (, line 1) File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute |
File "D:\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI-aki-v1.3\custom_nodes\anynode\nodes\any.py", line 320, in go
raise e
File "D:\ComfyUI-aki-v1.3\custom_nodes\anynode\nodes\any.py", line 315, in go
self.safe_exec(self.script, globals_dict, locals_dict)
File "D:\ComfyUI-aki-v1.3\custom_nodes\anynode\nodes\any.py", line 277, in safe_exec
raise e
File "D:\ComfyUI-aki-v1.3\custom_nodes\anynode\nodes\any.py", line 273, in safe_exec
exec(sanitize_code(code_string), globals_dict, locals_dict)
File "D:\ComfyUI-aki-v1.3\custom_nodes\anynode\nodes\utils.py", line 199, in sanitize_code
raise ValueError(f"Syntax error in code: {e}")
The text was updated successfully, but these errors were encountered: