stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Automatic1111 installation doesn´t complete. Windows 10

Open BjornCG51 opened this issue 1 year ago • 8 comments

Is there an existing issue for this?

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

What happened?

As I did get problems with pnginfo and img2img (more on that later) on my working installation I intended to make a new installation. Then I did get into more trouble as the git-based installation does not complete. I use a GTX1050 Ti with 4 Gb. And have (re)installet Python 3.10.6. Also notably I am 72 yrs old and has no programming experience so I am just following instructions! I hope you can give me some clues on how to solve this. I assume it i something in my local environment?

Steps to reproduce the problem

It is definitely repeatable on my machine, I have tried the installation numerous times, but now I am stuck!

What should have happened?

The installation should have completed so I can access with Chrome (I have tried Edge as well, no difference).

Commit where the problem happens

I haven't a clue.

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

List of extensions

None, as I don't get that far.

Console logs

This is the log from my latest installation attempt (the others look the same):
Creating venv in directory C:\StabDiff230407\stable-diffusion-webui\venv using python "C:\Users\bjorn\AppData\Local\Programs\Python\Python310\python.exe"
venv "C:\StabDiff230407\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)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1+cu117
  Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB)
Collecting torchvision==0.14.1+cu117
  Using cached https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-win_amd64.whl (4.8 MB)
Collecting typing-extensions
  Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting pillow!=8.3.*,>=5.3.0
  Using cached Pillow-9.5.0-cp310-cp310-win_amd64.whl (2.5 MB)
Collecting numpy
  Using cached numpy-1.24.2-cp310-cp310-win_amd64.whl (14.8 MB)
Collecting requests
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
Collecting idna<4,>=2.5
  Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB)
Collecting certifi>=2017.4.17
  Using cached https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB)
Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision
Successfully installed certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.24.2 pillow-9.5.0 requests-2.28.2 torch-1.13.1+cu117 torchvision-0.14.1+cu117 typing-extensions-4.5.0 urllib3-1.26.15

[notice] A new release of pip available: 22.2.1 -> 23.0.1
[notice] To update, run: C:\StabDiff230407\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Installing gfpgan
Installing clip
Installing open_clip
Cloning Stable Diffusion into C:\StabDiff230407\stable-diffusion-webui\repositories\stable-diffusion-stability-ai...
Cloning Taming Transformers into C:\StabDiff230407\stable-diffusion-webui\repositories\taming-transformers...
Cloning K-diffusion into C:\StabDiff230407\stable-diffusion-webui\repositories\k-diffusion...
Cloning CodeFormer into C:\StabDiff230407\stable-diffusion-webui\repositories\CodeFormer...
Cloning BLIP into C:\StabDiff230407\stable-diffusion-webui\repositories\BLIP...
Installing requirements for CodeFormer
Installing requirements for Web UI
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
  File "C:\StabDiff230407\stable-diffusion-webui\launch.py", line 356, in <module>
    start()
  File "C:\StabDiff230407\stable-diffusion-webui\launch.py", line 347, in start
    import webui
  File "C:\StabDiff230407\stable-diffusion-webui\webui.py", line 43, in <module>
    import modules.gfpgan_model as gfpgan
  File "C:\StabDiff230407\stable-diffusion-webui\modules\gfpgan_model.py", line 6, in <module>
    import gfpgan
  File "C:\StabDiff230407\stable-diffusion-webui\venv\lib\site-packages\gfpgan\__init__.py", line 2, in <module>
    from .archs import *
  File "C:\StabDiff230407\stable-diffusion-webui\venv\lib\site-packages\gfpgan\archs\__init__.py", line 2, in <module>
    from basicsr.utils import scandir
  File "C:\StabDiff230407\stable-diffusion-webui\repositories\CodeFormer\basicsr\__init__.py", line 11, in <module>
    from .version import __gitsha__, __version__
ModuleNotFoundError: No module named 'basicsr.version'

Additional information

My working installation works for txt2img but gives errors for pnginfo and img2img (see the attached file).

The cmd for this looks as follows: Creating venv in directory C:\StabDiff230407\stable-diffusion-webui\venv using python "C:\Users\bjorn\AppData\Local\Programs\Python\Python310\python.exe" venv "C:\StabDiff230407\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)] Commit hash: 22bcc7be428c94e9408f589966c2040187245d81 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117 Collecting torch==1.13.1+cu117 Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB) Collecting torchvision==0.14.1+cu117 Using cached https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-win_amd64.whl (4.8 MB) Collecting typing-extensions Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB) Collecting pillow!=8.3.*,>=5.3.0 Using cached Pillow-9.5.0-cp310-cp310-win_amd64.whl (2.5 MB) Collecting numpy Using cached numpy-1.24.2-cp310-cp310-win_amd64.whl (14.8 MB) Collecting requests Using cached requests-2.28.2-py3-none-any.whl (62 kB) Collecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB) Collecting idna<4,>=2.5 Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB) Collecting charset-normalizer<4,>=2 Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB) Collecting certifi>=2017.4.17 Using cached https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB) Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision Successfully installed certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.24.2 pillow-9.5.0 requests-2.28.2 torch-1.13.1+cu117 torchvision-0.14.1+cu117 typing-extensions-4.5.0 urllib3-1.26.15

