-
Notifications
You must be signed in to change notification settings - Fork 25.9k
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]: ControlNet breaks my WebUI #15556
Comments
I am having a similar issue: ImportError: cannot import name 'Undefined' from 'pydantic.fields' (C:\Users\palom\sdwebui\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\pydantic\fields.py) |
actually there was already a thread about this, someone found a temporary fix i tried it and it worked. here is the link |
Was having this error, what worked; , renamed extension folder, deleted venv folder, reinstalled and going again. |
Some lib is not download/install it`s seem like, last month i got some issue; |
I also had the same problem. How do I solve this? |
downgrading
|
I solved it by reinstalling Automatic1111 again with Windows :) |
Hello, I just solved the problem. It seems that the issue might be due to the version incompatibility between the Pydantic version used and the version referenced in the code where "Undefined" is being used. To address this issue, I tried resetting the virtual environment. You can manually delete the
After activation, restart
After that, run I hope this helps everyone. |
notice |
Checklist
What happened?
After installing controlnet, geting: Failed install handrefineportable error.
https://github.com/Mikubill/sd-webui-controlnet
then on reboot the server/webui gets
Launching Web UI with arguments: --autolaunch --xformers
Traceback (most recent call last):
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\launch.py", line 48, in
main()
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\launch.py", line 44, in main
start()
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\modules\launch_utils.py", line 465, in start
import webui
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\webui.py", line 13, in
initialize.imports()
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\modules\initialize.py", line 23, in imports
import gradio # noqa: F401
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\venv\lib\site-packages\gradio_init_.py", line 3, in
import gradio.components as components
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\venv\lib\site-packages\gradio\components_init_.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\venv\lib\site-packages\gradio\components\annotated_image.py", line 13, in
from gradio.components.base import IOComponent, Keywords
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\venv\lib\site-packages\gradio\components\base.py", line 20, in
from fastapi import UploadFile
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\venv\lib\site-packages\fastapi_init.py", line 7, in
from .applications import FastAPI as FastAPI
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\venv\lib\site-packages\fastapi\applications.py", line 15, in
from fastapi import routing
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\venv\lib\site-packages\fastapi\routing.py", line 22, in
from fastapi import params
File "C:\StableDiffusion\stable-diffusion-webui-1.8.0\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:\StableDiffusion\stable-diffusion-webui-1.8.0\venv\lib\site-packages\pydantic\fields.py)
Steps to reproduce the problem
installed fresh a1111 version 1.9
installed controlnet extension thru the webui
get: Failed install handrefineportable error.
rebooted server/webui
webui stops working and get
What should have happened?
should NOT get handrefineportable error during controlnet install
and webui should boot up without errors
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
webui does not boot
Console logs
Additional information
Someone else reported same issue on Controlnet repo but author said to report problem to A1111 as they have not changed anything new
https://github.com/Mikubill/sd-webui-controlnet/issues/2757
The text was updated successfully, but these errors were encountered: