Skip to content

Stable Diffusion Forge stopped running in StabilityMatrix, after the Win11 update #1605

@Dezhaiiro

Description

@Dezhaiiro

What happened?

Everything worked fine before that. I installed all new StabilityMatrix updates on time. But on April 9, the Win11 update was released, after which all attempts to run Stable Diffusion Forge in StabilityMatrix began to lead to this error:

[sitecustomize error]: module '__main__' has no attribute '__file__'
[sitecustomize error]: module '__main__' has no attribute '__file__'
[sitecustomize error]: module '__main__' has no attribute '__file__'
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: f2.0.1v1.10.1-previous-669-gdfdcbab6
Commit hash: dfdcbab685e57677014f05a3309b48cc87383167
Traceback (most recent call last):
  File "C:\StabilityMatrix\Data\Packages\stable-diffusion-webui-forge\launch.py", line 54, in <module>
    main()
  File "C:\StabilityMatrix\Data\Packages\stable-diffusion-webui-forge\launch.py", line 42, in main
    prepare_environment()
  File "C:\StabilityMatrix\Data\Packages\stable-diffusion-webui-forge\modules\launch_utils.py", line 434, in prepare_environment
    raise RuntimeError(
RuntimeError: Your device does not support the current version of Torch/CUDA! Consider download another version: 
https://github.com/lllyasviel/stable-diffusion-webui-forge/releases/tag/latest

After updating all versions of the language packs, programs, etc., nothing has changed.

Also, when trying to install a new Forge Neo package in StabilityMatrix, this error occurs:

Unpacking resources
Unpacking resources
Cloning into 'C:\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge - Neo'...
Download Complete
Could not install forge-neo (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 2: 'error: Failed to inspect Python interpreter from provided path at `venv\Scripts\python.exe`\n  Caused by: Querying Python at `C:\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge - Neo\venv\Scripts\python.exe` failed with exit status exit code: 1\n\n[stderr]\nAttributeError: module '__main__' has no attribute '__file__'\n'
   at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action`1 outputDataReceived)
   at StabilityMatrix.Core.Models.Packages.BaseGitPackage.SetupVenvPure(String installedPackagePath, String venvName, Boolean forceRecreate, Action`1 onConsoleOutput, Nullable`1 pythonVersion)
   at StabilityMatrix.Core.Models.Packages.ForgeClassic.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress`1 progress, Action`1 onConsoleOutput, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps))

It is also not possible to completely remove StabilityMatrix and reinstall it.
At first, I thought it was Win11 that broke StabilityMatrix, but now it seems to me that the problem is on the side of StabilityMatrix, and I do not know how to solve it. Nothing I've tried helps.

My Hardware:
Processor - Intel(R) Core(TM) Ultra 9 275HX (2.70 GHz)
RAM - 48.0 GB
Graphics Card - NVIDIA GeForce RTX 5070 Ti Laptop GPU (12 GB) Intel(R) Graphics (128 MB)

Steps to reproduce

No response

Relevant logs

Version

2.15.7

What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions