lllyasviel / lllyasviel/stable-diffusion-webui-forge
ModuleNotFoundError: No module named 'ldm_patched.modules.model_management'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
after updating most extensions stoped working
*** Error loading script: on_app_started.py
Traceback (most recent call last):
File "J:\FORGED\webui\modules\scripts.py", line 525, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "J:\FORGED\webui\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 "J:\FORGED\webui\extensions\sd-webui-prompt-all-in-one\scripts\on_app_started.py", line 10, in
from scripts.physton_prompt.get_token_counter import get_token_counter
File "J:\FORGED\webui\extensions\sd-webui-prompt-all-in-one\scripts\physton_prompt\get_token_counter.py", line 2, in
from modules.sd_hijack import model_hijack
ImportError: cannot import name 'model_hijack' from 'modules.sd_hijack' (J:\FORGED\webui\modules\sd_hijack.py).
one example
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing extension loading after the update, then inspect modules/scripts.py, modules/script_loading.py, modules/sd_hijack.py, and the extension's scripts/on_app_started.py and get_token_counter.py. Determine why the reported imports fail and verify that the affected extensions load without the shown ImportError or ModuleNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100