Closed scofano closed 2 months ago
Without a diagnostics file (start_diagnostics.bat
and the diagnostic.log) I cannot say what versions of things your python environment is running.
You could try start_environment.bat
from a command prompt and then pip install pydantic==2.8.2
and see if that resolves it.
If not I would need a diagnostic log file.
Thanks
I'm sorry, I added the log file on this little box that says "paste, drop or click to add files", but apparently it was not attached.
I've deleted the original installation and started over and tried your suggestion but it didn't change.
PS D:\Audio\beta\alltalk_tts> .\start_environment.bat
PS D:\Audio\beta\alltalk_tts> pip install pydantic==2.8.2
Collecting pydantic==2.8.2
Downloading pydantic-2.8.2-py3-none-any.whl.metadata (125 kB)
Collecting annotated-types>=0.4.0 (from pydantic==2.8.2)
Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.20.1 (from pydantic==2.8.2)
Downloading pydantic_core-2.20.1-cp312-none-win_amd64.whl.metadata (6.7 kB)
Requirement already satisfied: typing-extensions>=4.6.1 in c:\users\admin\appdata\local\programs\python\python312\lib\site-packages (from pydantic==2.8.2) (4.12.2)
Downloading pydantic-2.8.2-py3-none-any.whl (423 kB)
Downloading pydantic_core-2.20.1-cp312-none-win_amd64.whl (1.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 51.1 MB/s eta 0:00:00
Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB)
Installing collected packages: pydantic-core, annotated-types, pydantic
Successfully installed annotated-types-0.7.0 pydantic-2.8.2 pydantic-core-2.20.1
PS D:\Audio\beta\alltalk_tts> .\startalltalk.bat
[AllTalk TTS] _ __
[AllTalk TTS] / \ | | | | | | | _ | | / |
[AllTalk TTS] / \ | | | | |/ | | |/ / | | | | \___ \ [AllTalk TTS] / ___ \| | | | | (_| | | < | | | | ___) | [AllTalk TTS] /_/ \_\_|_| |_|\__,_|_|_|\_\ |_| |_| |____/ [AllTalk TTS] [AllTalk TTS] Config file update: No Updates required [AllTalk TTS] Start-up Mode : Standalone mode [AllTalk TTS] [AllTalk TTS] This is the first time startup. Please download a start TTS model. Other TTS engines [AllTalk TTS] and TTS models can be downloaded/managed in the Gradio Interface
TTS Engines Settings`
[AllTalk TTS] tab after inital setup.
[AllTalk TTS]
[AllTalk TTS] Available First Time Start-up models:
[AllTalk TTS]
[AllTalk TTS] 1. piper - piper
[AllTalk TTS] 2. vits - tts_models--en--vctk--vits
[AllTalk TTS] 3. xtts - xttsv2_2.0.3
[AllTalk TTS] 4. I have my own models already
[AllTalk TTS]
[AllTalk TTS] In 60 seconds a Piper model will be downloaded automatically.
[AllTalk TTS]
[AllTalk TTS] Enter your choice 1-4: 1
[AllTalk TTS]
[AllTalk TTS] If you have you have UPGRADED from v1 ensure you have re-installed
[AllTalk TTS] the requirements. Otherwise you will get failures and errors!
[AllTalk TTS] On Linux ignore the 'sparse_attn requires a torch version' and
[AllTalk TTS] 'using untested triton version' messages.
[AllTalk TTS]
D:\Audio\beta\alltalk_tts\models\piper\en_US-ljspeech-high.onnx: 100%|█████████████████| 114M/114M [00:04<00:00, 25.7MiB/s]
D:\Audio\beta\alltalk_tts\models\piper\en_US-ljspeech-high.onnx.json: 100%|██████████████████| 4.97k/4.97k [00:00<?, ?iB/s]
[AllTalk TTS] piper model downloaded and configuration updated successfully.
[AllTalk TTS]
[AllTalk TTS] If you have you have UPGRADED from v1 ensure you have re-installed
[AllTalk TTS] the requirements. Otherwise you will get failures and errors!
[AllTalk TTS] On Linux ignore the 'sparse_attn requires a torch version' and
[AllTalk TTS] 'using untested triton version' messages.
[AllTalk TTS]
[AllTalk TTS] WAV file deletion : Disabled
[AllTalk TTS] Github updated : 15th August 2024 at 08:27
[AllTalk ENG] Transcoding : ffmpeg found
[AllTalk ENG] DeepSpeed version : 0.14.0+ce78a63
[AllTalk ENG] Python Version : 3.11.0
[AllTalk ENG] PyTorch Version : 2.2.1
[AllTalk ENG] CUDA Version : 12.1
[AllTalk ENG]
[AllTalk ENG] Model/Engine : Piper Ready
[AllTalk ENG] Load time : 0.00 seconds.
[AllTalk TTS]
[AllTalk TTS] API Address : 127.0.0.1:7851
[AllTalk TTS] Gradio Light: http://127.0.0.1:7852
[AllTalk TTS] Gradio Dark : http://127.0.0.1:7852?__theme=dark
[AllTalk TTS]
[AllTalk TTS] Please use Ctrl+C when exiting AllTalk otherwise a
[AllTalk TTS] subprocess may continue running in the background.
[AllTalk TTS]
[AllTalk TTS] AllTalk Server Ready
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 270, in _init_core_attrs
self._core_schema = _getattr_no_parents(self._type, 'pydantic_core_schema')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 112, in _getattr_no_parents
raise AttributeError(attribute)
AttributeError: pydantic_core_schema
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 406, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 70, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, _send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\gradio\route_utils.py", line 720, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\gradio\route_utils.py", line 736, in simple_response
await self.app(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app
raise exc
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app
await app(scope, receive, sender)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 735, in app
await route.handle(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app
raise exc
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app
await app(scope, receive, sender)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\routing.py", line 291, in app
solved_result = await solve_dependencies(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\dependencies\utils.py", line 639, in solve_dependencies
) = await request_body_to_args( # body_params checked above
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\dependencies\utils.py", line 813, in request_body_to_args
fields_to_extract = get_cached_model_fields(firstfield.type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 657, in get_cached_model_fields
return get_model_fields(model)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 284, in get_model_fields
return [
^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 285, in arbitrary_types_allowed=True
in the model_config to ignore this error or implement `__get_pydantic_core_schema` on your type to fully support it.
If you got this error by calling handler(__get_pydantic_core_schema__
then you likely need to call handler.generate_schema(<some type>)
since we do not call __get_pydantic_core_schema__
on <some type>
otherwise to avoid infinite recursion.
For further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type
This is the content of the log
OPERATING SYSTEM: OS Version: Windows 10.0.22631 Note: Windows 11 will list as build is 10.x.22xxx
HARDWARE ENVIRONMENT: CPU: Physical Cores: 12, Total Cores: 20, Max Frequency: 2100.0 MHz System RAM: 24.37 GB available out of 31.85 GB total
GPU INFORMATION:
Fri Sep 13 11:34:50 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.81 Driver Version: 560.81 CUDA Version: 12.6 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4070 ... WDDM | 00000000:01:00.0 On | N/A |
| 0% 41C P8 25W / 285W | 1236MiB / 16376MiB | 1% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | 0 N/A N/A 2032 C+G ...__8wekyb3d8bbwe\WindowsTerminal.exe N/A | | 0 N/A N/A 6164 C+G ...cal\Microsoft\OneDrive\OneDrive.exe N/A | | 0 N/A N/A 7780 C+G C:\Windows\explorer.exe N/A | | 0 N/A N/A 8624 C+G ...nt.CBS_cw5n1h2txyewy\SearchHost.exe N/A | | 0 N/A N/A 8648 C+G ...2txyewy\StartMenuExperienceHost.exe N/A | | 0 N/A N/A 9648 C+G ...5n1h2txyewy\ShellExperienceHost.exe N/A | | 0 N/A N/A 11656 C+G ...GeForce Experience\NVIDIA Share.exe N/A | | 0 N/A N/A 12008 C+G ...CBS_cw5n1h2txyewy\TextInputHost.exe N/A | | 0 N/A N/A 13128 C+G ...oogle\Chrome\Application\chrome.exe N/A | | 0 N/A N/A 13972 C+G ...crosoft\Edge\Application\msedge.exe N/A | | 0 N/A N/A 14952 C+G ...oogle\Chrome\Application\chrome.exe N/A | | 0 N/A N/A 15548 C+G ...on\HEX\Creative Cloud UI Helper.exe N/A | | 0 N/A N/A 15572 C+G ....0_x64__kzh8wxbdkxb8p\DCv2\DCv2.exe N/A | | 0 N/A N/A 16412 C+G ...ejd91yc\AdobeNotificationClient.exe N/A | | 0 N/A N/A 19724 C+G ...siveControlPanel\SystemSettings.exe N/A | +-----------------------------------------------------------------------------------------+
CUDA: CUDA Working: Success - CUDA is available and working. CUDA_HOME : N/A CUDA Device : NVIDIA GeForce RTX 4070 Ti SUPER CUDA Memory : 15.99 GB CUDA Version: 12.1
DISK INFORMATION: Drive: C:\ | Total: 930.64 GB | Used: 258.67 GB | Free: 671.97 GB | Type: NTFS Drive: D:\ | Total: 931.50 GB | Used: 531.98 GB | Free: 399.52 GB | Type: NTFS
NETWORK PORT: Port Status : Port 7851 is in use. Cublas64_11 Path: D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\nvidia/cublas\bin\cublas64_11.dll
PYTHON & PYTORCH: Torch Version: 2.2.1 Python Version: 3.11.0 Python Version Info: sys.version_info(major=3, minor=11, micro=0, releaselevel='final', serial=0) Python Executable: D:\Audio\beta\alltalk_tts\alltalk_environment\env\python.exe Python Virtual Environment: N/A (Should be N/A when in Text-generation-webui Conda Python environment) Conda Environment: D:\Audio\beta\alltalk_tts\alltalk_environment\env
Python Search Path: D:\Audio\beta\alltalk_tts D:\Audio\beta\alltalk_tts\alltalk_environment\env\python311.zip D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib D:\Audio\beta\alltalk_tts\alltalk_environment\env\DLLs C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages D:\Audio\beta\alltalk_tts\alltalk_environment\env D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\win32 D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\win32\lib D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\Pythonwin
OS SEARCHPATH ENVIRONMENT: D:\Audio\beta\alltalk_tts\alltalk_environment\env D:\Audio\beta\alltalk_tts\alltalk_environment\env\Library\mingw-w64\bin D:\Audio\beta\alltalk_tts\alltalk_environment\env\Library\usr\bin D:\Audio\beta\alltalk_tts\alltalk_environment\env\Library\bin D:\Audio\beta\alltalk_tts\alltalk_environment\env\Scripts D:\Audio\beta\alltalk_tts\alltalk_environment\env\bin D:\Audio\beta\alltalk_tts\alltalk_environment\conda\condabin C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0 C:\Windows\System32\OpenSSH C:\Program Files\Git\cmd C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit C:\Program Files\eSpeak NG C:\Users\Admin\AppData\Local\Programs\Python\Python312\Scripts C:\Users\Admin\AppData\Local\Programs\Python\Python312 C:\Users\Admin\AppData\Local\Microsoft\WindowsApps D:\ComfyUI_windows_portable\python_embeded\Scripts D:\Path .
PACKAGE VERSIONS vs REQUIREMENTS FILE: coqui-tts Required: >= 0.24.1 Installed: 0.24.1 faster-whisper Required: >= 1.0.3 Installed: 1.0.3 fuzzywuzzy Required: >= 0.18.0 Installed: 0.18.0 gradio Required: >= 4.26.0 Installed: 4.32.2 importlib_metadata Required: >= 7.2.1 Installed: 8.5.0 inputimeout Required: >= 1.0.4 Installed: 1.0.4 Jinja2 Required: >= 3.1.4 Installed: 3.1.4 librosa Required: >= 0.10.2.post1 Installed: 0.10.2.post1 nvidia-cublas-cu11 Required: >= 11.11.3.6 Installed: 11.11.3.6 nvidia-cudnn-cu11 Required: >= 9.1.1.17 Installed: 9.4.0.58 onnxruntime-gpu Required: >= 1.18.1 Installed: 1.19.2 pydantic Required: >= 2.8.2 Installed: 2.9.1 python-ffmpeg Required: >= 2.0.12 Installed: 2.0.12 python-Levenshtein Required: >= 0.25.1 Installed: 0.25.1 praat-parselmouth Required: >= 0.4.4 Installed: 0.4.4 pyworld Required: >= 0.3.4 Installed: 0.3.4 sounddevice Required: >= 0.4.7 Installed: 0.5.0 soundfile Required: >= 0.12.1 Installed: 0.12.1 spacy Required: >= 3.7.1 Installed: 3.8.0 torchcrepe Required: >= 0.0.2 Installed: 0.0.23 tqdm Required: >= 4.66.5 Installed: 4.66.5 unidic-lite Required: >= 1.0.8 Installed: 1.0.8 uvicorn Required: >= 0.29.0 Installed: 0.30.6 pillow Required: == 10.3.0 Installed: 10.3.0 pypinyin Required: >= 0.52.0 Installed: 0.52.0 word2number Required: >= 1.1 Installed: 1.1 cutlet Required: == 0.4.0 Installed: 0.4.0 fugashi Required: == 1.3.1 Installed: 1.3.1
PYTHON PACKAGES: absl-py>= 2.1.0 aiofiles>= 23.2.1 aiohappyeyeballs>= 2.4.0 aiohttp>= 3.10.5 aiosignal>= 1.3.1 altair>= 5.4.1 annotated-types>= 0.7.0 antlr4-python3-runtime>= 4.9.3 anyascii>= 0.3.2 anyio>= 4.4.0 argbind>= 0.3.9 asttokens>= 2.4.1 attrs>= 24.2.0 audioread>= 3.0.1 av>= 12.3.0 babel>= 2.16.0 bitarray>= 2.9.2 blis>= 0.7.11 Brotli>= 1.0.9 catalogue>= 2.0.10 certifi>= 2024.8.30 cffi>= 1.17.1 charset-normalizer>= 3.3.2 click>= 8.1.7 cloudpathlib>= 0.19.0 colorama>= 0.4.6 coloredlogs>= 15.0.1 confection>= 0.1.5 contourpy>= 1.3.0 coqpit>= 0.0.17 coqui-tts>= 0.24.1 coqui-tts-trainer>= 0.1.5 ctranslate2>= 4.4.0 cutlet>= 0.4.0 cycler>= 0.12.1 cymem>= 2.0.8 Cython>= 3.0.11 dateparser>= 1.1.8 decorator>= 5.1.1 deepspeed>= 0.14.0+ce78a63 descript-audiotools>= 0.7.2 descript-audio-codec>= 1.0.0 docopt>= 0.6.2 docstring_parser>= 0.16 einops>= 0.8.0 encodec>= 0.1.1 executing>= 2.1.0 fairseq>= 0.12.4 faiss>= 1.8.0 fastapi>= 0.114.1 faster-whisper>= 1.0.3 ffmpy>= 0.4.0 filelock>= 3.13.1 fire>= 0.6.0 flatbuffers>= 24.3.25 flatten-dict>= 0.4.2 fonttools>= 4.53.1 frozenlist>= 1.4.1 fsspec>= 2024.9.0 fugashi>= 1.3.1 future>= 1.0.0 fuzzywuzzy>= 0.18.0 gmpy2>= 2.1.2 gradio>= 4.32.2 gradio_client>= 0.17.0 grpcio>= 1.66.1 gruut>= 2.2.3 gruut-ipa>= 0.13.0 gruut_lang_de>= 2.0.1 gruut_lang_en>= 2.0.1 gruut_lang_es>= 2.0.1 gruut_lang_fr>= 2.0.2 h11>= 0.14.0 hangul-romanize>= 0.1.0 hjson>= 3.1.0 httpcore>= 1.0.5 httpx>= 0.27.2 huggingface-hub>= 0.24.7 humanfriendly>= 10.0 hydra-core>= 1.3.2 idna>= 3.7 importlib_metadata>= 8.5.0 importlib_resources>= 6.4.5 inflect>= 7.4.0 inputimeout>= 1.0.4 ipython>= 8.27.0 jaconv>= 0.4.0 jedi>= 0.19.1 Jinja2>= 3.1.4 joblib>= 1.4.2 jsonlines>= 1.2.0 jsonschema>= 4.23.0 jsonschema-specifications>= 2023.12.1 julius>= 0.2.7 kiwisolver>= 1.4.7 langcodes>= 3.4.0 language_data>= 1.2.0 lazy_loader>= 0.4 Levenshtein>= 0.25.1 librosa>= 0.10.2.post1 llvmlite>= 0.43.0 local-attention>= 1.9.15 lxml>= 5.3.0 marisa-trie>= 1.2.0 Markdown>= 3.7 markdown2>= 2.5.0 markdown-it-py>= 3.0.0 MarkupSafe>= 2.1.3 matplotlib>= 3.9.2 matplotlib-inline>= 0.1.7 mdurl>= 0.1.2 mkl_fft>= 1.3.10 mkl_random>= 1.2.7 mkl-service>= 2.4.0 mojimoji>= 0.0.13 more-itertools>= 10.5.0 mpmath>= 1.3.0 msgpack>= 1.1.0 multidict>= 6.1.0 murmurhash>= 1.0.10 narwhals>= 1.8.0 networkx>= 2.8.8 ninja>= 1.11.1.1 num2words>= 0.5.13 numba>= 0.60.0 numpy>= 1.26.4 nvidia-cublas-cu11>= 11.11.3.6 nvidia-cuda-nvrtc-cu11>= 11.8.89 nvidia-cudnn-cu11>= 9.4.0.58 omegaconf>= 2.3.0 onnxruntime>= 1.19.2 onnxruntime-gpu>= 1.19.2 orjson>= 3.10.7 packaging>= 24.1 pandas>= 2.2.2 parler_tts>= 0.2 parso>= 0.8.4 pillow>= 10.3.0 pip>= 24.2 platformdirs>= 4.3.2 pooch>= 1.8.2 portalocker>= 2.10.1 praat-parselmouth>= 0.4.4 preshed>= 3.0.9 prompt_toolkit>= 3.0.47 protobuf>= 3.19.6 psutil>= 6.0.0 pure_eval>= 0.2.3 pycparser>= 2.22 pydantic>= 2.9.1 pydantic_core>= 2.23.3 pydub>= 0.25.1 pyee>= 12.0.0 Pygments>= 2.18.0 pyloudnorm>= 0.1.1 pynndescent>= 0.5.13 pynvml>= 11.5.3 pyparsing>= 3.1.4 pypinyin>= 0.52.0 pyreadline3>= 3.4.3 pysbd>= 0.3.4 PySocks>= 1.7.1 pystoi>= 0.4.1 python-crfsuite>= 0.9.10 python-dateutil>= 2.9.0.post0 python-ffmpeg>= 2.0.12 python-Levenshtein>= 0.25.1 python-multipart>= 0.0.9 pytz>= 2024.2 pywin32>= 306 pyworld>= 0.3.4 PyYAML>= 6.0.1 py-cpuinfo>= 9.0.0 randomname>= 0.2.1 rapidfuzz>= 3.9.7 referencing>= 0.35.1 regex>= 2024.9.11 requests>= 2.32.3 resampy>= 0.4.3 rich>= 13.8.1 rotary-embedding-torch>= 0.8.3 rpds-py>= 0.20.0 ruff>= 0.6.4 sacrebleu>= 2.4.3 safetensors>= 0.4.5 scikit-learn>= 1.5.2 scipy>= 1.14.1 semantic-version>= 2.10.0 sentencepiece>= 0.2.0 setuptools>= 72.1.0 shellingham>= 1.5.4 six>= 1.16.0 smart-open>= 7.0.4 sniffio>= 1.3.1 sounddevice>= 0.5.0 soundfile>= 0.12.1 soxr>= 0.5.0.post1 spacy>= 3.8.0 spacy-legacy>= 3.0.12 spacy-loggers>= 1.0.5 srsly>= 2.4.8 stack-data>= 0.6.3 starlette>= 0.38.5 SudachiDict-core>= 20240716 SudachiPy>= 0.6.8 sympy>= 1.13.2 tabulate>= 0.9.0 tensorboard>= 2.17.1 tensorboard-data-server>= 0.7.2 termcolor>= 2.4.0 thinc>= 8.2.5 threadpoolctl>= 3.5.0 tokenizers>= 0.19.1 tomlkit>= 0.12.0 torch>= 2.2.1 torchaudio>= 2.2.1 torchcrepe>= 0.0.23 torchvision>= 0.17.1 torch-stoi>= 0.2.1 tqdm>= 4.66.5 traitlets>= 5.14.3 transformers>= 4.43.3 typeguard>= 4.3.0 typer>= 0.12.5 typing_extensions>= 4.11.0 tzdata>= 2024.1 tzlocal>= 5.2 umap-learn>= 0.5.6 unidic-lite>= 1.0.8 urllib3>= 2.2.2 uvicorn>= 0.30.6 wasabi>= 1.1.3 wcwidth>= 0.2.13 weasel>= 0.4.1 websockets>= 11.0.3 Werkzeug>= 3.0.4 wheel>= 0.44.0 win-inet-pton>= 1.1.0 word2number>= 1.1 wrapt>= 1.16.0 yarl>= 1.11.1 zipp>= 3.20.2
DeepSpeed Installation Requirements: OS : Windows Python : 3.11.0 PyTorch: 2.2.1 CUDA : 12.1
To install DeepSpeed, run the following command based on your environment:
pip install deepspeed==
It appears its FastAPI's ongoing issues (as of recent they changed things and had problems with Gradio).
So could try start_environment.bat
from a command prompt and then pip install --force-reinstall fastapi==0.112.2
That should resolve it.
Thanks
Hi, thanks again for your support, but it didn't work.
I did:
O Windows PowerShell Copyright (C) Microsoft Corporation. Todos os direitos reservados.
Instale o PowerShell mais recente para obter novos recursos e aprimoramentos! https://aka.ms/PSWindows
PS D:\Audio\beta\alltalk_tts> .\start_environment.bat PS D:\Audio\beta\alltalk_tts> pip install --force-reinstall fastapi==0.112.2 Collecting fastapi==0.112.2 Downloading fastapi-0.112.2-py3-none-any.whl.metadata (27 kB) Collecting starlette<0.39.0,>=0.37.2 (from fastapi==0.112.2) Using cached starlette-0.38.5-py3-none-any.whl.metadata (6.0 kB) Collecting pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 (from fastapi==0.112.2) Using cached pydantic-2.9.1-py3-none-any.whl.metadata (146 kB) Collecting typing-extensions>=4.8.0 (from fastapi==0.112.2) Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB) Collecting annotated-types>=0.6.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi==0.112.2) Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB) Collecting pydantic-core==2.23.3 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi==0.112.2) Downloading pydantic_core-2.23.3-cp312-none-win_amd64.whl.metadata (6.7 kB) Collecting anyio<5,>=3.4.0 (from starlette<0.39.0,>=0.37.2->fastapi==0.112.2) Using cached anyio-4.4.0-py3-none-any.whl.metadata (4.6 kB) Collecting idna>=2.8 (from anyio<5,>=3.4.0->starlette<0.39.0,>=0.37.2->fastapi==0.112.2) Downloading idna-3.8-py3-none-any.whl.metadata (9.9 kB) Collecting sniffio>=1.1 (from anyio<5,>=3.4.0->starlette<0.39.0,>=0.37.2->fastapi==0.112.2) Using cached sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB) Downloading fastapi-0.112.2-py3-none-any.whl (93 kB) Using cached pydantic-2.9.1-py3-none-any.whl (434 kB) Downloading pydantic_core-2.23.3-cp312-none-win_amd64.whl (1.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 53.5 MB/s eta 0:00:00 Using cached starlette-0.38.5-py3-none-any.whl (71 kB) Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB) Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB) Using cached anyio-4.4.0-py3-none-any.whl (86 kB) Downloading idna-3.8-py3-none-any.whl (66 kB) Using cached sniffio-1.3.1-py3-none-any.whl (10 kB) Installing collected packages: typing-extensions, sniffio, idna, annotated-types, pydantic-core, anyio, starlette, pydantic, fastapi Attempting uninstall: typing-extensions Found existing installation: typing_extensions 4.12.2 Uninstalling typing_extensions-4.12.2: Successfully uninstalled typing_extensions-4.12.2 Attempting uninstall: sniffio Found existing installation: sniffio 1.3.1 Uninstalling sniffio-1.3.1: Successfully uninstalled sniffio-1.3.1 Attempting uninstall: idna Found existing installation: idna 3.8 Uninstalling idna-3.8: Successfully uninstalled idna-3.8 Attempting uninstall: annotated-types Found existing installation: annotated-types 0.7.0 Uninstalling annotated-types-0.7.0: Successfully uninstalled annotated-types-0.7.0 Attempting uninstall: pydantic-core Found existing installation: pydantic_core 2.20.1 Uninstalling pydantic_core-2.20.1: Successfully uninstalled pydantic_core-2.20.1 Attempting uninstall: pydantic Found existing installation: pydantic 2.8.2 Uninstalling pydantic-2.8.2: Successfully uninstalled pydantic-2.8.2 Successfully installed annotated-types-0.7.0 anyio-4.4.0 fastapi-0.112.2 idna-3.8 pydantic-2.9.1 pydantic-core-2.23.3 sniffio-1.3.1 starlette-0.38.5 typing-extensions-4.12.2
and when starting it, I got:
[AllTalk TTS] ____ _ [AllTalk TTS] / \ | | | | _| | | | | / | [AllTalk TTS] / \ | | | | |/ ` | | |/ / | | | | \ \ [AllTalk TTS] / | | | | | (| | | < | | | | ) | [AllTalk TTS] // __|| ||_,|||_\ || || |/ [AllTalk TTS] [AllTalk TTS] Config file update: No Updates required [AllTalk TTS] Start-up Mode : Standalone mode [AllTalk TTS] WAV file deletion : Disabled [AllTalk TTS] Github updated : 15th August 2024 at 08:27 [AllTalk ENG] Transcoding : ffmpeg found [AllTalk ENG] DeepSpeed version : 0.14.0+ce78a63 [AllTalk ENG] Python Version : 3.11.0 [AllTalk ENG] PyTorch Version : 2.2.1 [AllTalk ENG] CUDA Version : 12.1 [AllTalk ENG] [AllTalk ENG] Model/Engine : Piper Ready [AllTalk ENG] Load time : 0.00 seconds. [AllTalk TTS] [AllTalk TTS] API Address : 127.0.0.1:7851 [AllTalk TTS] Gradio Light: http://127.0.0.1:7852 [AllTalk TTS] Gradio Dark : http://127.0.0.1:7852?__theme=dark [AllTalk TTS] [AllTalk TTS] Please use Ctrl+C when exiting AllTalk otherwise a [AllTalk TTS] subprocess may continue running in the background. [AllTalk TTS] [AllTalk TTS] AllTalk Server Ready ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 270, in _init_core_attrs self._core_schema = _getattr_no_parents(self._type, 'pydantic_core_schema') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 112, in _getattr_no_parents raise AttributeError(attribute) AttributeError: pydantic_core_schema
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 406, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 70, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, _send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\gradio\route_utils.py", line 720, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\gradio\route_utils.py", line 736, in simple_response
await self.app(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app
raise exc
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app
await app(scope, receive, sender)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 735, in app
await route.handle(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app
raise exc
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app
await app(scope, receive, sender)
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\routing.py", line 291, in app
solved_result = await solve_dependencies(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\dependencies\utils.py", line 639, in solve_dependencies
) = await request_body_to_args( # body_params checked above
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\dependencies\utils.py", line 813, in request_body_to_args
fields_to_extract = get_cached_model_fields(firstfield.type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 657, in get_cached_model_fields
return get_model_fields(model)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 284, in get_model_fields
return [
^
File "D:\Audio\beta\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 285, in arbitrary_types_allowed=True
in the model_config to ignore this error or implement `__get_pydantic_core_schema` on your type to fully support it.
If you got this error by calling handler(__get_pydantic_core_schema__
then you likely need to call handler.generate_schema(<some type>)
since we do not call __get_pydantic_core_schema__
on <some type>
otherwise to avoid infinite recursion.
For further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type
Hi @scofano
Here is my suggestion:
1) Open a command prompt window and navigate into to the alltalk_tts
folder.
2) Run start_environment.bat
to start the Python environment.
3) Type pip cache purge
to clear the pip download cache of however many files are in it.
4) Type git pull
to update any missing files. It may say "Already up to date" or it may download some files.
5) Type rd /s /q alltalk_environment
to remove the damaged Python environment.
6) Type atsetup.bat
and assuming you want to install a standalone version, select option 2 and then option 1.
7) Wait for the installation to complete.
8) You can ignore the ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. coqui-tts 0.24.1 requires transformers<4.41.0,>=4.33.0, but you have transformers 4.43.3 which is incompatible.
or any similar message about transformers. If you want more information on this or other dependency resolver messages, please see this here https://github.com/erew123/alltalk_tts/issues/332#issuecomment-2340229228
9) Exit atsetup.bat
by pressing 9
10) Back at the command prompt, type start_environment.bat
which should start the new Python environment.
11) Type pip show fastapi
which should confirm it is running fast api version 0.112.x
12) You should now be able to start alltalk with start_alltalk.bat
This will look like the following:
@erew123 Thanks a lot! You nailed it. It is working now.
I installed it as a standalone, installed the Espeak, I run the start bat, but when I connect to the gradio interface I get this error and it gets disconnected.
[AllTalk TTS] ____ _ [AllTalk TTS] / \ | | | | _| | | | | / | [AllTalk TTS] / \ | | | | |/ ` | | |/ / | | | | \ \ [AllTalk TTS] / | | | | | (| | | < | | | | ) | [AllTalk TTS] // __|| ||_,|||_\ || || |/ [AllTalk TTS] [AllTalk TTS] Config file update: No Updates required [AllTalk TTS] Start-up Mode : Standalone mode [AllTalk TTS] WAV file deletion : Disabled [AllTalk TTS] Github updated : 15th August 2024 at 08:27 [AllTalk ENG] Transcoding : ffmpeg found [AllTalk ENG] DeepSpeed version : 0.14.0+ce78a63 [AllTalk ENG] Python Version : 3.11.0 [AllTalk ENG] PyTorch Version : 2.2.1 [AllTalk ENG] CUDA Version : 12.1 [AllTalk ENG] [AllTalk ENG] Model/Engine : xttsv2_2.0.3 loading into cuda [AllTalk ENG] Model License: https://coqui.ai/cpml.txt [AllTalk ENG] Load time : 9.23 seconds. [AllTalk TTS] [AllTalk TTS] API Address : 127.0.0.1:7851 [AllTalk TTS] Gradio Light: http://127.0.0.1:7852 [AllTalk TTS] Gradio Dark : http://127.0.0.1:7852?__theme=dark [AllTalk TTS] [AllTalk TTS] Please use Ctrl+C when exiting AllTalk otherwise a [AllTalk TTS] subprocess may continue running in the background. [AllTalk TTS] [AllTalk TTS] AllTalk Server Ready ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 270, in _init_core_attrs self._core_schema = _getattr_no_parents(self._type, 'pydantic_core_schema') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 112, in _getattr_no_parents raise AttributeError(attribute) AttributeError: pydantic_core_schema
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 406, in run_asgi result = await app( # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 70, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\applications.py", line 1054, in call await super().call(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\applications.py", line 113, in call await self.middleware_stack(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\errors.py", line 187, in call raise exc File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\errors.py", line 165, in call await self.app(scope, receive, _send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\gradio\route_utils.py", line 720, in call await self.simple_response(scope, receive, send, request_headers=headers) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\gradio\route_utils.py", line 736, in simple_response await self.app(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app raise exc File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 715, in call await self.middleware_stack(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 735, in app await route.handle(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app raise exc File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) ^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\routing.py", line 291, in app solved_result = await solve_dependencies( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\dependencies\utils.py", line 639, in solve_dependencies ) = await request_body_to_args( # body_params checked above ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\dependencies\utils.py", line 813, in request_body_to_args fields_to_extract = get_cached_model_fields(firstfield.type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 657, in get_cached_model_fields return get_model_fields(model) ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 284, in get_model_fields return [ ^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 285, in
ModelField(field_info=field_info, name=name)
File "", line 6, in init
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 110, in post_init__
self._type_adapter: TypeAdapter[Any] = TypeAdapter(
^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 257, in init
self._init_core_attrs(rebuild_mocks=False)
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 135, in wrapped
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 277, in _init_core_attrs
self._core_schema = _get_schema(self._type, config_wrapper, parent_depth=self._parent_depth)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 95, in _get_schema
schema = gen.generateschema(type)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 655, in generate_schema
schema = self._generate_schema_inner(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 908, in _generate_schema_inner
return self._annotated_schema(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2028, in _annotated_schema
schema = self._apply_annotations(source_type, annotations)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2107, in _apply_annotations
schema = get_inner_schema(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_schema_generation_shared.py", line 83, in call
schema = self._handler(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2189, in new_handler
schema = metadata_get_schema(source, get_inner_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2185, in
lambda source, handler: handler(source)
^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_schema_generation_shared.py", line 83, in call
schema = self._handler(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2088, in inner_handler
schema = self._generate_schema_inner(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 929, in _generate_schema_inner
return self.match_type(obj)
^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 1029, in match_type
return self._match_generic_type(obj, origin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 1058, in _match_generic_type
return self._union_schema(obj)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 1378, in _union_schema
choices.append(self.generate_schema(arg))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 655, in generate_schema
schema = self._generate_schema_inner(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 929, in _generate_schema_inner
return self.match_type(obj)
^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 1038, in match_type
return self._unknown_type_schema(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 558, in _unknown_type_schema
raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set
arbitrary_types_allowed=True
in the model_config to ignore this error or implement `__get_pydantic_core_schema` on your type to fully support it.If you got this error by calling handler() within
__get_pydantic_core_schema__
then you likely need to callhandler.generate_schema(<some type>)
since we do not call__get_pydantic_core_schema__
on<some type>
otherwise to avoid infinite recursion.For further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 270, in _init_core_attrs self._core_schema = _getattr_no_parents(self._type, 'pydantic_core_schema') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 112, in _getattr_no_parents raise AttributeError(attribute) AttributeError: pydantic_core_schema
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 406, in run_asgi result = await app( # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 70, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\applications.py", line 1054, in call await super().call(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\applications.py", line 113, in call await self.middleware_stack(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\errors.py", line 187, in call raise exc File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\errors.py", line 165, in call await self.app(scope, receive, _send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\gradio\route_utils.py", line 720, in call await self.simple_response(scope, receive, send, request_headers=headers) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\gradio\route_utils.py", line 736, in simple_response await self.app(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app raise exc File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 715, in call await self.middleware_stack(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 735, in app await route.handle(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app raise exc File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) ^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\routing.py", line 291, in app solved_result = await solve_dependencies( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\dependencies\utils.py", line 639, in solve_dependencies ) = await request_body_to_args( # body_params checked above ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi\dependencies\utils.py", line 813, in request_body_to_args fields_to_extract = get_cached_model_fields(firstfield.type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 657, in get_cached_model_fields return get_model_fields(model) ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 284, in get_model_fields return [ ^ File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 285, in
ModelField(field_info=field_info, name=name)
File "", line 6, in init
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\fastapi_compat.py", line 110, in post_init__
self._type_adapter: TypeAdapter[Any] = TypeAdapter(
^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 257, in init
self._init_core_attrs(rebuild_mocks=False)
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 135, in wrapped
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 277, in _init_core_attrs
self._core_schema = _get_schema(self._type, config_wrapper, parent_depth=self._parent_depth)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic\type_adapter.py", line 95, in _get_schema
schema = gen.generateschema(type)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 655, in generate_schema
schema = self._generate_schema_inner(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 908, in _generate_schema_inner
return self._annotated_schema(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2028, in _annotated_schema
schema = self._apply_annotations(source_type, annotations)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2107, in _apply_annotations
schema = get_inner_schema(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_schema_generation_shared.py", line 83, in call
schema = self._handler(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2189, in new_handler
schema = metadata_get_schema(source, get_inner_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2185, in
lambda source, handler: handler(source)
^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_schema_generation_shared.py", line 83, in call
schema = self._handler(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 2088, in inner_handler
schema = self._generate_schema_inner(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 929, in _generate_schema_inner
return self.match_type(obj)
^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 1029, in match_type
return self._match_generic_type(obj, origin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 1058, in _match_generic_type
return self._union_schema(obj)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 1378, in _union_schema
choices.append(self.generate_schema(arg))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 655, in generate_schema
schema = self._generate_schema_inner(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 929, in _generate_schema_inner
return self.match_type(obj)
^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 1038, in match_type
return self._unknown_type_schema(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Audio\beta2\alltalk_tts\alltalk_environment\env\Lib\site-packages\pydantic_internal_generate_schema.py", line 558, in _unknown_type_schema
raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set
arbitrary_types_allowed=True
in the model_config to ignore this error or implement `__get_pydantic_core_schema` on your type to fully support it.If you got this error by calling handler() within
__get_pydantic_core_schema__
then you likely need to callhandler.generate_schema(<some type>)
since we do not call__get_pydantic_core_schema__
on<some type>
otherwise to avoid infinite recursion.For further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type diagnostics.log