Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: fastapi not compatible with pydantic v2 #25

Open
1 of 4 tasks
raphaelauv opened this issue Aug 14, 2023 · 1 comment
Open
1 of 4 tasks

Bug: fastapi not compatible with pydantic v2 #25

raphaelauv opened this issue Aug 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@raphaelauv
Copy link

raphaelauv commented Aug 14, 2023

Description

the fastapi code fail at startup with PydanticUndefinedAnnotation

URL to code causing the issue

No response

MCVE

bug is gone if I edit the the file DockerfileFrameworks.jinja2

RUN apt-get update && apt-get upgrade -y && apt-get install gcc git curl -y && \
    pip install --upgrade pip && \
    pip install uvicorn[standard] pydantic==1.10.12

Steps to reproduce

No response

Screenshots

"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs

No response

Litestar Version

not related

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)
@raphaelauv raphaelauv added the bug Something isn't working label Aug 14, 2023
@raphaelauv raphaelauv closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2023
@provinzkraut
Copy link
Member

Reopening because this is actually something we need to address. We should migrate to FastAPI >= 0.100

@provinzkraut provinzkraut reopened this Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants