[GH-ISSUE #300] Extention Not Working At All | Not loading modules #210

Closed
opened 2026-10-30 21:21:01 +00:00 by bsakaguchi · 9 comments
Owner

Originally created by @andy8992 on GitHub (Aug 18, 2024).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/300

During startup

*** Error loading script: model_keyword_support.py
Traceback (most recent call last):
File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 525, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\Data\Packages\Stable Diffusion WebUI Forge\extensions\a1111-sd-webui-tagcomplete\scripts\model_keyword_support.py", line 7, in
from scripts.shared_paths import EXT_PATH, STATIC_TEMP_PATH, TEMP_PATH
ModuleNotFoundError: No module named 'scripts.shared_paths'


*** Error loading script: tag_autocomplete_helper.py
Traceback (most recent call last):
File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 525, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\Data\Packages\Stable Diffusion WebUI Forge\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py", line 19, in
from scripts.model_keyword_support import (get_lora_simple_hash,
ModuleNotFoundError: No module named 'scripts.model_keyword_support'


*** Error loading script: tag_frequency_db.py
Traceback (most recent call last):
File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 525, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\Data\Packages\Stable Diffusion WebUI Forge\extensions\a1111-sd-webui-tagcomplete\scripts\tag_frequency_db.py", line 4, in
from scripts.shared_paths import TAGS_PATH
ModuleNotFoundError: No module named 'scripts.shared_paths'

Originally created by @andy8992 on GitHub (Aug 18, 2024). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/300 During startup *** Error loading script: model_keyword_support.py Traceback (most recent call last): File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 13, 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 "E:\Data\Packages\Stable Diffusion WebUI Forge\extensions\a1111-sd-webui-tagcomplete\scripts\model_keyword_support.py", line 7, in <module> from scripts.shared_paths import EXT_PATH, STATIC_TEMP_PATH, TEMP_PATH ModuleNotFoundError: No module named 'scripts.shared_paths' --- *** Error loading script: tag_autocomplete_helper.py Traceback (most recent call last): File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 13, 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 "E:\Data\Packages\Stable Diffusion WebUI Forge\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py", line 19, in <module> from scripts.model_keyword_support import (get_lora_simple_hash, ModuleNotFoundError: No module named 'scripts.model_keyword_support' --- *** Error loading script: tag_frequency_db.py Traceback (most recent call last): File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 13, 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 "E:\Data\Packages\Stable Diffusion WebUI Forge\extensions\a1111-sd-webui-tagcomplete\scripts\tag_frequency_db.py", line 4, in <module> from scripts.shared_paths import TAGS_PATH ModuleNotFoundError: No module named 'scripts.shared_paths'
bsakaguchi 2026-10-30 21:21:01 +00:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@DominikDoom commented on GitHub (Aug 18, 2024):

Update your forge version, this is a bug introduced on their side that's been fixed for a while.

Duplicate of #299

<!-- gh-comment-id:2295215092 --> @DominikDoom commented on GitHub (Aug 18, 2024): Update your forge version, this is a bug introduced on their side that's been fixed for a while. Duplicate of #299
Author
Owner

@andy8992 commented on GitHub (Aug 18, 2024):

Okay, I updated it today and still am getting this error. I've tried reinstalling manually and in the UI.

<!-- gh-comment-id:2295409091 --> @andy8992 commented on GitHub (Aug 18, 2024): Okay, I updated it today and still am getting this error. I've tried reinstalling manually and in the UI.
Author
Owner

@DominikDoom commented on GitHub (Aug 19, 2024):

Does the proposed fix from the linked issue work for you? Try creating an empty file named __init__.py (two underscores on both sides) in TAC's scripts directory.

Otherwise, I think just updating forge might not be enough, since the root cause was a broken gguf dependency. You might need to fix or recreate your venv to properly clean the error.
From the forge issue:

For all problems related to No module named 'scripts.XXXXX

if you installed gguf, uninstall it or delete venv, or fresh reinstall forge again, or whatever.
do not install gguf

gguf has a "scripts" folder that will destroy all extensions

I already fixed it

<!-- gh-comment-id:2295708929 --> @DominikDoom commented on GitHub (Aug 19, 2024): Does the proposed fix from the linked issue work for you? Try creating an empty file named `__init__.py` (two underscores on both sides) in TAC's scripts directory. Otherwise, I think just updating forge might not be enough, since the root cause was a broken gguf dependency. You might need to fix or recreate your venv to properly clean the error. From the forge issue: > For all problems related to No module named 'scripts.XXXXX > if you installed gguf, uninstall it or delete venv, or fresh reinstall forge again, or whatever. > do not install gguf >gguf has a "scripts" folder that will destroy all extensions >I already fixed it
Author
Owner

@andy8992 commented on GitHub (Aug 19, 2024):

Didn't fix the error unfortunately

However, I'm only seeing this error now

*** Error loading script: tag_autocomplete_helper.py
Traceback (most recent call last):
File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 525, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\Data\Packages\Stable Diffusion WebUI Forge\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py", line 19, in
from scripts.model_keyword_support import (get_lora_simple_hash,
ModuleNotFoundError: No module named 'scripts.model_keyword_support'

<!-- gh-comment-id:2297153487 --> @andy8992 commented on GitHub (Aug 19, 2024): Didn't fix the error unfortunately However, I'm only seeing this error now *** Error loading script: tag_autocomplete_helper.py Traceback (most recent call last): File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 13, 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 "E:\Data\Packages\Stable Diffusion WebUI Forge\extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py", line 19, in <module> from scripts.model_keyword_support import (get_lora_simple_hash, ModuleNotFoundError: No module named 'scripts.model_keyword_support'
Author
Owner

@DominikDoom commented on GitHub (Aug 19, 2024):

That's still the same issue just for a different import, these are all local scripts in the same folder that should be found no matter what. So I guess fixing the venv as quoted in my last comment is the only thing left to try.

<!-- gh-comment-id:2297159661 --> @DominikDoom commented on GitHub (Aug 19, 2024): That's still the same issue just for a different import, these are all local scripts in the same folder that should be found no matter what. So I guess fixing the venv as quoted in my last comment is the only thing left to try.
Author
Owner

@andy8992 commented on GitHub (Aug 19, 2024):

That's still the same issue just for a different import, these are all local scripts in the same folder that should be found no matter what. So I guess fixing the venv as quoted in my last comment is the only thing left to try.

Giving that a shot now. Dang things 7gb I guess. Dumb rural internet heh.

Thanks, I'll let you know

<!-- gh-comment-id:2297163176 --> @andy8992 commented on GitHub (Aug 19, 2024): > That's still the same issue just for a different import, these are all local scripts in the same folder that should be found no matter what. So I guess fixing the venv as quoted in my last comment is the only thing left to try. Giving that a shot now. Dang things 7gb I guess. Dumb rural internet heh. Thanks, I'll let you know
Author
Owner

@andy8992 commented on GitHub (Aug 19, 2024):

Unfortunately that didn't seem to help. Bummer

<!-- gh-comment-id:2297393667 --> @andy8992 commented on GitHub (Aug 19, 2024): Unfortunately that didn't seem to help. Bummer
Author
Owner

@andy8992 commented on GitHub (Aug 19, 2024):

WAIT! I think I got it, I downloaded the older commit, the one from the releases from Feb and I think maybe i didn't put init.py in the scripts folder rather than the main one. Thanks for your help.

<!-- gh-comment-id:2297713440 --> @andy8992 commented on GitHub (Aug 19, 2024): WAIT! I think I got it, I downloaded the older commit, the one from the releases from Feb and I think maybe i didn't put __init__.py in the scripts folder rather than the main one. Thanks for your help.
Author
Owner

@DominikDoom commented on GitHub (Aug 20, 2024):

Wait, so just for clarification, it only works with an older release of TAC? That would not be ideal, as there've been a lot of additions (and also forge-specific fixes) since then.

<!-- gh-comment-id:2298171243 --> @DominikDoom commented on GitHub (Aug 20, 2024): Wait, so just for clarification, it only works with an older release of TAC? That would not be ideal, as there've been a lot of additions (and also forge-specific fixes) since then.
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#210
No description provided.