Skip to content

FastAPI Version Seems to Cause Issue #17277

@fishbotics

Description

@fishbotics

Bug description

I am getting an issue from FastAPI, which is installed as a dependency.

image

As shown in the photo, I have fastapi 0.88.0. When I upgrade to 0.95 (the latest version), this error goes away. But, pip complains because Lightning is pinned to this version of FastAPI.

Would it be possible to update the dependency?

FWIW there is a similar issue on the FastAPI Github: fastapi/fastapi#5977

They fixed it by updating Starlette, but I think I'm already on the newest version.

What version are you seeing the problem on?

2.0+

How to reproduce the bug

No response

Error messages and logs

# Error messages and logs here please

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info

No response

cc @tchaton

Metadata

Metadata

Assignees

No one assigned

    Labels

    app (removed)Generic label for Lightning App packagebugSomething isn't workinghelp wantedOpen to be worked onpriority: 0High priority taskver: 2.0.x

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions