Closed Ionaut closed 1 year ago
I just updated and I'm now getting errors about pydantic as well.
Same here. Updated and now ImportError: cannot import name "Undefined" from "pydantic.fields"
Same here. Updated and now ImportError: cannot import name "Undefined" from "pydantic.fields"
Same. Here's my log output upon running after updating:
Traceback (most recent call last):
File "/home/egrant/text-gen/oobabooga_linux/text-generation-webui/server.py", line 12, in <module>
import gradio as gr
File "/home/egrant/text-gen/oobabooga_linux/installer_files/env/lib/python3.10/site-packages/gradio/__init__.py", line 3, in <module>
import gradio.components as components
File "/home/egrant/text-gen/oobabooga_linux/installer_files/env/lib/python3.10/site-packages/gradio/components.py", line 32, in <module>
from fastapi import UploadFile
File "/home/egrant/text-gen/oobabooga_linux/installer_files/env/lib/python3.10/site-packages/fastapi/__init__.py", line 7, in <module>
from .applications import FastAPI as FastAPI
File "/home/egrant/text-gen/oobabooga_linux/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 16, in <module>
from fastapi import routing
File "/home/egrant/text-gen/oobabooga_linux/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 22, in <module>
from fastapi import params
File "/home/egrant/text-gen/oobabooga_linux/installer_files/env/lib/python3.10/site-packages/fastapi/params.py", line 4, in <module>
from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (/home/egrant/text-gen/oobabooga_linux/installer_files/env/lib/python3.10/site-packages/pydantic/fields.py)
+1
ImportError: cannot import name 'Undefined' from 'pydantic.fields'
+2
PC and notebook. =)
Did a little more digging, elevenlabs tts 0.2.25 updated to pydantic 2.0, which is incompatible with fastapi, that requires pydantic < 2.0
You should be able to workaround this by changing the contents of extensions/elevenlabs/requirements.txt
to
elevenlabs==0.2.24
or just removing the elevenlabs folder all together and then re-runing the update script.
Changing the requirement didn't work I suspect because that still requires pydantic >2.0. Got OogaBooga back up by removing the elevenlabs tts extension folder a running update.
See https://github.com/oobabooga/text-generation-webui/issues/3874 for the solution.
Describe the bug
installation breaks because fastapi and elevenlabs require incompatible versions of pydantic.
Is there an existing issue for this?
Reproduction
running install.bat
Screenshot
Logs
System Info