[GH-ISSUE #205] Still getting errors on launch: Error loading script: tag_autocomplete_helper.py #147

Closed
opened 2026-10-30 21:20:03 +00:00 by bsakaguchi · 7 comments
Owner

Originally created by @vt-idiot on GitHub (Jul 23, 2023).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/205

*** Error loading script: tag_autocomplete_helper.py
    Traceback (most recent call last):
      File "/content/stable-diffusion-webui/modules/scripts.py", line 274, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/content/stable-diffusion-webui/modules/script_loading.py", line 10, 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 "/content/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete/scripts/tag_autocomplete_helper.py", line 134, in <module>
        model_keyword_installed = write_model_keyword_path()
      File "/content/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete/scripts/model_keyword_support.py", line 65, in write_model_keyword_path
        mk_path.write_text("")
      File "/usr/lib/python3.10/pathlib.py", line 1154, in write_text
        with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f:
      File "/usr/lib/python3.10/pathlib.py", line 1119, in open
        return self._accessor.open(self, mode, buffering, encoding, errors,
    FileNotFoundError: [Errno 2] No such file or directory: '/content/stable-diffusion-webui/tmp/modelKeywordPath.txt'
Originally created by @vt-idiot on GitHub (Jul 23, 2023). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/205 ```py *** Error loading script: tag_autocomplete_helper.py Traceback (most recent call last): File "/content/stable-diffusion-webui/modules/scripts.py", line 274, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/stable-diffusion-webui/modules/script_loading.py", line 10, 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 "/content/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete/scripts/tag_autocomplete_helper.py", line 134, in <module> model_keyword_installed = write_model_keyword_path() File "/content/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete/scripts/model_keyword_support.py", line 65, in write_model_keyword_path mk_path.write_text("") File "/usr/lib/python3.10/pathlib.py", line 1154, in write_text with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f: File "/usr/lib/python3.10/pathlib.py", line 1119, in open return self._accessor.open(self, mode, buffering, encoding, errors, FileNotFoundError: [Errno 2] No such file or directory: '/content/stable-diffusion-webui/tmp/modelKeywordPath.txt' ```
Author
Owner

@vt-idiot commented on GitHub (Jul 23, 2023):

I was able to fix it with a pretty simple mkdir -p /content/stable-diffusion-webui/tmp/ - now I only see the expected Tag Autocomplete: Could not locate model-keyword extension, LORA/LYCO trigger word completion will be unavailable. while launching.

<!-- gh-comment-id:1646716009 --> @vt-idiot commented on GitHub (Jul 23, 2023): I was able to fix it with a pretty simple `mkdir -p /content/stable-diffusion-webui/tmp/` - now I only see the expected `Tag Autocomplete: Could not locate model-keyword extension, LORA/LYCO trigger word completion will be unavailable.` while launching.
Author
Owner

@yo1nkers commented on GitHub (Jul 23, 2023):

Hi, is the current issue you're experiencing
Tag Autocomplete: Could not locate model-keyword extension, LORA/LYCO trigger word completion will be unavailable.
causing you any major issues? This is currently the issue I am getting, and I am looking for a fix to this.

<!-- gh-comment-id:1646724949 --> @yo1nkers commented on GitHub (Jul 23, 2023): Hi, is the current issue you're experiencing `Tag Autocomplete: Could not locate model-keyword extension, LORA/LYCO trigger word completion will be unavailable.` causing you any major issues? This is currently the issue I am getting, and I am looking for a fix to this.
Author
Owner

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

@vt-idiot Yeah thanks for the reminder, I forgot that this folder isn't there by default on Linux since the webui creates it to store stderr/stdout logs on windows. This was a very early issue with #46 and I missed that when restructuring the path declarations.

@yo1nkers Is this unexpected for you or preventing normal completion from working? If you just see that message but nothing else, all it means is that the keyword lists weren't found. It's just an info message so people know why the feature would be unavailable in that case.

<!-- gh-comment-id:1646764525 --> @DominikDoom commented on GitHub (Jul 23, 2023): @vt-idiot Yeah thanks for the reminder, I forgot that this folder isn't there by default on Linux since the webui creates it to store stderr/stdout logs on windows. This was a very early issue with #46 and I missed that when restructuring the path declarations. @yo1nkers Is this unexpected for you or preventing normal completion from working? If you just see that message but nothing else, all it means is that the keyword lists weren't found. It's just an info message so people know why the feature would be unavailable in that case.
Author
Owner

@vt-idiot commented on GitHub (Jul 24, 2023):

@yo1nkers nope, I imagine it'd go away if I installed the model-keyword extension and filled out the keyword lists, sounds like it lets you fill out activation tags for all your LoRA?

The handful of LoRA I use with activation tags already had presets saved directly in webui, and also in the metadata for their thumbnails in the browser, so I just use those.

<!-- gh-comment-id:1648328291 --> @vt-idiot commented on GitHub (Jul 24, 2023): @yo1nkers nope, I imagine it'd go away if I installed the `model-keyword` extension and filled out the keyword lists, sounds like it lets you fill out activation tags for all your LoRA? The handful of LoRA I use with activation tags already had presets saved directly in webui, and also in the metadata for their thumbnails in the browser, so I just use those.
Author
Owner

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

Exactly, if you don't want to use it you can just ignore the message. Since some seem to think of it as a critical error I will maybe reword or remove the hint in the future though.

The list of model keywords provided by that extension is pretty big and auto updated from civitai, so it was a good way to not have to support and ship my own list.
The README has a new section about it that goes into detail.

<!-- gh-comment-id:1648471029 --> @DominikDoom commented on GitHub (Jul 24, 2023): Exactly, if you don't want to use it you can just ignore the message. Since some seem to think of it as a critical error I will maybe reword or remove the hint in the future though. The list of model keywords provided by that extension is pretty big and auto updated from civitai, so it was a good way to not have to support and ship my own list. The README has a [new section](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete#lora--lyco-trigger-word-completion) about it that goes into detail.
Author
Owner

@brehuang commented on GitHub (Jul 26, 2023):

Having the same issue. This seems to have coincided with the new release of automatic1111, since I didn't have this issue yesterday. I can't use Latent Couple anymore. If anyone has a solve, please share.

<!-- gh-comment-id:1651212799 --> @brehuang commented on GitHub (Jul 26, 2023): Having the same issue. This seems to have coincided with the new release of automatic1111, since I didn't have this issue yesterday. I can't use Latent Couple anymore. If anyone has a solve, please share.
Author
Owner

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

@brehuang What issue exactly are you talking about? The error in the first comment here which was already fixed, or the "Could not locate model-keyword extension" info message which is harmless?
This extension is not affected by the new webui release as far as I'm aware, so anything else will be unrelated (assuming tag-autocomplete is up to date too)

<!-- gh-comment-id:1651248375 --> @DominikDoom commented on GitHub (Jul 26, 2023): @brehuang What issue exactly are you talking about? The error in the first comment here which was already fixed, or the "Could not locate model-keyword extension" info message which is harmless? This extension is not affected by the new webui release as far as I'm aware, so anything else will be unrelated (assuming tag-autocomplete is up to date too)
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#147
No description provided.