Suzie1 / ComfyUI_Comfyroll_CustomNodes

Custom nodes for SDXL and SD1.5 including Multi-ControlNet, LoRA, Aspect Ratio, Process Switches, and many more nodes.
https://civitai.com/models/183551/comfyui-comfyroll-custom-nodes
634 stars 87 forks source link

Text List error: CR_TextList.make_list() missing 1 required positional argument: 'loops' #116

Open GitWilburn opened 8 months ago

GitWilburn commented 8 months ago

Having an issue with the CR Text List node. Tried using the text workflow to make sure it wasn't just me and I got the error on the example workflow as well.

I think the issue is this line in nodes_list.py that was changed a few weeks ago: def make_list(self, multiline_text, start_index, max_rows, loops):

When I removed ",loops" it worked as expected.

Full error text: ERROR:root:Traceback (most recent call last): File "C:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: CR_TextList.make_list() missing 1 required positional argument: 'loops'

liulsg commented 8 months ago

the same problem

jojorne commented 8 months ago

"loops" is not used anywhere in the code and can be safely removed. https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes/nodes_list.py#L79

def make_list(self, multiline_text, start_index, max_rows):
GitWilburn commented 8 months ago

"loops" is not used anywhere in the code and can be safely removed.

https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes/nodes_list.py#L79

def make_list(self, multiline_text, start_index, max_rows):

Confirmed. This is how I resolved on my local instance and it works fine.

zhenyuanzhou commented 6 months ago

Thank you, this also solve my problem.

HWiese1980 commented 6 months ago

Why has this not found its way into the current leading branch?

rjgoif commented 5 months ago

Would love it if the author @Suzie1 would incorporate this into the build, but I fear that the Comfyroll suite is starting to look abandoned.

XieDeWu commented 4 months ago

"CR Text Cycle" can use?