-
-
Notifications
You must be signed in to change notification settings - Fork 7k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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: Breaking change in new release of Starlette #2342
Comments
Here is the related PR #2335 |
Thank you for the pointer @ycd . I'll keep the issue open until the PR merges, for reference for users whose servers break (like mine did). |
What's the smartest thing to do here? |
@mezhaka Not importing |
Yes, until #2335 merges, the Starlette version needs to be pinned to <0.14.1 if you have it in your requirements. @Kludex , for most people that will do. But it is worth noting that may not be an option if you directly use some of Startlette's elements and need to have an updated version. Keep in mind that right now FastAPI installs by default Starlette 0.13.6, which is 4 releases behind master. |
@Kludex @miguescri I did not have explicit Starlette in my environment and this way the app was broken. As I have added it explicitly -- it runs. |
Which package manager are you using? If you don't add an explicit dependency version, it should automatically install a compatible version |
@mezhaka are you using a virtual env or a system wide installation? And are you using a Python package manager or you installed some of the Python packages from your distro's repositories? |
@Mause @miguescri I use conda. I have an environment.yml file which looks something like this (I've removed some packages): name: myapp
channels:
- conda-forge
- mycompany
dependencies:
- python~=3.7
- pymongo~=3.10
- gunicorn~=20.0
- uvicorn~=0.11
- fastapi~=0.60
- pydantic~=1.6 I then create environments with |
Btw, i'm still not sure this error is an expected behaviour, because in our Starlette pinned to the |
I also ran into problems with my Conda environment. FastAPI pins I reported it to the feedstock here: |
#2335 has been merged. |
Thanks for the help here everyone! 👏 🙇 Thanks for reporting back and closing the issue @miguescri 👍
|
Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Yesterday, Starlette 0.14.1 was released, which removes
UJSONResponse
. As a result, https://github.com/tiangolo/fastapi/blob/b53c443a06f898189e0f458dd1d7cbe55742192b/fastapi/responses.py#L10 breaks on start-up.The text was updated successfully, but these errors were encountered: