Replies: 19 comments 29 replies
-
i have the same problem |
Beta Was this translation helpful? Give feedback.
-
I also just started this problem too. |
Beta Was this translation helpful? Give feedback.
-
I have exactly this problem just after I install the ControlNet extension. Without Controlnet, it works fine for me. |
Beta Was this translation helpful? Give feedback.
-
vladmandic/automatic#1670 (comment) |
Beta Was this translation helpful? Give feedback.
-
Mikubill/sd-webui-controlnet#2698 (comment) |
Beta Was this translation helpful? Give feedback.
-
Same problem I just tried installing controlnet and then it wouldn't start anymore. I tried the fixes mentioned here and none helped. Not even removing controlnet. What's going on, is my install nuked now? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
those who only run install pydantic==1.10.15 this is not enough pip install albumentations==1.4.3 to get |
Beta Was this translation helpful? Give feedback.
-
Simply Follow this in the root folder of SD venv\Scripts\activate |
Beta Was this translation helpful? Give feedback.
-
Now, if you install SD fresh from start to finish, they have fixed the issue, so the software has been auto-updated. Bravo! |
Beta Was this translation helpful? Give feedback.
-
for me i reinstalled SD completely and worked. |
Beta Was this translation helpful? Give feedback.
-
2nd Fresh install today, happened right after installing ReActor extension. |
Beta Was this translation helpful? Give feedback.
-
What to do in Mac m2 Pro. I am getting the error and also telling pip not found |
Beta Was this translation helpful? Give feedback.
-
Hi guys, sorry in advance, I'm very much a noob to all this, is there a simple fix for this? I've spent hours trying fix this for this error: ImportError: cannot import name 'Undefined' from 'pydantic.fields' I've tried the fix above, and many other fixes involving modifying the 'requirements.txt' file, replacing the 'webui.py' file with fixed version, and I'm still banging my head against a wall with this error. Can someone please advise what I might be missing? I have A1111 installed, and it works fine. Forge on the otherhand doesn't. Cheers |
Beta Was this translation helpful? Give feedback.
-
I did a clean install of Windows, then a clean install of forge, and still have the problem. |
Beta Was this translation helpful? Give feedback.
-
translation
|
Beta Was this translation helpful? Give feedback.
-
Same, ubuntu update to 24.04 lts broke like everything python related |
Beta Was this translation helpful? Give feedback.
-
What solved it for me was:
May not work for you, I honestly don't know what I'm doing half the time hahaha |
Beta Was this translation helpful? Give feedback.
-
hello, i tried everything, still doesnt work, roop isnt showing up in sdwebui, its marked as downloaded and installed and it just wont show up, and i tried re installing following your guides and many others, but when i dont get the missing python ( fixed by changing the path in sys variables ) i get the missing pydantic field. also i noticed after downgrading it to try to get it work, that when i launch web ui user after, its reinstalls it to 1.19 and still gets me the missing pydantic field message at the end. ive litteraly tried everything here, every topic, and many videos. been trying for 4 days, to understand how to keep my launcher to auto updating pydantic, after i downgrade it. someone please help. cant stand another 5+ hours of re installing those again and again. |
Beta Was this translation helpful? Give feedback.
-
Automatic1111 was working fine before. I installed some extensions and then restarted and then this shows up in the command prompt. What do I do?
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (D:\a1111\stable-diffusion-webui\venv\lib\site-packages\pydantic\fields.py)
Beta Was this translation helpful? Give feedback.
All reactions