Open Jboby1 opened 1 year ago
too
Same thing, last cell in Google Collab
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 14, in
maybe need pydantic
Same here. It was working about a half hour ago. Now, it is returning this error too. I'm a Colab Pro user, btw.
Running into the same exact issue everyone here is reporting! Things were working last night, now they are no longer working, showing the same Pydantic error. Fresh install didn't change anything - something up with Pydantic?
fixed, update to the latest notebook
yep that fixed it for me, thank you!
@Jboby1 @mcqx4
pip install pydantic==1.10.11
or Latest version of 1.x series
pip install pydantic==1.8.2
I solved it this way 👌
Just use the latest notebook
Basta usar o notebook mais recente
I'm having the same problem for hours now with my google colab, the code just stops and gets stuck on that last line:
Installing pycloudflared
Launching Web UI with arguments: --share --disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue
2023-08-12 00:24:09.592789: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-08-12 00:24:10.690399: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Additional Network extension not installed, Only hijack built-in lora
LoCon Extension hijack built-in lora successfully
** Error loading script: api.py
Traceback (most recent call last):
File "/content/microsoftexcel/modules/scripts.py", line 319, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/microsoftexcel/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "
** Error loading script: batch_hijack.py
Traceback (most recent call last):
File "/content/microsoftexcel/modules/scripts.py", line 319, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/microsoftexcel/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "
** Error loading script: controlnet.py
Traceback (most recent call last):
File "/content/microsoftexcel/modules/scripts.py", line 319, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/microsoftexcel/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "
2023-08-12 00:24:21,667 - ControlNet - INFO - ControlNet v1.1.237
** Error loading script: external_code.py
Traceback (most recent call last):
File "/content/microsoftexcel/modules/scripts.py", line 319, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/microsoftexcel/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "
** Error loading script: xyz_grid_support.py
Traceback (most recent call last):
File "/content/microsoftexcel/modules/scripts.py", line 319, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/microsoftexcel/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "
Calculating sha256 for /content/microsoftexcel/models/Stable-diffusion/chilloutmixni.safetensors: Traceback (most recent call last):
File "/content/microsoftexcel/launch.py", line 39, in
@DohkoKlaus Just use the latest notebook 😄 This commit seems to have resolved the issue.
https://github.com/TheLastBen/fast-stable-diffusion/commit/29b93fe5177246da92bab813e38c6044c36c8e89
i have this error with pydantic in virtual env
File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/darix/.local/lib/python3.9/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/home/darix/.local/lib/python3.9/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/home/darix/.local/lib/python3.9/site-packages/uvicorn/server.py", line 67, in serve
config.load()
File "/home/darix/.local/lib/python3.9/site-packages/uvicorn/config.py", line 477, in load
self.loaded_app = import_from_string(self.app)
File "/home/darix/.local/lib/python3.9/site-packages/uvicorn/importer.py", line 24, in import_from_string
raise exc from None
File "/home/darix/.local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
@Jboby1 @mcqx4
pip install pydantic==1.10.11
or Latest version of 1.x series
pip install pydantic==1.8.2
I solved it this way 👌
this error happens after installed the controlnet extension, and this method cannot fix it for me, do you have any suggestion?
@Jboby1 @mcqx4
pip install pydantic==1.10.11
or Latest version of 1.x series
pip install pydantic==1.8.2
I solved it this way 👌
this error happens after installed the controlnet extension, and this method cannot fix it for me, do you have any suggestion?
same, I am also getting this error after installing control net in automatic 1111, any help is appreciated
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 Mark
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.
I'm having the exact same issue anytime I try to open Forge. Likewise, A1111 works fine.
This worked for me...
C:\ABSOLUTE_PATH_TO_INSTALLATION_ROOT\venv\Scripts\pip install fastapi==0.111.0
Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 14, in
from fastapi import FastAPI
File "/usr/local/lib/python3.10/dist-packages/fastapi/init.py", line 7, in
from .applications import FastAPI as FastAPI
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 15, in
from fastapi import routing
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 21, in
from fastapi import params
File "/usr/local/lib/python3.10/dist-packages/fastapi/params.py", line 4, in
from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (/usr/local/lib/python3.10/dist-packages/pydantic/fields.py)
I'm still using the Collab, as everything was still working fine up until today. Tried a fresh install, but that didn't remove the error.