Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Installation failed on Windows 11 [False alarm, tried again and it worked] #15796

Closed
2 of 6 tasks
nitinmukesh opened this issue May 15, 2024 · 2 comments
Closed
2 of 6 tasks
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@nitinmukesh
Copy link

nitinmukesh commented May 15, 2024

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?

WebUI failed to install.
Please NOTE: It installed successsfully yesterday, same 1.9.3 version. Today morning I deleted old version and tried to install again and it failed at installation.

Steps to reproduce the problem

  1. Clone the repository
  2. Launch webui-user.bat file

What should have happened?

WebUI should be installed

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo-2024-05-15-08-00.json

Console logs

Creating venv in directory C:\sd\stable-diffusion-webui\venv using python "C:\Program Files\Python310\python.exe"
venv "C:\sd\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com, https://download.pytorch.org/whl/cu121
Collecting torch==2.1.2
  Downloading https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 GB 13.1 MB/s eta 0:00:00
Collecting torchvision==0.16.2
  Downloading https://download.pytorch.org/whl/cu121/torchvision-0.16.2%2Bcu121-cp310-cp310-win_amd64.whl (5.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB 16.4 MB/s eta 0:00:00
Collecting jinja2
  Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.3/133.3 kB 8.2 MB/s eta 0:00:00
Collecting fsspec
  Downloading fsspec-2024.3.1-py3-none-any.whl (171 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.0/172.0 kB ? eta 0:00:00
Collecting sympy
  Downloading https://download.pytorch.org/whl/sympy-1.12-py3-none-any.whl (5.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 17.5 MB/s eta 0:00:00
Collecting filelock
  Downloading filelock-3.14.0-py3-none-any.whl (12 kB)
Collecting networkx
  Downloading networkx-3.3-py3-none-any.whl (1.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 36.0 MB/s eta 0:00:00
Collecting typing-extensions
  Downloading typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Collecting pillow!=8.3.*,>=5.3.0
  Downloading pillow-10.3.0-cp310-cp310-win_amd64.whl (2.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 26.8 MB/s eta 0:00:00
Collecting numpy
  Downloading numpy-1.26.4-cp310-cp310-win_amd64.whl (15.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 13.1 MB/s eta 0:00:00
Collecting requests
  Downloading requests-2.31.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB ? eta 0:00:00
Collecting MarkupSafe>=2.0
  Downloading https://download.pytorch.org/whl/MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB)
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl (100 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.3/100.3 kB ? eta 0:00:00
Collecting urllib3<3,>=1.21.1
  Downloading urllib3-2.2.1-py3-none-any.whl (121 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.1/121.1 kB ? eta 0:00:00
Collecting certifi>=2017.4.17
  Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.8/163.8 kB ? eta 0:00:00
Collecting idna<4,>=2.5
  Downloading idna-3.7-py3-none-any.whl (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.8/66.8 kB ? eta 0:00:00
Collecting mpmath>=0.19
  Downloading https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB ? eta 0:00:00
Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, fsspec, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision
Successfully installed MarkupSafe-2.1.5 certifi-2024.2.2 charset-normalizer-3.3.2 filelock-3.14.0 fsspec-2024.3.1 idna-3.7 jinja2-3.1.4 mpmath-1.3.0 networkx-3.3 numpy-1.26.4 pillow-10.3.0 requests-2.31.0 sympy-1.12 torch-2.1.2+cu121 torchvision-0.16.2+cu121 typing-extensions-4.11.0 urllib3-2.2.1

[notice] A new release of pip available: 22.2.1 -> 24.0
[notice] To update, run: C:\sd\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Installing clip
Installing open_clip
Cloning assets into C:\sd\stable-diffusion-webui\repositories\stable-diffusion-webui-assets...
Cloning into 'C:\sd\stable-diffusion-webui\repositories\stable-diffusion-webui-assets'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (18/18), done.
Receiving objects: 100% (20/20), 132.70 KiB | 1.95 MiB/s, done.

Cloning Stable Diffusion into C:\sd\stable-diffusion-webui\repositories\stable-diffusion-stability-ai...
Cloning into 'C:\sd\stable-diffusion-webui\repositories\stable-diffusion-stability-ai'...
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (571/571), done.
remote: Compressing objects: 100% (304/304), done.
remote: Total 580 (delta 278), reused 448 (delta 249), pack-reused 9Receiving objects:  92% (534/580), 68.41 MiB | 12.33Receiving objects: 100% (580/580), 73.44 MiB | 11.34 MiB/s, done.

Resolving deltas: 100% (278/278), done.
Cloning Stable Diffusion XL into C:\sd\stable-diffusion-webui\repositories\generative-models...
Cloning into 'C:\sd\stable-diffusion-webui\repositories\generative-models'...
remote: Enumerating objects: 941, done.
Receiving objects:  45% (424/941), 41.77 MiB | 11.69 MiB/sremote: Total 941 (delta 0), reused 0 (delta 0), pack-reused 9Receiving objects: 100% (941/941), 43.85 MiB | 11.72 MiB/s, done.

Resolving deltas: 100% (491/491), done.
Cloning K-diffusion into C:\sd\stable-diffusion-webui\repositories\k-diffusion...
Cloning into 'C:\sd\stable-diffusion-webui\repositories\k-diffusion'...
remote: Enumerating objects: 1345, done.
remote: Counting objects: 100% (743/743), done.
remote: Compressing objects: 100% (94/94), done.
Receiving objects: 100% (1345/1345), 236.07 KiB | 1.83 MiB/s, done. 602

Resolving deltas: 100% (945/945), done.
Cloning BLIP into C:\sd\stable-diffusion-webui\repositories\BLIP...
Cloning into 'C:\sd\stable-diffusion-webui\repositories\BLIP'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (30/30), done.
Receiving objects: 100% (277/277), 7.03 MiB | 11.52 MiB/s, done.
Resolving deltas:   3% (5/152) reused 136 (delta 135), pack-reused 112
Resolving deltas: 100% (152/152), done.
Installing requirements
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.

------------------------------------------------------------------------------------------------------------------------
launch.py 48 <module>
main()

launch.py 44 main
start()

launch_utils.py 465 start
import webui

webui.py 13 <module>
initialize.imports()

initialize.py 39 imports
from modules import processing, gradio_extensons, ui  # noqa: F401

processing.py 18 <module>
import modules.sd_hijack

sd_hijack.py 5 <module>
from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches

sd_hijack_optimizations.py 13 <module>
from modules.hypernetworks import hypernetwork

hypernetwork.py 8 <module>
import modules.textual_inversion.dataset

dataset.py 12 <module>
from modules import devices, shared, images

images.py 22 <module>
from modules import sd_samplers, shared, script_callbacks, errors

sd_samplers.py 5 <module>
from modules import sd_samplers_kdiffusion, sd_samplers_timesteps, sd_samplers_lcm, shared, sd_samplers_common, sd_schedulers

sd_samplers_kdiffusion.py 3 <module>
import k_diffusion.sampling

__init__.py 1 <module>
from . import augmentation, config, evaluation, external, gns, layers, models, sampling, utils

config.py 6 <module>
from jsonmerge import merge

ModuleNotFoundError:
No module named 'jsonmerge'
Press any key to continue . . .

Additional information

No response

@nitinmukesh nitinmukesh added the bug-report Report of a bug, yet to be confirmed label May 15, 2024
@nitinmukesh
Copy link
Author

Tried the following

  1. Closed the command prompt
  2. Opened the prompt again
    C:\sd\stable-diffusion-webui>venv\Scripts\activate
(venv) C:\sd\stable-diffusion-webui>pip install jsonmerge
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: jsonmerge in c:\sd\stable-diffusion-webui\venv\lib\site-packages (1.8.0)
Requirement already satisfied: jsonschema in c:\sd\stable-diffusion-webui\venv\lib\site-packages (from jsonmerge) (4.22.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in c:\sd\stable-diffusion-webui\venv\lib\site-packages (from jsonschema->jsonmerge) (2023.12.1)
Requirement already satisfied: referencing>=0.28.4 in c:\sd\stable-diffusion-webui\venv\lib\site-packages (from jsonschema->jsonmerge) (0.35.1)
Requirement already satisfied: rpds-py>=0.7.1 in c:\sd\stable-diffusion-webui\venv\lib\site-packages (from jsonschema->jsonmerge) (0.18.1)
Requirement already satisfied: attrs>=22.2.0 in c:\sd\stable-diffusion-webui\venv\lib\site-packages (from jsonschema->jsonmerge) (23.2.0)

[notice] A new release of pip available: 22.2.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip
  1. Launched webui-user.bat again
venv "C:\sd\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.

------------------------------------------------------------------------------------------------------------------------
launch.py 48 <module>
main()

launch.py 44 main
start()

launch_utils.py 465 start
import webui

webui.py 13 <module>
initialize.imports()

initialize.py 39 imports
from modules import processing, gradio_extensons, ui  # noqa: F401

processing.py 18 <module>
import modules.sd_hijack

sd_hijack.py 5 <module>
from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches

sd_hijack_optimizations.py 13 <module>
from modules.hypernetworks import hypernetwork

hypernetwork.py 8 <module>
import modules.textual_inversion.dataset

dataset.py 12 <module>
from modules import devices, shared, images

images.py 22 <module>
from modules import sd_samplers, shared, script_callbacks, errors

sd_samplers.py 5 <module>
from modules import sd_samplers_kdiffusion, sd_samplers_timesteps, sd_samplers_lcm, shared, sd_samplers_common, sd_schedulers

sd_samplers_kdiffusion.py 3 <module>
import k_diffusion.sampling

__init__.py 1 <module>
from . import augmentation, config, evaluation, external, gns, layers, models, sampling, utils

config.py 6 <module>
from jsonmerge import merge

ModuleNotFoundError:
No module named 'jsonmerge'
Press any key to continue . . .

@nitinmukesh
Copy link
Author

nitinmukesh commented May 15, 2024

SOLUTION

  1. (venv) C:\sd\stable-diffusion-webui>python.exe -m pip install --upgrade pip
  2. Delete the following
image
  1. Launch webui-user.bat

The WebUI is launched

@nitinmukesh nitinmukesh changed the title [Bug]: Installation failed on Windows 11 [Bug]: Installation failed on Windows 11 [False alarm, tried again and it worked] May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

1 participant