Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: WebUI unable to launch again after first time #448

Closed
3 of 6 tasks
popsoda27 opened this issue Apr 18, 2024 · 3 comments
Closed
3 of 6 tasks

[Bug]: WebUI unable to launch again after first time #448

popsoda27 opened this issue Apr 18, 2024 · 3 comments
Labels
bug Something isn't working from extension not amdgpu specific This issue is related to A1111 upstream.

Comments

@popsoda27
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

WebUI is not launching again after first launch.

venv "E:\Downloads\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
Traceback (most recent call last):
File "E:\Downloads\stable-diffusion-webui-directml\launch.py", line 48, in
main()
File "E:\Downloads\stable-diffusion-webui-directml\launch.py", line 29, in main
filename = launch_utils.dump_sysinfo()
File "E:\Downloads\stable-diffusion-webui-directml\modules\launch_utils.py", line 705, in dump_sysinfo
from modules import sysinfo
File "E:\Downloads\stable-diffusion-webui-directml\modules\sysinfo.py", line 12, in
from modules import paths_internal, timer, shared, extensions, errors, devices
File "E:\Downloads\stable-diffusion-webui-directml\modules\shared.py", line 4, in
import gradio as gr
File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\gradio_init_.py", line 3, in
import gradio.components as components
File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\gradio\components_init_.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\gradio\components\annotated_image.py", line 13, in
from gradio.components.base import IOComponent, Keywords
File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\gradio\components\base.py", line 20, in
from fastapi import UploadFile
File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi_init
.py", line 7, in
from .applications import FastAPI as FastAPI
File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\applications.py", line 15, in
from fastapi import routing
File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\routing.py", line 22, in
from fastapi import params
File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\params.py", line 4, in
from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\pydantic\fields.py)
Press any key to continue . . .

Steps to reproduce the problem

1, Fresh install A1111
2. Append --use-zluda --autolaunch to cmd args in webui-user.bat
3. WebUI launches successfully first time.
4. Installed some extensions. Exit WebUI and console.
5. Relaunched webui-user.bat. Console presented error....press any key to continue. Console exits after keypress.
6. Removed installed extensions. Same error on launch.
7. Removed venv. Venv folder recreated on launch. Same error on launch.
8. Removed cmd args and added --dump-sysinfo. Same error on launch. Sysinfo dump not created.
9. Removed cmd args and added --use-directml. Same error on launch.

What should have happened?

WebUI should launch successfully. Not extension issue as WebUI not launching even after extensions were removed.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

Sysinfo not generated at all with --dump-sysinfo cmd arg

Console logs

venv "E:\Downloads\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
Traceback (most recent call last):
  File "E:\Downloads\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "E:\Downloads\stable-diffusion-webui-directml\launch.py", line 29, in main
    filename = launch_utils.dump_sysinfo()
  File "E:\Downloads\stable-diffusion-webui-directml\modules\launch_utils.py", line 705, in dump_sysinfo
    from modules import sysinfo
  File "E:\Downloads\stable-diffusion-webui-directml\modules\sysinfo.py", line 12, in <module>
    from modules import paths_internal, timer, shared, extensions, errors, devices
  File "E:\Downloads\stable-diffusion-webui-directml\modules\shared.py", line 4, in <module>
    import gradio as gr
  File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\gradio\components\annotated_image.py", line 13, in <module>
    from gradio.components.base import IOComponent, _Keywords
  File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\gradio\components\base.py", line 20, in <module>
    from fastapi import UploadFile
  File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\__init__.py", line 7, in <module>
    from .applications import FastAPI as FastAPI
  File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\applications.py", line 15, in <module>
    from fastapi import routing
  File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\routing.py", line 22, in <module>
    from fastapi import params
  File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\params.py", line 4, in <module>
    from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\pydantic\fields.py)
Press any key to continue . . .

Additional information

AMD 7800X3D
Asrock 7900XTX Taichi OC
32GB RAM
Python 3.10.6
HIP SDK installed and PATH added

@popsoda27 popsoda27 changed the title [Bug]: [Bug]: WebUI unable to launch again after first time Apr 18, 2024
@Anders1974
Copy link

Anders1974 commented Apr 18, 2024

I have the same mistake.

Already up to date.
venv "C:\stable-diffusion-webui-directml\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.9.0-5-g74787236
Commit hash: 7478723
Traceback (most recent call last):
File "C:\stable-diffusion-webui-directml\launch.py", line 48, in
main()
File "C:\stable-diffusion-webui-directml\launch.py", line 39, in main
prepare_environment()
File "C:\stable-diffusion-webui-directml\modules\launch_utils.py", line 658, in prepare_environment
from modules.onnx_impl import initialize_olive
File "C:\stable-diffusion-webui-directml\modules\onnx_impl_init_.py", line 10, in
from fastapi import encoders as fastapi_encoders
File "C:\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi_init_.py", line 7, in
from .applications import FastAPI as FastAPI
File "C:\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\applications.py", line 15, in
from fastapi import routing
File "C:\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\routing.py", line 22, in
from fastapi import params
File "C:\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\params.py", line 4, in
from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (C:\stable-diffusion-webui-directml\venv\lib\site-packages\pydantic\fields.py)

@lshqqytiger lshqqytiger added bug Something isn't working not amdgpu specific This issue is related to A1111 upstream. labels Apr 18, 2024
@lshqqytiger
Copy link
Owner

AUTOMATIC1111#15564

@popsoda27
Copy link
Author

AUTOMATIC1111#15564

Thank you @lshqqytiger I confirm this solves the issue on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working from extension not amdgpu specific This issue is related to A1111 upstream.
Projects
None yet
Development

No branches or pull requests

3 participants