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

[Bug]: TypeError: 'Blocks' object is not iterable in script_callbacks.py causing crash #3552

Closed
1 task done
jangofett890 opened this issue Oct 24, 2022 · 3 comments
Closed
1 task done
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@jangofett890
Copy link

jangofett890 commented Oct 24, 2022

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

The recent commit removing the Image Browser from the repo #3537 into it's own extension seems to have broken the gui entirely.
After I noticed all the removal for the image browser I quit the gui, and installed the image browser and inspirations extensions, I also have aesthetic gradients installed.

Upon starting the GUI with the latest build and these extensions installed you get this crash
Traceback (most recent call last):
File "D:\stable-diffusion-webui\launch.py", line 206, in
start_webui()
File "D:\stable-diffusion-webui\launch.py", line 201, in start_webui
webui.webui()
File "D:\stable-diffusion-webui\webui.py", line 132, in webui
demo = modules.ui.create_ui(wrap_gradio_gpu_call=wrap_gradio_gpu_call)
File "D:\stable-diffusion-webui\modules\ui.py", line 1649, in create_ui
interfaces += script_callbacks.ui_tabs_callback()
File "D:\stable-diffusion-webui\modules\script_callbacks.py", line 21, in ui_tabs_callback
res += callback() or []
TypeError: 'Blocks' object is not iterable

Steps to reproduce the problem

  1. Install https://github.com/yfszzx/stable-diffusion-webui-images-browser
  2. Install https://github.com/yfszzx/stable-diffusion-webui-inspiration
  3. Install https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients
  4. Run webui-user.bat
  5. Crash

What should have happened?

The UI should run with extensions enabled

Commit where the problem happens

3537, Running on Commit hash: c623fa1

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--medvram --listen --deepdanbooru

Additional information, context and logs

No response

@jangofett890 jangofett890 added the bug-report Report of a bug, yet to be confirmed label Oct 24, 2022
@nicentra
Copy link

Got same issue, but the issue is https://github.com/yfszzx/stable-diffusion-webui-inspiration - Try to remove the extension and run again. Not sure where this needs to be fixed though

@Gonoshift
Copy link

Gonoshift commented Oct 24, 2022

Same problem here, I've opened an issue on the extension repo: yfszzx/stable-diffusion-webui-inspiration#1

@yfszzx
Copy link
Contributor

yfszzx commented Oct 24, 2022

thanks to report this bug, it will occur when the inspiration directory is empty, so I didn't find this error during development.

I have fixed it, run "git pull" under stable-diffusion-webui-inspiration to get the new version, and restart webui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

5 participants