AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: cannot install the sd, getting field() got an unexpected keyword argument 'alias' #12535

Open leoparker157 opened 1 year ago

leoparker157 commented 1 year ago

Is there an existing issue for this?

What happened?

I am unable to install the SD. I keep encountering the same error even after downloading the latest commit or attempting to rerun it after deleting the venv

Steps to reproduce the problem

  1. run webui-user

What should have happened?

It should finish installing the required Python packages and run the SD without any issues

Version or Commit where the problem happens

68f336b

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 ?

Google Chrome

Command Line Arguments

NO

List of extensions

NO

Console logs

venv "D:\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.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a
Launching Web UI with arguments:
Traceback (most recent call last):
  File "D:\stable-diffusion-webui\launch.py", line 39, in <module>
    main()
  File "D:\stable-diffusion-webui\launch.py", line 35, in main
    start()
  File "D:\stable-diffusion-webui\modules\launch_utils.py", line 390, in start
    import webui
  File "D:\stable-diffusion-webui\webui.py", line 44, in <module>
    import gradio  # noqa: F401
  File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 26, in <module>
    import altair as alt
  File "D:\stable-diffusion-webui\venv\lib\site-packages\altair\__init__.py", line 607, in <module>
    from .vegalite import *
  File "D:\stable-diffusion-webui\venv\lib\site-packages\altair\vegalite\__init__.py", line 2, in <module>
    from .v5 import *
  File "D:\stable-diffusion-webui\venv\lib\site-packages\altair\vegalite\v5\__init__.py", line 2, in <module>
    from .schema import *
  File "D:\stable-diffusion-webui\venv\lib\site-packages\altair\vegalite\v5\schema\__init__.py", line 2, in <module>
    from .core import *
  File "D:\stable-diffusion-webui\venv\lib\site-packages\altair\vegalite\v5\schema\core.py", line 4, in <module>
    from altair.utils.schemapi import SchemaBase, Undefined, _subclasses
  File "D:\stable-diffusion-webui\venv\lib\site-packages\altair\utils\__init__.py", line 1, in <module>
    from .core import (
  File "D:\stable-diffusion-webui\venv\lib\site-packages\altair\utils\core.py", line 14, in <module>
    import jsonschema
  File "D:\stable-diffusion-webui\venv\lib\site-packages\jsonschema\__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "D:\stable-diffusion-webui\venv\lib\site-packages\jsonschema\_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "D:\stable-diffusion-webui\venv\lib\site-packages\jsonschema\exceptions.py", line 15, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
  File "D:\stable-diffusion-webui\venv\lib\site-packages\referencing\__init__.py", line 4, in <module>
    from referencing._core import Anchor, Registry, Resource, Specification
  File "D:\stable-diffusion-webui\venv\lib\site-packages\referencing\_core.py", line 29, in <module>
    class Specification(Generic[D]):
  File "D:\stable-diffusion-webui\venv\lib\site-packages\referencing\_core.py", line 55, in Specification
    ] = field(alias="anchors_in")
TypeError: field() got an unexpected keyword argument 'alias'
Press any key to continue . . .

Additional information

This is a fresh new installation without any extensions or additional files

biergaiqiao commented 1 year ago

I have the same question