Skip to content
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

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

Open
GitWilburn opened this issue Jan 28, 2024 · 7 comments

Comments

@GitWilburn
Copy link

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
Copy link

liulsg commented Jan 30, 2024

the same problem

@jojorne
Copy link

jojorne commented Feb 4, 2024

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

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

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

@GitWilburn
Copy link
Author

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

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

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
Copy link

Thank you, this also solve my problem.

@HWiese1980
Copy link

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

@rjgoif
Copy link

rjgoif commented May 8, 2024

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
Copy link

XieDeWu commented May 25, 2024

"CR Text Cycle" can use?

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

7 participants