Skip to content

Issue using StreamingResponse #2113

@ryan-wolbeck

Description

@ryan-wolbeck

Hello,

I tired to make an import similar to below in the docs

https://github.com/tiangolo/fastapi/blob/e77ea635777d2494690ba3eb62bd005b9edeefde/docs_src/custom_response/tutorial007.py#L2

but got the following

Traceback (most recent call last):
File "app/main.py", line 6, in <module>
from fastapi.responses import StreamingResponse
ModuleNotFoundError: No module named 'fastapi.responses'

The workaround I used was

from starlette.responses import StreamingResponse

I'm using fastapi==0.42.0 within docker

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions