Repository: stable-diffusion-webui
Issue: [Bug]: stable diffusion web ui can no longer start
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

I started the software for the first time in a while, but an error occurred during the startup stage, and before I could open the web, it stopped responding.
At first it started normally, but after updating the system and extensions, something went wrong for some reason.
I suspect that there is a problem with an extension I installed previously, but I'm not sure which one it is or what to do about it.
I would like to know how to solve this problem. thank you.
<img width="312" alt="スクリーンショット 2023-12-12 230728" src="https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/47461001/55ab067f-5875-49fc-b014-ab3e1fde5d6a">


### Steps to reproduce the problem

not clear

### What should have happened?

I had to start it without any problems even with extensions installed.

### Sysinfo

nothing

### What browsers do you use to access the UI ?

Google Chrome

### Console logs

```Shell
venv "K:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Version: v1.6.1
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Installing requirements for Mov2mov
Installing requirements for imageio-ffmpeg
Initializing Riffusion
Riffusion torchaudio version: 2.1.1 is already installed.
[Riffusion] Installing requirements...
K:\stable-diffusion-webui\venv\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'K:\stable-diffusion-webui\venv\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?
  warn(
Traceback (most recent call last):
  File "K:\stable-diffusion-webui\modules\launch_utils.py", line 231, in run_extension_installer
    stdout = run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env).strip()
  File "K:\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Error running install.py for extension K:\stable-diffusion-webui\extensions\sd_katanuki.
Command: "K:\stable-diffusion-webui\venv\Scripts\python.exe" "K:\stable-diffusion-webui\extensions\sd_katanuki\install.py"
Error code: 1
stderr: K:\stable-diffusion-webui\venv\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'K:\stable-diffusion-webui\venv\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?
  warn(
Traceback (most recent call last):
  File "K:\stable-diffusion-webui\modules\script_loading.py", line 26, in preload_extensions
    module = load_module(preload_script)
  File "K:\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 "K:\stable-diffusion-webui\extensions-builtin\LDSR\preload.py", line 2, in <module>
    from modules import paths
  File "K:\stable-diffusion-webui\modules\paths.py", line 61, in <module>
    import sgm  # noqa: F401
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\__init__.py", line 1, in <module>
    from .models import AutoencodingEngine, DiffusionEngine
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\models\__init__.py", line 1, in <module>
    from .autoencoder import AutoencodingEngine
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\models\autoencoder.py", line 6, in <module>
    import pytorch_lightning as pl
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\__init__.py", line 35, in <module>
    from pytorch_lightning.callbacks import Callback  # noqa: E402
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\__init__.py", line 14, in <module>
    from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in <module>
    from pytorch_lightning.callbacks.callback import Callback
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in <module>
    from pytorch_lightning.utilities.types import STEP_OUTPUT
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in <module>
    from torchmetrics import Metric
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\__init__.py", line 14, in <module>
    from torchmetrics import functional  # noqa: E402
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\__init__.py", line 14, in <module>
    from torchmetrics.functional.audio._deprecated import _permutation_invariant_training as permutation_invariant_training
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\audio\__init__.py", line 14, in <module>
    from torchmetrics.functional.audio.pit import permutation_invariant_training, pit_permutate
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\audio\pit.py", line 22, in <module>
    from torchmetrics.utilities import rank_zero_warn
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\__init__.py", line 14, in <module>
    from torchmetrics.utilities.checks import check_forward_full_state_property
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\checks.py", line 25, in <module>
    from torchmetrics.metric import Metric
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\metric.py", line 30, in <module>
    from torchmetrics.utilities.data import (
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\data.py", line 22, in <module>
    from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_1_12, _XLA_AVAILABLE
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\imports.py", line 50, in <module>
    _TORCHAUDIO_GREATER_EQUAL_0_10: Optional[bool] = compare_version("torchaudio", operator.ge, "0.10.0")
  File "K:\stable-diffusion-webui\venv\lib\site-packages\lightning_utilities\core\imports.py", line 73, in compare_version
    pkg = importlib.import_module(package)
  File "C:\Users\bluee\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\__init__.py", line 1, in <module>
    from . import (  # noqa: F401
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\_extension\__init__.py", line 45, in <module>
    _load_lib("libtorchaudio")
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\_extension\utils.py", line 64, in _load_lib
    torch.ops.load_library(path)
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torch\_ops.py", line 643, in load_library
    ctypes.CDLL(path)
  File "C:\Users\bluee\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] w肳ꂽvV[W܂B

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "K:\stable-diffusion-webui\extensions\sd_katanuki\install.py", line 7, in <module>
    from modules.devices import get_optimal_device
  File "K:\stable-diffusion-webui\modules\devices.py", line 6, in <module>
    from modules import errors, shared
  File "K:\stable-diffusion-webui\modules\shared.py", line 5, in <module>
    from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types
  File "K:\stable-diffusion-webui\modules\shared_cmd_options.py", line 10, in <module>
    script_loading.preload_extensions(extensions_builtin_dir, parser)
  File "K:\stable-diffusion-webui\modules\script_loading.py", line 31, in preload_extensions
    errors.report(f"Error running preload() for {preload_script}", exc_info=True)
  File "K:\stable-diffusion-webui\modules\errors.py", line 29, in report
    record_exception()
  File "K:\stable-diffusion-webui\modules\errors.py", line 17, in record_exception
    from modules import sysinfo
  File "K:\stable-diffusion-webui\modules\sysinfo.py", line 13, in <module>
    from modules import paths_internal, timer, shared, extensions, errors
  File "K:\stable-diffusion-webui\modules\extensions.py", line 4, in <module>
    from modules import shared, errors, cache, scripts
  File "K:\stable-diffusion-webui\modules\cache.py", line 7, in <module>
    from modules.paths import data_path, script_path
  File "K:\stable-diffusion-webui\modules\paths.py", line 61, in <module>
    import sgm  # noqa: F401
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\__init__.py", line 1, in <module>
    from .models import AutoencodingEngine, DiffusionEngine
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\models\__init__.py", line 1, in <module>
    from .autoencoder import AutoencodingEngine
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\models\autoencoder.py", line 6, in <module>
    import pytorch_lightning as pl
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\__init__.py", line 35, in <module>
    from pytorch_lightning.callbacks import Callback  # noqa: E402
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\__init__.py", line 14, in <module>
    from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in <module>
    from pytorch_lightning.callbacks.callback import Callback
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in <module>
    from pytorch_lightning.utilities.types import STEP_OUTPUT
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in <module>
    from torchmetrics import Metric
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\__init__.py", line 14, in <module>
    from torchmetrics import functional  # noqa: E402
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\__init__.py", line 14, in <module>
    from torchmetrics.functional.audio._deprecated import _permutation_invariant_training as permutation_invariant_training
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\audio\__init__.py", line 14, in <module>
    from torchmetrics.functional.audio.pit import permutation_invariant_training, pit_permutate
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\audio\pit.py", line 22, in <module>
    from torchmetrics.utilities import rank_zero_warn
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\__init__.py", line 14, in <module>
    from torchmetrics.utilities.checks import check_forward_full_state_property
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\checks.py", line 25, in <module>
    from torchmetrics.metric import Metric
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\metric.py", line 30, in <module>
    from torchmetrics.utilities.data import (
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\data.py", line 22, in <module>
    from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_1_12, _XLA_AVAILABLE
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\imports.py", line 50, in <module>
    _TORCHAUDIO_GREATER_EQUAL_0_10: Optional[bool] = compare_version("torchaudio", operator.ge, "0.10.0")
  File "K:\stable-diffusion-webui\venv\lib\site-packages\lightning_utilities\core\imports.py", line 73, in compare_version
    pkg = importlib.import_module(package)
  File "C:\Users\bluee\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\__init__.py", line 1, in <module>
    from . import (  # noqa: F401
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\_extension\__init__.py", line 45, in <module>
    _load_lib("libtorchaudio")
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\_extension\utils.py", line 64, in _load_lib
    torch.ops.load_library(path)
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torch\_ops.py", line 643, in load_library
    ctypes.CDLL(path)
  File "C:\Users\bluee\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] w肳ꂽvV[W܂B


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "K:\stable-diffusion-webui\modules\script_loading.py", line 26, in preload_extensions
    module = load_module(preload_script)
  File "K:\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 "K:\stable-diffusion-webui\extensions-builtin\LDSR\preload.py", line 2, in <module>
    from modules import paths
  File "K:\stable-diffusion-webui\modules\paths.py", line 61, in <module>
    import sgm  # noqa: F401
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\__init__.py", line 1, in <module>
    from .models import AutoencodingEngine, DiffusionEngine
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\models\__init__.py", line 1, in <module>
    from .autoencoder import AutoencodingEngine
  File "K:\stable-diffusion-webui\repositories\generative-models\sgm\models\autoencoder.py", line 6, in <module>
    import pytorch_lightning as pl
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\__init__.py", line 35, in <module>
    from pytorch_lightning.callbacks import Callback  # noqa: E402
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\__init__.py", line 14, in <module>
    from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in <module>
    from pytorch_lightning.callbacks.callback import Callback
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in <module>
    from pytorch_lightning.utilities.types import STEP_OUTPUT
  File "K:\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in <module>
    from torchmetrics import Metric
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\__init__.py", line 14, in <module>
    from torchmetrics import functional  # noqa: E402
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\__init__.py", line 14, in <module>
    from torchmetrics.functional.audio._deprecated import _permutation_invariant_training as permutation_invariant_training
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\audio\__init__.py", line 14, in <module>
    from torchmetrics.functional.audio.pit import permutation_invariant_training, pit_permutate
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\audio\pit.py", line 22, in <module>
    from torchmetrics.utilities import rank_zero_warn
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\__init__.py", line 14, in <module>
    from torchmetrics.utilities.checks import check_forward_full_state_property
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\checks.py", line 25, in <module>
    from torchmetrics.metric import Metric
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\metric.py", line 30, in <module>
    from torchmetrics.utilities.data import (
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\data.py", line 22, in <module>
    from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_1_12, _XLA_AVAILABLE
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\imports.py", line 50, in <module>
    _TORCHAUDIO_GREATER_EQUAL_0_10: Optional[bool] = compare_version("torchaudio", operator.ge, "0.10.0")
  File "K:\stable-diffusion-webui\venv\lib\site-packages\lightning_utilities\core\imports.py", line 73, in compare_version
    pkg = importlib.import_module(package)
  File "C:\Users\bluee\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\__init__.py", line 1, in <module>
    from . import (  # noqa: F401
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\_extension\__init__.py", line 45, in <module>
    _load_lib("libtorchaudio")
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torchaudio\_extension\utils.py", line 64, in _load_lib
    torch.ops.load_library(path)
  File "K:\stable-diffusion-webui\venv\lib\site-packages\torch\_ops.py", line 643, in load_library
    ctypes.CDLL(path)
  File "C:\Users\bluee\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] 指定されたプロシージャが見つかりません。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "K:\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "K:\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "K:\stable-diffusion-webui\modules\launch_utils.py", line 400, in prepare_environment
    run_extensions_installers(settings_file=args.ui_settings_file)
  File "K:\stable-diffusion-webui\modules\launch_utils.py", line 268, in run_extensions_installers
    run_extension_installer(path)
  File "K:\stable-diffusion-webui\modules\launch_utils.py", line 235, in run_extension_installer
    errors.report(str(e))
  File "K:\stable-diffusion-webui\modules\errors.py", line 29, in report
    record_exception()
  File "K:\stable-diffusion-webui\modules\errors.py", line 17, in record_exception
    from modules import sysinfo
  File "K:\stable-diffusion-webui\modules\sysinfo.py", line 13, in <module>
    from modules import paths_internal, timer, shared, extensions, errors
  File "K:\stable-diffusion-webui\modules\shared.py", line 5, in <module>
    from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types
  File "K:\stable-diffusion-webui\modules\shared_cmd_options.py", line 10, in <module>
    script_loading.preload_extensions(extensions_builtin_dir, parser)
  File "K:\stable-diffusion-webui\modules\script_loading.py", line 31, in preload_extensions
    errors.report(f"Error running preload() for {preload_script}", exc_info=True)
  File "K:\stable-diffusion-webui\modules\errors.py", line 29, in report
    record_exception()
  File "K:\stable-diffusion-webui\modules\errors.py", line 18, in record_exception
    exception_records.append(sysinfo.format_exception(e, tb))
AttributeError: partially initialized module 'modules.sysinfo' has no attribute 'format_exception' (most likely due to a circular import)
```


### Additional information

_No response_