pepegc
03/26/2022, 11:04 AMsupertokens-python
not allowing the latest fast-api
version? (0.75). Installing your package is generating issues downstream. Yesterday I managed to manually install all the packages but now the resulting requirements.txt is 'broken' for my cofounder. Maybe some dependency restrictions could be relaxed?rp_st
03/26/2022, 11:15 AMjabalazs
03/26/2022, 11:21 AMSolverProblemError
Because no versions of fastapi match >0.75.0,<0.76.0
and fastapi (0.75.0) depends on starlette (0.17.1), fastapi (>=0.75.0,<0.76.0) requires starlette (0.17.1).
And because supertokens-python (0.5.2) depends on starlette (>=0.14.2,<0.15.0), fastapi (>=0.75.0,<0.76.0) is incompatible with supertokens-python (0.5.2).
So, because api depends on both supertokens-python (0.5.2) and fastapi (^0.75.0), version solving failed.
jabalazs
03/26/2022, 11:23 AMrp_st
03/26/2022, 11:44 AMjabalazs
03/26/2022, 11:51 AMrp_st
03/26/2022, 12:10 PMpip install git+https://github.com/supertokens/supertokens-python.git@0.6
rp_st
03/26/2022, 12:10 PMrp_st
03/26/2022, 12:11 PMstarlette
we had to change slightly the API to import the middleware for fastapi:
Previous:
from supertokens_python.framework.fastapi import Middleware
app = FastAPI()
app.add_middleware(Middleware)
New:
from supertokens_python.framework.fastapi import get_middleware
app = FastAPI()
app.add_middleware(get_middleware())
rp_st
03/26/2022, 12:12 PMjabalazs
03/26/2022, 12:22 PMgit+https://github.com/supertokens/supertokens-python.git@0.6
works. I will now see if the new middleware import works as expectedrp_st
03/26/2022, 12:22 PMjabalazs
03/26/2022, 12:26 PMfrom supertokens_python.framework.fastapi import get_middleware
app.add_middleware(get_middleware())
also seems to work ๐jabalazs
03/26/2022, 12:26 PMrp_st
03/26/2022, 12:26 PMrp_st
03/26/2022, 12:26 PMjabalazs
03/26/2022, 12:26 PMrp_st
03/26/2022, 12:26 PMjabalazs
03/26/2022, 12:38 PMpepegc
03/27/2022, 8:20 PMrp_st
03/27/2022, 8:20 PMrp_st
03/28/2022, 7:29 AMpepegc
03/28/2022, 9:41 AMpepegc
03/28/2022, 11:34 AMpepegc
03/28/2022, 11:34 AMpepegc
03/28/2022, 11:34 AMrp_st
03/28/2022, 11:34 AMpepegc
03/28/2022, 11:45 AMpepegc
03/28/2022, 11:45 AMpepegc
03/28/2022, 11:45 AMrp_st
03/28/2022, 11:46 AMrp_st
03/28/2022, 11:46 AMrp_st
03/28/2022, 11:49 AMpepegc
03/28/2022, 11:49 AMpepegc
03/28/2022, 11:55 AMpepegc
03/28/2022, 5:53 PMrp_st
03/28/2022, 5:54 PMpepegc
03/28/2022, 5:55 PMpepegc
03/28/2022, 5:56 PMfetch_1.default.recipeImpl is undefined
pepegc
03/28/2022, 5:57 PMrp_st
03/28/2022, 6:03 PMpepegc
03/28/2022, 6:04 PMpepegc
03/28/2022, 6:04 PMpepegc
03/28/2022, 6:05 PMrp_st
03/28/2022, 6:06 PMrp_st
03/28/2022, 6:07 PMrp_st
03/28/2022, 6:07 PM