[GH-ISSUE #299] [WebUI Forge] Failed to load module scripts.shared_paths #205

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

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

For some reason, with latest update the extension began to fail to load entirely with that specific file.
And weirdly enough, putting a blank __init__.py file into the scripts folder fixes the issue, allowing it to import just fine.
Would probably be a good idea to add it to the extension just in case to avoid the issue.

Originally created by @UmbralMoth on GitHub (Aug 15, 2024). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/299 For some reason, with latest update the extension began to fail to load entirely with that specific file. And weirdly enough, putting a blank `__init__.py` file into the scripts folder fixes the issue, allowing it to import just fine. Would probably be a good idea to add it to the extension just in case to avoid the issue.
Author
Owner

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

This was due to an already fixed bug in forge itself:
https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/1134#issuecomment-2290925628

Putting an __init__.py file forces the extension to be treated as its own module, so the namespace conflict won't occur, but this breaks compatibility and interoperability between extensions if I remember correctly.

<!-- gh-comment-id:2291000525 --> @DominikDoom commented on GitHub (Aug 15, 2024): This was due to an already fixed bug in forge itself: https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/1134#issuecomment-2290925628 Putting an `__init__.py` file forces the extension to be treated as its own module, so the namespace conflict won't occur, but this breaks compatibility and interoperability between extensions if I remember correctly.
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#205
No description provided.