[GH-ISSUE #16] AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion' #15

Closed
opened 2026-10-30 21:27:40 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @Skid888 on GitHub (Apr 4, 2024).
Original GitHub issue: https://github.com/Haoming02/sd-webui-old-photo-restoration/issues/16

I've installed BOP (and overcome the dlib install issue) but still get the following error:

calling C:\Users\Söhnke\stable-diffusion-webui\extensions\sd-webui-old-photo-restoration\scripts\bop.py/ui: AttributeError
Traceback (most recent call last):
File "C:\Users\Söhnke\stable-diffusion-webui\modules\scripts_postprocessing.py", line 53, in wrap_call
res = func(*args, **kwargs)
File "C:\Users\Söhnke\stable-diffusion-webui\extensions\sd-webui-old-photo-restoration\scripts\bop.py", line 12, in ui
with ui_components.InputAccordion(
AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion'

Traceback (most recent call last):
File "C:\Users\Söhnke\stable-diffusion-webui\launch.py", line 353, in
start()
File "C:\Users\Söhnke\stable-diffusion-webui\launch.py", line 348, in start
webui.webui()
File "C:\Users\Söhnke\stable-diffusion-webui\webui.py", line 302, in webui
shared.demo = modules.ui.create_ui()
File "C:\Users\Söhnke\stable-diffusion-webui\modules\ui.py", line 1051, in create_ui
ui_postprocessing.create_ui()
File "C:\Users\Söhnke\stable-diffusion-webui\modules\ui_postprocessing.py", line 25, in create_ui
script_inputs = scripts.scripts_postproc.setup_ui()
File "C:\Users\Söhnke\stable-diffusion-webui\modules\scripts_postprocessing.py", line 113, in setup_ui
self.create_script_ui(script, inputs)
File "C:\Users\Söhnke\stable-diffusion-webui\modules\scripts_postprocessing.py", line 84, in create_script_ui
for control in script.controls.values():
AttributeError: 'NoneType' object has no attribute 'values'

Any idea where the issue comes from?

Originally created by @Skid888 on GitHub (Apr 4, 2024). Original GitHub issue: https://github.com/Haoming02/sd-webui-old-photo-restoration/issues/16 I've installed BOP (and overcome the dlib install issue) but still get the following error: calling C:\Users\Söhnke\stable-diffusion-webui\extensions\sd-webui-old-photo-restoration\scripts\bop.py/ui: AttributeError Traceback (most recent call last): File "C:\Users\Söhnke\stable-diffusion-webui\modules\scripts_postprocessing.py", line 53, in wrap_call res = func(*args, **kwargs) File "C:\Users\Söhnke\stable-diffusion-webui\extensions\sd-webui-old-photo-restoration\scripts\bop.py", line 12, in ui with ui_components.InputAccordion( AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion' Traceback (most recent call last): File "C:\Users\Söhnke\stable-diffusion-webui\launch.py", line 353, in <module> start() File "C:\Users\Söhnke\stable-diffusion-webui\launch.py", line 348, in start webui.webui() File "C:\Users\Söhnke\stable-diffusion-webui\webui.py", line 302, in webui shared.demo = modules.ui.create_ui() File "C:\Users\Söhnke\stable-diffusion-webui\modules\ui.py", line 1051, in create_ui ui_postprocessing.create_ui() File "C:\Users\Söhnke\stable-diffusion-webui\modules\ui_postprocessing.py", line 25, in create_ui script_inputs = scripts.scripts_postproc.setup_ui() File "C:\Users\Söhnke\stable-diffusion-webui\modules\scripts_postprocessing.py", line 113, in setup_ui self.create_script_ui(script, inputs) File "C:\Users\Söhnke\stable-diffusion-webui\modules\scripts_postprocessing.py", line 84, in create_script_ui for control in script.controls.values(): AttributeError: 'NoneType' object has no attribute 'values' Any idea where the issue comes from?
Author
Owner

@Haoming02 commented on GitHub (Apr 5, 2024):

'modules.ui_components' has no attribute 'InputAccordion'

What version of Webui are you running?

<!-- gh-comment-id:2038692394 --> @Haoming02 commented on GitHub (Apr 5, 2024): > 'modules.ui_components' has no attribute 'InputAccordion' What version of Webui are you running?
Author
Owner

@Skid888 commented on GitHub (Apr 5, 2024):

Webui is 1.6.0

<!-- gh-comment-id:2038914217 --> @Skid888 commented on GitHub (Apr 5, 2024): Webui is 1.6.0
Author
Owner

@Skid888 commented on GitHub (Apr 5, 2024):

I just updated to 1.8.0 and now it is working!

<!-- gh-comment-id:2038924863 --> @Skid888 commented on GitHub (Apr 5, 2024): I just updated to 1.8.0 and now it is working!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Haoming02/sd-webui-old-photo-restoration#15
No description provided.