Open liudibo opened 1 year ago
I'm having a similar issue but with scripts.processing
instead.
I'm running commit a3ddf464a2ed24c999f67ddfef7969f8291567be.
Here's the entire traceback for reference
Traceback (most recent call last):
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
output = await app.get_blocks().process_api(
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
result = await self.call_function(
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\SD\stable-diffusion-webui\modules\ui_settings.py", line 213, in reload_scripts
scripts.reload_script_body_only()
File "D:\SD\stable-diffusion-webui\modules\scripts.py", line 597, in reload_script_body_only
scripts_txt2img.reload_sources(cache)
File "D:\SD\stable-diffusion-webui\modules\scripts.py", line 569, in reload_sources
module = script_loading.load_module(script.filename)
File "D:\SD\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 "D:\SD\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 14, in <module>
importlib.reload(processor)
File "C:\Program Files\Python310\lib\importlib\__init__.py", line 168, in reload
raise ModuleNotFoundError(f"spec not found for the module {name!r}", name=name)
ModuleNotFoundError: spec not found for the module 'scripts.processor'
Is there an existing issue for this?
What happened?
Steps to reproduce the problem
What should have happened?
Commit where the problem happens
22bcc7be428c94e9408f589966c2040187245d81
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
ControlNet
Console logs
Additional information
I have no idea about the controlnet.py.
I try to fix the reloading bug by assigning the reloaded script to self.selectable_scripts[si] just after self.scripts[si].