[GH-ISSUE #121] Sudden fail of the extension, after updating other extensions. #90

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

Originally created by @mart-hill on GitHub (Feb 2, 2023).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/121

After I updated dreambooth, pix2pix, UmiAI and additional-networks, tagcomplete started throwing this error:

Error loading script: tag_autocomplete_helper.py
Traceback (most recent call last):
  File "O:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "O:\AI\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "O:\AI\stable-diffusion-webui\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py", line 217, in <module>
    wildcards_yaml_ext = get_ext_wildcard_tags()
  File "O:\AI\stable-diffusion-webui\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py", line 74, in get_ext_wildcard_tags
    wildcard_tags[count] = ','.join(data[item]['Tags'])
TypeError: 'NoneType' object is not subscriptable

It probably has to do something with WebUI failing to run after these 4 extensions were updated (I'm on 226d840e84c5f306350b0681945989b86760e616 WebUI commit, latest at the moment) - I had errors immediately after fully re-running the UI. So I upgraded pip in venv (new version just appeared), and also disabled --skip-version-check in the UI's .bat file, since I think one of these four extensions required something newer. It worked, WebUI started working again, but your extension now is having trouble.

Since you explained me the severity of that option at the time - I didn't touch tagcomplete options, it was normally working, until I restarted the UI.
Should I edit some setting again?

I hope I explained it fairly well... 🙂

Originally created by @mart-hill on GitHub (Feb 2, 2023). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/121 After I updated `dreambooth`, `pix2pix`, `UmiAI `and `additional-networks`, **tagcomplete** started throwing this error: ``` Error loading script: tag_autocomplete_helper.py Traceback (most recent call last): File "O:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "O:\AI\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "O:\AI\stable-diffusion-webui\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py", line 217, in <module> wildcards_yaml_ext = get_ext_wildcard_tags() File "O:\AI\stable-diffusion-webui\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py", line 74, in get_ext_wildcard_tags wildcard_tags[count] = ','.join(data[item]['Tags']) TypeError: 'NoneType' object is not subscriptable ``` It probably has to do something with WebUI failing to run after these 4 extensions were updated (I'm on 226d840e84c5f306350b0681945989b86760e616 WebUI commit, latest at the moment) - I had errors immediately after fully re-running the UI. So I upgraded `pip` in venv (new version just appeared), and also disabled `--skip-version-check` in the UI's .bat file, since I think one of these four extensions required something newer. It worked, WebUI started working again, but your extension now is having trouble. Since you explained me the severity of that option at the time - I didn't touch tagcomplete options, it was normally working, until I restarted the UI. Should I edit some setting again? I hope I explained it fairly well... 🙂
Author
Owner

@MrGrey7 commented on GitHub (Feb 2, 2023):

Can confirm, I get the same error after installing UmiAI and updating pix2pix.
Disabling the extensions and restarting the UI doesn't help.

<!-- gh-comment-id:1413334029 --> @MrGrey7 commented on GitHub (Feb 2, 2023): Can confirm, I get the same error after installing UmiAI and updating pix2pix. Disabling the extensions and restarting the UI doesn't help.
Author
Owner

@ctwrs commented on GitHub (Feb 2, 2023):

I'm able to repro by adding an empty group to a yaml file. Not really sure why it's happening for some users but I can safely log the issue without having it fail autocomplete. Working on it.

image

<!-- gh-comment-id:1413748528 --> @ctwrs commented on GitHub (Feb 2, 2023): I'm able to repro by adding an empty group to a yaml file. Not really sure why it's happening for some users but I can safely log the issue without having it fail autocomplete. Working on it. ![image](https://user-images.githubusercontent.com/116893749/216337798-24d218fb-380f-4d1e-aecf-7f3ca990cbc6.png)
Author
Owner

@mart-hill commented on GitHub (Feb 2, 2023):

Thank you, it even seems to pinpoint the "culprit"! 🙂

<!-- gh-comment-id:1413849628 --> @mart-hill commented on GitHub (Feb 2, 2023): Thank you, it even seems to pinpoint the "culprit"! 🙂
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#90
No description provided.