Closed bramvera closed 2 months ago
You have to name the file: styles.csv also check if the format in the file is correct. If you manually saved the file in excel it likely got corrupted.
the same file I'm using with A1111, working fine on A1111
i replaced line 42 with this
"styles": (list(style[0] for style in cls.styles_csv),),
and fixed my error
update: node and styles are loaded but break some function
Thanks for the proposal. Will look into this as soon as I can.
@brumie I worked in your fix. Please report if it works :)
@brumie I worked in your fix. Please report if it works :)
thanks, got an error
Error occurred when executing Load Styles CSV:
list indices must be integers or slices, not str
the same error was occurring in my installation. I then noticed that the style names were not in quotes. I adjusted the .csv file to put quotes around all the style names, but I had to return line 42 to the previous version
("styles": (list(cls.styles_csv.keys()),),)
for everything to work.
thanks for the extension.
in "styles": (list(style[0] for style in cls.styles_csv),)" should indeed be "("styles": (list(cls.styles_csv.keys()),)," as mentioned above, otherwise style[0] returns the first letter of each dict key instead of the complete variable name.
I reverted the change. @brumie probably had a corrupt styles csv. Please report further issues! Thanks all for your participation
got error