AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: a1111 wont load for whatever reason #14387

Open maryscary opened 6 months ago

maryscary commented 6 months ago

Checklist

What happened?

everything was downloaded properly but when it goes to launch i get this error message

Steps to reproduce the problem

i have zero clue

What should have happened?

it shouldve just launched, regularly

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

?

Console logs

fatal: detected dubious ownership in repository at 'C:/a1111/stable-diffusion-webui'
'C:/a1111/stable-diffusion-webui' is owned by:
        'S-1-5-32-544'
but the current user is:
        'S-1-5-21-1314564024-2096099064-3782412885-1001'
To add an exception for this directory, call:

        git config --global --add safe.directory C:/a1111/stable-diffusion-webui
fatal: detected dubious ownership in repository at 'C:/a1111/stable-diffusion-webui'
'C:/a1111/stable-diffusion-webui' is owned by:
        'S-1-5-32-544'
but the current user is:
        'S-1-5-21-1314564024-2096099064-3782412885-1001'
To add an exception for this directory, call:

        git config --global --add safe.directory C:/a1111/stable-diffusion-webui
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
Version: 1.7.0
Commit hash: <none>
Installing xformers
Launching Web UI with arguments: --xformers --autolaunch
Traceback (most recent call last):
  File "launch.py", line 48, in <module>
    main()
  File "launch.py", line 44, in main
    start()
  File "C:\a1111\stable-diffusion-webui\modules\launch_utils.py", line 460, in start
    import webui
  File "C:\a1111\stable-diffusion-webui\webui.py", line 13, in <module>
    initialize.imports()
  File "C:\a1111\stable-diffusion-webui\modules\initialize.py", line 33, in imports
    from modules import shared_init
  File "C:\a1111\stable-diffusion-webui\modules\shared_init.py", line 5, in <module>
    from modules import shared
  File "C:\a1111\stable-diffusion-webui\modules\shared.py", line 5, in <module>
    from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types
  File "C:\a1111\stable-diffusion-webui\modules\options.py", line 80, in <module>
    class Options:
  File "C:\a1111\stable-diffusion-webui\modules\options.py", line 83, in Options
    def __init__(self, data_labels: dict[str, OptionInfo], restricted_opts):
TypeError: 'type' object is not subscriptable
Press any key to continue . . .

Additional information

No response

w-e-w commented 6 months ago

webui built for python 3.10 you're using 3.8

maryscary commented 6 months ago

weird, i have three versions im not sure why its not running the 3.10 one

w-e-w commented 6 months ago

if you are using webui-user.bat put something like

set PYTHON="C:\path\to\your\Python\3.10.6\python.exe"

in it delete the venv and run again

missionfloyd commented 6 months ago

set PYTHON="python3.10.exe" should work, too.

maryscary commented 6 months ago

but where should i put it, you cant type in the cmd

maryscary commented 6 months ago

oh, nvm

maryscary commented 6 months ago

nope, it still opened with the wrong python