Replies: 19 comments 31 replies
|
i have the same problem |
|
I also just started this problem too. |
|
I have exactly this problem just after I install the ControlNet extension. Without Controlnet, it works fine for me. |
|
vladmandic/sdnext#1670 (comment) |
|
Mikubill/sd-webui-controlnet#2698 (comment) |
|
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? |
|
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. |
|
those who only run install pydantic==1.10.15this is not enough pip install albumentations==1.4.3to get |
|
Simply Follow this in the root folder of SD venv\Scripts\activate |
|
Now, if you install SD fresh from start to finish, they have fixed the issue, so the software has been auto-updated. Bravo! |
|
for me i reinstalled SD completely and worked. |
|
2nd Fresh install today, happened right after installing ReActor extension. |
|
What to do in Mac m2 Pro. I am getting the error and also telling pip not found |
|
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 |
|
I did a clean install of Windows, then a clean install of forge, and still have the problem. |
|
translation
|
|
Same, ubuntu update to 24.04 lts broke like everything python related |
|
What solved it for me was:
May not work for you, I honestly don't know what I'm doing half the time hahaha |
|
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. |
Uh oh!
There was an error while loading. Please reload this page.
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)
All reactions