Closed L0CKZ0R closed 3 months ago
please provide output of:
source venv/bin/activate
pip show fastapi pydantic
and then try:
pip install pydantic==1.10.15
I'm have the same issue. Here's my output:
Name: fastapi
Version: 0.111.0
Summary: FastAPI framework, high performance, easy to learn, fast to code, ready for production
Home-page:
Author:
Author-email: =?utf-8?q?Sebasti=C3=A1n_Ram=C3=ADrez?= <tiangolo@gmail.com>
License:
Location: /Users/xxx/Documents/automatic/venv/lib/python3.12/site-packages
Requires: email_validator, fastapi-cli, httpx, jinja2, orjson, pydantic, python-multipart, starlette, typing-extensions, ujson, uvicorn
Required-by: gradio
---
Name: pydantic
Version: 1.10.15
Summary: Data validation and settings management using python type hints
Home-page: https://github.com/pydantic/pydantic
Author: Samuel Colvin
Author-email: s@muelcolvin.com
License: MIT
Location: /Users/xxx/Documents/automatic/venv/lib/python3.12/site-packages
Requires: typing-extensions
Required-by: fastapi, gradio
pip install pydantic==1.10.15
Requirement already satisfied: pydantic==1.10.15 in ./venv/lib/python3.12/site-packages (1.10.15)
Requirement already satisfied: typing-extensions>=4.2.0 in ./venv/lib/python3.12/site-packages (from pydantic==1.10.15) (4.11.0)
digging a bit deeper, which python? run python --version
.
seems like python 3.12.4 introduced new params in one internal method that is not recognized by other packages.
i've tested with python 3.12.3 and it works.
note that python 3.12 in general is considered experimentally supported only and NOT recommended.
recommended is 3.10 or 3.11.
and no, you don't have to modify system python, you can side-install any python version.
closing as root cause has been provided.
Issue Description
Trying to launch gives the following error
Version Platform Description
Mac M1, Sonoma.
Relevant log output
No response
Backend
Original
Branch
Master
Model
Other
Acknowledgements