AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Error starting webui #9201

Open jorgenascimentoifs opened 1 year ago

jorgenascimentoifs commented 1 year ago

Is there an existing issue for this?

What happened?

when i start the webui i get the following error:

venv "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\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)] Commit hash: 22bcc7be428c94e9408f589966c2040187245d81 Installing requirements for Web UI Launching Web UI with arguments: --autolaunch --medvram --xformers Traceback (most recent call last): File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\launch.py", line 356, in start() File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\launch.py", line 347, in start import webui File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\webui.py", line 43, in import modules.gfpgan_model as gfpgan File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\modules\gfpgan_model.py", line 6, in import gfpgan File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\venv\lib\site-packages\gfpgan__init.py", line 2, in from .archs import * File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\venv\lib\site-packages\gfpgan\archs\init.py", line 2, in from basicsr.utils import scandir File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\repositories\CodeFormer\basicsr\init.py", line 11, in from .version import gitsha, version__ ModuleNotFoundError: No module named 'basicsr.version'

Steps to reproduce the problem

  1. Starting A1111 webUI

What should have happened?

Should started the webui

Commit where the problem happens

when i trie to start the webui

What platforms do you use to access the UI ?

No response

What browsers do you use to access the UI ?

No response

Command Line Arguments

venv "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\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)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing requirements for Web UI
Launching Web UI with arguments: --autolaunch --medvram --xformers
Traceback (most recent call last):
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\launch.py", line 356, in <module>
    start()
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\launch.py", line 347, in start
    import webui
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\webui.py", line 43, in <module>
    import modules.gfpgan_model as gfpgan
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\modules\gfpgan_model.py", line 6, in <module>
    import gfpgan
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\venv\lib\site-packages\gfpgan\__init__.py", line 2, in <module>
    from .archs import *
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\venv\lib\site-packages\gfpgan\archs\__init__.py", line 2, in <module>
    from basicsr.utils import scandir
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\repositories\CodeFormer\basicsr\__init__.py", line 11, in <module>
    from .version import __gitsha__, __version__
ModuleNotFoundError: No module named 'basicsr.version'

List of extensions

none

Console logs

venv "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\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)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing requirements for Web UI
Launching Web UI with arguments: --autolaunch --medvram --xformers
Traceback (most recent call last):
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\launch.py", line 356, in <module>
    start()
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\launch.py", line 347, in start
    import webui
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\webui.py", line 43, in <module>
    import modules.gfpgan_model as gfpgan
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\modules\gfpgan_model.py", line 6, in <module>
    import gfpgan
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\venv\lib\site-packages\gfpgan\__init__.py", line 2, in <module>
    from .archs import *
  File "C:\Users\jorge\Desktop\SD\Instalado\stable-diffusion-webui\venv\lib\site-packages\gfpgan\archs\__init__.py", line 2, in <module>
    from basicsr.utils import scandir
  File "C:\Users\jorge\Desktop\SD\Instalado\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

it was my first installation of the A1111. i did something wrong?

BjornCG51 commented 1 year ago

I have the exact same problem. After suddenly getting into the img2img problem with "starlette.websockets.WebSocketDisconnect: 1006" I have tried to make a fresh install which stops in the same way as described above a number of times. I have made the installation multiple times earlier without problems, but now I am stuck. (No programming skills, 70+ years old :-) ). Windows 10, Chrome, Python 3.10.6, GTX1050

AquatikJustice commented 1 year ago

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.

BjornCG51 commented 1 year ago

Hi, and thanks for your input. I have followed your suggestion but cannot see any change? /Björn