sd-webui-deoldify icon indicating copy to clipboard operation
sd-webui-deoldify copied to clipboard

Can't run

Open YCbCr444 opened this issue 10 months ago • 5 comments

Giving this error:

Traceback (most recent call last): File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\webui\launch.py", line 48, in main() File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\webui\launch.py", line 44, in main start() File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\webui\modules\launch_utils.py", line 465, in start import webui File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\webui\webui.py", line 13, in initialize.imports() File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\webui\modules\initialize.py", line 23, in imports import gradio # noqa: F401 File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\gradio_init_.py", line 3, in import gradio.components as components File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\gradio\components_init_.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\gradio\components\annotated_image.py", line 13, in from gradio.components.base import IOComponent, Keywords File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\gradio\components\base.py", line 20, in from fastapi import UploadFile File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\fastapi_init.py", line 7, in from .applications import FastAPI as FastAPI File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\fastapi\applications.py", line 15, in from fastapi import routing File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\fastapi\routing.py", line 22, in from fastapi import params File "C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\fastapi\params.py", line 4, in from pydantic.fields import FieldInfo, Undefined ImportError: cannot import name 'Undefined' from 'pydantic.fields' (C:\Users\Jun\Downloads\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\pydantic\fields.py)

YCbCr444 avatar Jan 30 '25 19:01 YCbCr444

Try to reinstall pydantic and wandb

TreesPlay avatar Mar 21 '25 17:03 TreesPlay

Still had issues even on a fresh webui install.

airborne-commando avatar Apr 09 '25 01:04 airborne-commando

I get a similar issue. Maybe it has to do with the Nvidia blackwell version of A1111.

Maybe @SpenserCai can have a look and see.

Installing requirements
All models for DeOldify are already downloaded.
Installing fastai==1.0.60 for DeOldify extension.
Installing fastai
Launching Web UI with arguments:
Traceback (most recent call last):
  File "C:\AI\sd.webui-1.10.1-blackwell\webui\launch.py", line 48, in <module>
    main()
  File "C:\AI\sd.webui-1.10.1-blackwell\webui\launch.py", line 44, in main
    start()
  File "C:\AI\sd.webui-1.10.1-blackwell\webui\modules\launch_utils.py", line 465, in start
    import webui
  File "C:\AI\sd.webui-1.10.1-blackwell\webui\webui.py", line 13, in <module>
    initialize.imports()
  File "C:\AI\sd.webui-1.10.1-blackwell\webui\modules\initialize.py", line 23, in imports
    import gradio  # noqa: F401
  File "C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\gradio\components\annotated_image.py", line 13, in <module>
    from gradio.components.base import IOComponent, _Keywords
  File "C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\gradio\components\base.py", line 20, in <module>
    from fastapi import UploadFile
  File "C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\fastapi\__init__.py", line 7, in <module>
    from .applications import FastAPI as FastAPI
  File "C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\fastapi\applications.py", line 15, in <module>
    from fastapi import routing
  File "C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\fastapi\routing.py", line 22, in <module>
    from fastapi import params
  File "C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\fastapi\params.py", line 4, in <module>
    from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (C:\AI\sd.webui-1.10.1-blackwell\system\python\lib\site-packages\pydantic\fields.py)
Press any key to continue . . .

MJay-Ku avatar Apr 18 '25 19:04 MJay-Ku

I have the exact same problem. I bought an RTX 5070Ti just to use Deoldify. "I don't understand code." It's been frustrating trying to use sd.webui. It happened to me like the other guys. When will there be a solution? It would be appreciated.

Regards.

PadrinoMG avatar May 09 '25 02:05 PadrinoMG

I guess this project is dead, alongside with stable-diffusion-webui. Too bad, it seemed a good way to deoldify images. All these python dependencies, it's so clunky.

dle-fr avatar Nov 15 '25 00:11 dle-fr