[notice] A new release of pip available: 22.2.1 -> 23.0.1 [notice] To update, run: C:\StabDiff230407\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip Installing gfpgan Installing clip Installing open_clip Cloning Stable Diffusion into C:\StabDiff230407\stable-diffusion-webui\repositories\stable-diffusion-stability-ai... Cloning Taming Transformers into C:\StabDiff230407\stable-diffusion-webui\repositories\taming-transformers... Cloning K-diffusion into C:\StabDiff230407\stable-diffusion-webui\repositories\k-diffusion... Cloning CodeFormer into C:\StabDiff230407\stable-diffusion-webui\repositories\CodeFormer... Cloning BLIP into C:\StabDiff230407\stable-diffusion-webui\repositories\BLIP... Installing requirements for CodeFormer Installing requirements for Web UI Launching Web UI with arguments: No module 'xformers'. Proceeding without it. Traceback (most recent call last): File "C:\StabDiff230407\stable-diffusion-webui\launch.py", line 356, in start() File "C:\StabDiff230407\stable-diffusion-webui\launch.py", line 347, in start import webui File "C:\StabDiff230407\stable-diffusion-webui\webui.py", line 43, in import modules.gfpgan_model as gfpgan File "C:\StabDiff230407\stable-diffusion-webui\modules\gfpgan_model.py", line 6, in import gfpgan File "C:\StabDiff230407\stable-diffusion-webui\venv\lib\site-packages\gfpgan_init_.py", line 2, in from .archs import * File "C:\StabDiff230407\stable-diffusion-webui\venv\lib\site-packages\gfpgan\archs_init_.py", line 2, in from basicsr.utils import scandir File "C:\StabDiff230407\stable-diffusion-webui\repositories\CodeFormer\basicsr_init_.py", line 11, in from .version import gitsha, version ModuleNotFoundError: No module named 'basicsr.version' Pnginfo.pdf

BjornCG51 avatar Apr 07 '23 17:04 BjornCG51

Delete venv and repositories folders and try again. It should reinstall the dependencies.

Pnginfo.pdf

Tip: you can paste or drop images directly into the text box here.

missionfloyd avatar Apr 08 '23 00:04 missionfloyd

maker sure --xformers with the start the set COMMANDLINE_ARGS=, try clean the cache of chrome.

lastYoueven avatar Apr 08 '23 01:04 lastYoueven

Delete venv and repositories folders and try again. It should reinstall the dependencies.

Pnginfo.pdf

Tip: you can paste or drop images directly into the text box here.

Thanks for your suggestion, but I had already tried that without any progress or change!

BjornCG51 avatar Apr 08 '23 10:04 BjornCG51

maker sure --xformers with the start the set COMMANDLINE_ARGS=, try clean the cache of chrome.

Hi and thanks for your response. Om my "halfway alive" installation I use xformers, tried to clean the Chorme cache without any change!

BjornCG51 avatar Apr 08 '23 10:04 BjornCG51

Hi, I have the same problem as you, did you find a solution ?

poskitcatz avatar Apr 11 '23 22:04 poskitcatz

Hi, I have the same problem as you, did you find a solution ?

Hi. No, I am stuck here. I am doing some work on Runpod.io instead although it is more complicated than running it locally.

BjornCG51 avatar Apr 12 '23 06:04 BjornCG51

Hi, thank you for you response, i manager to remove the problem, i completely reinstalled with Python 3.9 and not 3.10.6 .

poskitcatz avatar Apr 12 '23 07:04 poskitcatz

Hi, thank you for you response, i manager to remove the problem, i completely reinstalled with Python 3.9 and not 3.10.6 .

Hi again. The install went through with Python 3.9, but the PngInfo doesn't work and not the img2img either. Still confused.

BjornCG51 avatar Apr 14 '23 13:04 BjornCG51

The fix I found for this is the following:

Go into the repositories folder, then CodeFormer, then open requirements.txt and somewhere in the middle, make a new line and type in basicsr

Delete the venv folder and rerun webui.bat.

AquatikJustice avatar Apr 25 '23 21:04 AquatikJustice

The fix I found for this is the following:

Go into the repositories folder, then CodeFormer, then open requirements.txt and somewhere in the middle, make a new line and type in basicsr

Delete the venv folder and rerun webui.bat.

tried, did not work, I get the same result

Lesani avatar May 03 '23 21:05 Lesani