lshqqytiger / stable-diffusion-webui-amdgpu

Stable Diffusion web UI
GNU Affero General Public License v3.0
1.88k stars 192 forks source link

[Bug]: it cant open with extensions. #478

Closed waldolin closed 5 months ago

waldolin commented 5 months ago

Checklist

What happened?

it can be used , but it cant open with extensions. I try to enable extensions and cant use right now...

`venv "D:\Users\lin\stable-diffusion-webui-directml\venv\Scripts\Python.exe" Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Version: v1.9.3-amd-26-g50d3cf78 Commit hash: 50d3cf7852cfe07bd562440246202d8925be98a4 Using ZLUDA in D:\Users\lin\stable-diffusion-webui-directml.zluda *** Error running preload() for D:\Users\lin\stable-diffusion-webui-directml\extensions-builtin\LDSR\preload.py Traceback (most recent call last): File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat__init.py", line 42, in tf from tensorboard.compat import notf # noqa: F401 ImportError: cannot import name 'notf' from 'tensorboard.compat' (D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Users\lin\stable-diffusion-webui-directml\modules\script_loading.py", line 30, in preload_extensions
    module = load_module(preload_script)
  File "D:\Users\lin\stable-diffusion-webui-directml\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 "D:\Users\lin\stable-diffusion-webui-directml\extensions-builtin\LDSR\preload.py", line 2, in <module>
    from modules import paths
  File "D:\Users\lin\stable-diffusion-webui-directml\modules\paths.py", line 60, in <module>
    import sgm  # noqa: F401
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\__init__.py", line 1, in <module>
    from .models import AutoencodingEngine, DiffusionEngine
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\__init__.py", line 1, in <module>
    from .autoencoder import AutoencodingEngine
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\autoencoder.py", line 12, in <module>
    from ..modules.diffusionmodules.model import Decoder, Encoder
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\__init__.py", line 1, in <module>
    from .encoders.modules import GeneralConditioner
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\encoders\modules.py", line 5, in <module>
    import kornia
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\__init__.py", line 11, in <module>
    from . import augmentation, color, contrib, core, enhance, feature, io, losses, metrics, morphology, tracking, utils, x
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\__init__.py", line 2, in <module>
    from .trainer import Trainer
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\trainer.py", line 11, in <module>
    from accelerate import Accelerator
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\__init__.py", line 3, in <module>
    from .accelerator import Accelerator
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\accelerator.py", line 41, in <module>
    from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\tracking.py", line 43, in <module>
    from torch.utils import tensorboard
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\__init__.py", line 12, in <module>
    from .writer import FileWriter, SummaryWriter  # noqa: F401
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in <module>
    from ._embedding import (
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\_embedding.py", line 9, in <module>
    _HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 65, in __getattr__
    return getattr(load_once(self), attr_name)
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper
    cache[arg] = f(arg)
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 50, in load_once
    module = load_fn()
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\__init__.py", line 45, in tf
    import tensorflow
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\__init__.py", line 52, in <module>
    from ._api.v2 import compat
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\__init__.py", line 37, in <module>
    from . import v1
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\__init__.py", line 31, in <module>
    from . import compat
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\__init__.py", line 37, in <module>
    from . import v1
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\v1\__init__.py", line 48, in <module>
    from tensorflow._api.v2.compat.v1 import lite
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\__init__.py", line 9, in <module>
    from . import experimental
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\__init__.py", line 8, in <module>
    from . import authoring
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\authoring\__init__.py", line 8, in <module>
    from tensorflow.lite.python.authoring.authoring import compatible
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\authoring\authoring.py", line 43, in <module>
    from tensorflow.lite.python import convert
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\convert.py", line 29, in <module>
    from tensorflow.lite.python import util
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\util.py", line 51, in <module>
    from jax import xla_computation as _xla_computation
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\__init__.py", line 37, in <module>
    import jax.core as _core
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\core.py", line 18, in <module>
    from jax._src.core import (
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\core.py", line 39, in <module>
    from jax._src import dtypes
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\dtypes.py", line 33, in <module>
    from jax._src import config
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\config.py", line 27, in <module>
    from jax._src import lib
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\lib\__init__.py", line 75, in <module>
    version = check_jaxlib_version(
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\lib\__init__.py", line 67, in check_jaxlib_version
    raise RuntimeError(
RuntimeError: jaxlib version 0.4.30 is newer than and incompatible with jax version 0.4.26. Please update your jax and/or jaxlib packages.

*** Error running preload() for D:\Users\lin\stable-diffusion-webui-directml\extensions-builtin\Lora\preload.py Traceback (most recent call last): File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat__init.py", line 42, in tf from tensorboard.compat import notf # noqa: F401 ImportError: cannot import name 'notf' from 'tensorboard.compat' (D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Users\lin\stable-diffusion-webui-directml\modules\script_loading.py", line 30, in preload_extensions
    module = load_module(preload_script)
  File "D:\Users\lin\stable-diffusion-webui-directml\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 "D:\Users\lin\stable-diffusion-webui-directml\extensions-builtin\Lora\preload.py", line 2, in <module>
    from modules import paths
  File "D:\Users\lin\stable-diffusion-webui-directml\modules\paths.py", line 60, in <module>
    import sgm  # noqa: F401
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\__init__.py", line 1, in <module>
    from .models import AutoencodingEngine, DiffusionEngine
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\__init__.py", line 1, in <module>
    from .autoencoder import AutoencodingEngine
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\autoencoder.py", line 12, in <module>
    from ..modules.diffusionmodules.model import Decoder, Encoder
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\__init__.py", line 1, in <module>
    from .encoders.modules import GeneralConditioner
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\encoders\modules.py", line 5, in <module>
    import kornia
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\__init__.py", line 11, in <module>
    from . import augmentation, color, contrib, core, enhance, feature, io, losses, metrics, morphology, tracking, utils, x
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\__init__.py", line 2, in <module>
    from .trainer import Trainer
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\trainer.py", line 11, in <module>
    from accelerate import Accelerator
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\__init__.py", line 3, in <module>
    from .accelerator import Accelerator
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\accelerator.py", line 41, in <module>
    from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\tracking.py", line 43, in <module>
    from torch.utils import tensorboard
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\__init__.py", line 12, in <module>
    from .writer import FileWriter, SummaryWriter  # noqa: F401
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in <module>
    from ._embedding import (
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\_embedding.py", line 9, in <module>
    _HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 65, in __getattr__
    return getattr(load_once(self), attr_name)
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper
    cache[arg] = f(arg)
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 50, in load_once
    module = load_fn()
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\__init__.py", line 45, in tf
    import tensorflow
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\__init__.py", line 52, in <module>
    from ._api.v2 import compat
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\__init__.py", line 37, in <module>
    from . import v1
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\__init__.py", line 31, in <module>
    from . import compat
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\__init__.py", line 37, in <module>
    from . import v1
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\v1\__init__.py", line 48, in <module>
    from tensorflow._api.v2.compat.v1 import lite
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\__init__.py", line 9, in <module>
    from . import experimental
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\__init__.py", line 8, in <module>
    from . import authoring
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\authoring\__init__.py", line 8, in <module>
    from tensorflow.lite.python.authoring.authoring import compatible
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\authoring\authoring.py", line 43, in <module>
    from tensorflow.lite.python import convert
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\convert.py", line 29, in <module>
    from tensorflow.lite.python import util
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\util.py", line 51, in <module>
    from jax import xla_computation as _xla_computation
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\__init__.py", line 37, in <module>
    import jax.core as _core
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\core.py", line 18, in <module>
    from jax._src.core import (
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\core.py", line 39, in <module>
    from jax._src import dtypes
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\dtypes.py", line 33, in <module>
    from jax._src import config
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\config.py", line 27, in <module>
    from jax._src import lib
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\lib\__init__.py", line 76, in <module>
    jax_version=jax.version.__version__,
AttributeError: partially initialized module 'jax' has no attribute 'version' (most likely due to a circular import)

*** Error running preload() for D:\Users\lin\stable-diffusion-webui-directml\extensions-builtin\ScuNET\preload.py Traceback (most recent call last): File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat__init.py", line 42, in tf from tensorboard.compat import notf # noqa: F401 ImportError: cannot import name 'notf' from 'tensorboard.compat' (D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Users\lin\stable-diffusion-webui-directml\modules\script_loading.py", line 30, in preload_extensions
    module = load_module(preload_script)
  File "D:\Users\lin\stable-diffusion-webui-directml\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 "D:\Users\lin\stable-diffusion-webui-directml\extensions-builtin\ScuNET\preload.py", line 2, in <module>
    from modules import paths
  File "D:\Users\lin\stable-diffusion-webui-directml\modules\paths.py", line 60, in <module>
    import sgm  # noqa: F401
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\__init__.py", line 1, in <module>
    from .models import AutoencodingEngine, DiffusionEngine
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\__init__.py", line 1, in <module>
    from .autoencoder import AutoencodingEngine
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\autoencoder.py", line 12, in <module>
    from ..modules.diffusionmodules.model import Decoder, Encoder
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\__init__.py", line 1, in <module>
    from .encoders.modules import GeneralConditioner
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\encoders\modules.py", line 5, in <module>
    import kornia
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\__init__.py", line 11, in <module>
    from . import augmentation, color, contrib, core, enhance, feature, io, losses, metrics, morphology, tracking, utils, x
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\__init__.py", line 2, in <module>
    from .trainer import Trainer
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\trainer.py", line 11, in <module>
    from accelerate import Accelerator
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\__init__.py", line 3, in <module>
    from .accelerator import Accelerator
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\accelerator.py", line 41, in <module>
    from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\tracking.py", line 43, in <module>
    from torch.utils import tensorboard
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\__init__.py", line 12, in <module>
    from .writer import FileWriter, SummaryWriter  # noqa: F401
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in <module>
    from ._embedding import (
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\_embedding.py", line 9, in <module>
    _HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 65, in __getattr__
    return getattr(load_once(self), attr_name)
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper
    cache[arg] = f(arg)
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 50, in load_once
    module = load_fn()
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\__init__.py", line 45, in tf
    import tensorflow
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\__init__.py", line 52, in <module>
    from ._api.v2 import compat
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\__init__.py", line 37, in <module>
    from . import v1
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\__init__.py", line 31, in <module>
    from . import compat
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\__init__.py", line 37, in <module>
    from . import v1
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\v1\__init__.py", line 48, in <module>
    from tensorflow._api.v2.compat.v1 import lite
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\__init__.py", line 9, in <module>
    from . import experimental
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\__init__.py", line 8, in <module>
    from . import authoring
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\authoring\__init__.py", line 8, in <module>
    from tensorflow.lite.python.authoring.authoring import compatible
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\authoring\authoring.py", line 43, in <module>
    from tensorflow.lite.python import convert
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\convert.py", line 29, in <module>
    from tensorflow.lite.python import util
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\util.py", line 51, in <module>
    from jax import xla_computation as _xla_computation
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\__init__.py", line 37, in <module>
    import jax.core as _core
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\core.py", line 18, in <module>
    from jax._src.core import (
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\core.py", line 39, in <module>
    from jax._src import dtypes
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\dtypes.py", line 33, in <module>
    from jax._src import config
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\config.py", line 27, in <module>
    from jax._src import lib
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\lib\__init__.py", line 76, in <module>
    jax_version=jax.version.__version__,
AttributeError: partially initialized module 'jax' has no attribute 'version' (most likely due to a circular import)

*** Error running preload() for D:\Users\lin\stable-diffusion-webui-directml\extensions-builtin\SwinIR\preload.py Traceback (most recent call last): File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat__init.py", line 42, in tf from tensorboard.compat import notf # noqa: F401 ImportError: cannot import name 'notf' from 'tensorboard.compat' (D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Users\lin\stable-diffusion-webui-directml\modules\script_loading.py", line 30, in preload_extensions
    module = load_module(preload_script)
  File "D:\Users\lin\stable-diffusion-webui-directml\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 "D:\Users\lin\stable-diffusion-webui-directml\extensions-builtin\SwinIR\preload.py", line 2, in <module>
    from modules import paths
  File "D:\Users\lin\stable-diffusion-webui-directml\modules\paths.py", line 60, in <module>
    import sgm  # noqa: F401
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\__init__.py", line 1, in <module>
    from .models import AutoencodingEngine, DiffusionEngine
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\__init__.py", line 1, in <module>
    from .autoencoder import AutoencodingEngine
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\autoencoder.py", line 12, in <module>
    from ..modules.diffusionmodules.model import Decoder, Encoder
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\__init__.py", line 1, in <module>
    from .encoders.modules import GeneralConditioner
  File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\encoders\modules.py", line 5, in <module>
    import kornia
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\__init__.py", line 11, in <module>
    from . import augmentation, color, contrib, core, enhance, feature, io, losses, metrics, morphology, tracking, utils, x
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\__init__.py", line 2, in <module>
    from .trainer import Trainer
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\trainer.py", line 11, in <module>
    from accelerate import Accelerator
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\__init__.py", line 3, in <module>
    from .accelerator import Accelerator
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\accelerator.py", line 41, in <module>
    from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\tracking.py", line 43, in <module>
    from torch.utils import tensorboard
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\__init__.py", line 12, in <module>
    from .writer import FileWriter, SummaryWriter  # noqa: F401
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in <module>
    from ._embedding import (
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\_embedding.py", line 9, in <module>
    _HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 65, in __getattr__
    return getattr(load_once(self), attr_name)
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper
    cache[arg] = f(arg)
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 50, in load_once
    module = load_fn()
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\__init__.py", line 45, in tf
    import tensorflow
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\__init__.py", line 52, in <module>
    from ._api.v2 import compat
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\__init__.py", line 37, in <module>
    from . import v1
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\__init__.py", line 31, in <module>
    from . import compat
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\__init__.py", line 37, in <module>
    from . import v1
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\compat\v1\__init__.py", line 48, in <module>
    from tensorflow._api.v2.compat.v1 import lite
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\__init__.py", line 9, in <module>
    from . import experimental
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\__init__.py", line 8, in <module>
    from . import authoring
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\_api\v2\compat\v1\lite\experimental\authoring\__init__.py", line 8, in <module>
    from tensorflow.lite.python.authoring.authoring import compatible
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\authoring\authoring.py", line 43, in <module>
    from tensorflow.lite.python import convert
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\convert.py", line 29, in <module>
    from tensorflow.lite.python import util
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\util.py", line 51, in <module>
    from jax import xla_computation as _xla_computation
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\__init__.py", line 37, in <module>
    import jax.core as _core
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\core.py", line 18, in <module>
    from jax._src.core import (
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\core.py", line 39, in <module>
    from jax._src import dtypes
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\dtypes.py", line 33, in <module>
    from jax._src import config
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\config.py", line 27, in <module>
    from jax._src import lib
  File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\_src\lib\__init__.py", line 76, in <module>
    jax_version=jax.version.__version__,
AttributeError: partially initialized module 'jax' has no attribute 'version' (most likely due to a circular import)

Traceback (most recent call last): File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat__init.py", line 42, in tf from tensorboard.compat import notf # noqa: F401 ImportError: cannot import name 'notf' from 'tensorboard.compat' (D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat\init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\Users\lin\stable-diffusion-webui-directml\launch.py", line 48, in main() File "D:\Users\lin\stable-diffusion-webui-directml\launch.py", line 39, in main prepare_environment() File "D:\Users\lin\stable-diffusion-webui-directml\modules\launch_utils.py", line 669, in prepare_environment from modules import devices File "D:\Users\lin\stable-diffusion-webui-directml\modules\devices.py", line 6, in from modules import errors, shared, npu_specific File "D:\Users\lin\stable-diffusion-webui-directml\modules\shared.py", line 6, in from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types File "D:\Users\lin\stable-diffusion-webui-directml\modules\shared_items.py", line 4, in from modules import script_callbacks, scripts, ui_components File "D:\Users\lin\stable-diffusion-webui-directml\modules\script_callbacks.py", line 11, in from modules import errors, timer, extensions, shared, util File "D:\Users\lin\stable-diffusion-webui-directml\modules\extensions.py", line 9, in from modules import shared, errors, cache, scripts File "D:\Users\lin\stable-diffusion-webui-directml\modules\cache.py", line 9, in from modules.paths import data_path, script_path File "D:\Users\lin\stable-diffusion-webui-directml\modules\paths.py", line 60, in import sgm # noqa: F401 File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm__init.py", line 1, in from .models import AutoencodingEngine, DiffusionEngine File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models__init.py", line 1, in from .autoencoder import AutoencodingEngine File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\models\autoencoder.py", line 12, in from ..modules.diffusionmodules.model import Decoder, Encoder File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules__init.py", line 1, in from .encoders.modules import GeneralConditioner File "D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\sgm\modules\encoders\modules.py", line 5, in import kornia File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia__init.py", line 11, in from . import augmentation, color, contrib, core, enhance, feature, io, losses, metrics, morphology, tracking, utils, x File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x__init.py", line 2, in from .trainer import Trainer File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\kornia\x\trainer.py", line 11, in from accelerate import Accelerator File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate__init.py", line 3, in from .accelerator import Accelerator File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\accelerator.py", line 41, in from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\accelerate\tracking.py", line 43, in from torch.utils import tensorboard File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard__init.py", line 12, in from .writer import FileWriter, SummaryWriter # noqa: F401 File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in from ._embedding import ( File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\torch\utils\tensorboard_embedding.py", line 9, in _HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join") File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 65, in getattr return getattr(load_once(self), attr_name) File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper cache[arg] = f(arg) File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\lazy.py", line 50, in load_once module = load_fn() File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorboard\compat__init.py", line 45, in tf import tensorflow File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow__init.py", line 52, in from ._api.v2 import compat File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow_api\v2\compat__init__.py", line 37, in from . import v1 File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow_api\v2\compat\v1\init__.py", line 31, in from . import compat File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow_api\v2\compat\v1\compat\init__.py", line 37, in from . import v1 File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow_api\v2\compat\v1\compat\v1\init__.py", line 48, in from tensorflow._api.v2.compat.v1 import lite File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow_api\v2\compat\v1\lite\init__.py", line 9, in from . import experimental File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow_api\v2\compat\v1\lite\experimental\init__.py", line 8, in from . import authoring File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow_api\v2\compat\v1\lite\experimental\authoring\init__.py", line 8, in from tensorflow.lite.python.authoring.authoring import compatible File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\authoring\authoring.py", line 43, in from tensorflow.lite.python import convert File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\convert.py", line 29, in from tensorflow.lite.python import util File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\tensorflow\lite\python\util.py", line 51, in from jax import xla_computation as _xla_computation File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\init__.py", line 37, in import jax.core as _core File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax\core.py", line 18, in from jax._src.core import ( File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax_src\core.py", line 39, in from jax._src import dtypes File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax_src\dtypes.py", line 33, in from jax._src import config File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax_src\config.py", line 27, in from jax._src import lib File "D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\jax_src\lib\init__.py", line 76, in jax_version=jax.version.version__, AttributeError: partially initialized module 'jax' has no attribute 'version' (most likely due to a circular import) 請按任意鍵繼續 . . .`

Steps to reproduce the problem

1.enable extension 2.face bug 3.--disable-all-extensions it is not successful in "--disable-all-extensions"

What should have happened?

--disable-all-extensions and open it

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

version: v1.9.3-amd-26-g50d3cf78  •  python: 3.10.7  •  torch: 2.0.0+cpu  •  xformers: N/A  •  gradio: 3.41.2  •  checkpoint: 7f96a1a9ca

Console logs

as above

Additional information

 I have not updated my GPU driver recently.

waldolin commented 5 months ago

I fixed it with "pip install --upgrade jax==0.4.30 jaxlib==0.4.30"