Skip to content

[Bug]: ModuleNotFoundError: No module named 'numpy.exceptions' #17063

@Limmweb

Description

@Limmweb

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Automatic1111 Google Collab, yesterday it launched fine,

https://github.com/TheLastBen/fast-stable-diffusion

today I got error :

Steps to reproduce the problem

Launch Automatic1111 https://github.com/TheLastBen/fast-stable-diffusion

What should have happened?

It should launch

What browsers do you use to access the UI ?

No response

Sysinfo

no access to UI due to error

Console logs

Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 17, in imports
    import pytorch_lightning  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/__init__.py", line 34, in <module>
    from pytorch_lightning.callbacks import Callback  # noqa: E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/__init__.py", line 14, in <module>
    from pytorch_lightning.callbacks.callback import Callback
  File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/callback.py", line 25, in <module>
    from pytorch_lightning.utilities.types import STEP_OUTPUT
  File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/utilities/types.py", line 28, in <module>
    from torchmetrics import Metric
  File "/usr/local/lib/python3.11/dist-packages/torchmetrics/__init__.py", line 52, in <module>
    from torchmetrics.image import (  # noqa: E402
  File "/usr/local/lib/python3.11/dist-packages/torchmetrics/image/__init__.py", line 26, in <module>
    from torchmetrics.image.fid import FrechetInceptionDistance  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/torchmetrics/image/fid.py", line 28, in <module>
    from torch_fidelity.feature_extractor_inceptionv3 import FeatureExtractorInceptionV3
  File "/usr/local/lib/python3.11/dist-packages/torch_fidelity/__init__.py", line 6, in <module>
    from torch_fidelity.metric_fid import KEY_METRIC_FID
  File "/usr/local/lib/python3.11/dist-packages/torch_fidelity/metric_fid.py", line 6, in <module>
    import scipy.linalg
  File "/usr/local/lib/python3.11/dist-packages/scipy/linalg/__init__.py", line 204, in <module>
    from ._cythonized_array_utils import *
  File "scipy/linalg/_cythonized_array_utils.pyx", line 11, in init scipy.linalg._cythonized_array_utils
  File "/usr/local/lib/python3.11/dist-packages/scipy/_lib/_util.py", line 20, in <module>
    from numpy.exceptions import AxisError
ModuleNotFoundError: No module named 'numpy.exceptions'

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions