[GH-ISSUE #197] Error at startup in ui_settings_callback #141

Closed
opened 2026-10-30 21:19:58 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @Davikar on GitHub (Jul 6, 2023).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/197

Getting this error when starting up the webui:

16:13:08-931965 ERROR    executing callback:
                         C:\AI\automatic\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py
                         ui_settings_callback: AttributeError
╭─────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────╮
│ C:\AI\automatic\modules\script_callbacks.py:182 in ui_settings_callback                                         │
│                                                                                                                 │
│   181 │   │   │   t0 = time.time()                                                                              │
│ ❱ 182 │   │   │   c.callback()                                                                                  │
│   183 │   │   │   timer(t0, c.script, 'ui_settings')                                                            │
│                                                                                                                 │
│ C:\AI\automatic\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py:304 in on_ui_settings  │
│                                                                                                                 │
│   303 │   │   "tac_activeIn.negativePrompts": shared.OptionInfo(True, "Active in negative prom                  │
│ ❱ 304 │   │   "tac_activeIn.thirdParty": shared.OptionInfo(True, "Active in third party textbo                  │
│   305 │   │   "tac_activeIn.modelList": shared.OptionInfo("", "Black/Whitelist models").info("                  │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'OptionInfo' object has no attribute 'html'

Running on the latest build of SD.Next, Windows 11

Originally created by @Davikar on GitHub (Jul 6, 2023). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/197 Getting this error when starting up the webui: ``` 16:13:08-931965 ERROR executing callback: C:\AI\automatic\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py ui_settings_callback: AttributeError ╭─────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────╮ │ C:\AI\automatic\modules\script_callbacks.py:182 in ui_settings_callback │ │ │ │ 181 │ │ │ t0 = time.time() │ │ ❱ 182 │ │ │ c.callback() │ │ 183 │ │ │ timer(t0, c.script, 'ui_settings') │ │ │ │ C:\AI\automatic\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py:304 in on_ui_settings │ │ │ │ 303 │ │ "tac_activeIn.negativePrompts": shared.OptionInfo(True, "Active in negative prom │ │ ❱ 304 │ │ "tac_activeIn.thirdParty": shared.OptionInfo(True, "Active in third party textbo │ │ 305 │ │ "tac_activeIn.modelList": shared.OptionInfo("", "Black/Whitelist models").info(" │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ AttributeError: 'OptionInfo' object has no attribute 'html' ``` Running on the latest build of SD.Next, Windows 11
Author
Owner

@DominikDoom commented on GitHub (Jul 6, 2023):

It seems SD.Next has not added the OptionInfo html method automatic1111 uses for some settings descriptions, only the older info() etc. methods. html() was added in this commit: github.com/AUTOMATIC1111/stable-diffusion-webui@f98f4f73aa

It probably makes the most sense if vlad adds it to SD.Next as well for compatibility, but in the meantime I can rewrite it using info since that method exists in both.

Just as a side note: I can't promise to support SD.Next forever depending on how far it diverges in the future, I only use auto myself.

<!-- gh-comment-id:1623830573 --> @DominikDoom commented on GitHub (Jul 6, 2023): It seems SD.Next has not added the OptionInfo html method automatic1111 uses for some settings descriptions, only the older `info()` etc. methods. `html()` was added in this commit: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/f98f4f73aa4898c754681f411608df5f248619f6 It probably makes the most sense if vlad adds it to SD.Next as well for compatibility, but in the meantime I can rewrite it using info since that method exists in both. Just as a side note: I can't promise to support SD.Next forever depending on how far it diverges in the future, I only use auto myself.
Sign in to join this conversation.
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
DominikDoom/a1111-sd-webui-tagcomplete#141
No description provided.