AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: ModuleNotFoundError: No module named 'basicsr.version' #11689

Open poskitcatz opened 1 year ago

poskitcatz commented 1 year ago

Is there an existing issue for this?

What happened?

After install, launch "webui-user.bat" and error

Steps to reproduce the problem

  1. install python 3.10.11 (I tried 3.10.6 and 3.10.10). launch "webui-user.bat"
  2. git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
  3. download and copy model in the folder : models\stable-diffusion\
  4. launch "webui-user.bat" (install requirements)
  5. automatic Launching Web UI
  6. error " ModuleNotFoundError: No module named 'basicsr.version' "
  7. launch "webui-user.bat"
  8. error " ModuleNotFoundError: No module named 'basicsr.version' "
  9. delete (venv)
  10. launch "webui-user.bat" (install requirements)
  11. automatic Launching Web UI
  12. error " ModuleNotFoundError: No module named 'basicsr.version' "

What should have happened?

Running on local URL: http://127.0.0.1:7860

Version or Commit where the problem happens

394ffa7b0a7fff3ec484bcd084e673a8b301ccc8

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

No

List of extensions

No

Console logs

venv "E:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.4.0
Commit hash: 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
Installing requirements
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
  File "E:\stable-diffusion-webui\launch.py", line 38, in <module>
    main()
  File "E:\stable-diffusion-webui\launch.py", line 34, in main
    start()
  File "E:\stable-diffusion-webui\modules\launch_utils.py", line 340, in start
    import webui
  File "E:\stable-diffusion-webui\webui.py", line 49, in <module>
    from modules import shared, sd_samplers, upscaler, extensions, localization, ui_tempdir, ui_extra_networks, config_states
  File "E:\stable-diffusion-webui\modules\ui_extra_networks.py", line 7, in <module>
    from modules.ui import up_down_symbol
  File "E:\stable-diffusion-webui\modules\ui.py", line 26, in <module>
    import modules.gfpgan_model
  File "E:\stable-diffusion-webui\modules\gfpgan_model.py", line 4, in <module>
    import gfpgan
  File "E:\stable-diffusion-webui\venv\lib\site-packages\gfpgan\__init__.py", line 2, in <module>
    from .archs import *
  File "E:\stable-diffusion-webui\venv\lib\site-packages\gfpgan\archs\__init__.py", line 2, in <module>
    from basicsr.utils import scandir
  File "E:\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

No response

martinobettucci commented 1 year ago

Your Codeformer is the wrong hash