mongkok / fastapi-debug-toolbar

A debug toolbar for FastAPI.
https://fastapi-debug-toolbar.domake.io
BSD 3-Clause "New" or "Revised" License
140 stars 14 forks source link

ImportError: cannot import name 'AsyncExitStack' from 'fastapi.concurrency' #40

Closed MarchenkoRoman closed 9 months ago

MarchenkoRoman commented 10 months ago

fastapi >=0.106 has breaking changes, was removed AsyncExitStack from concurrency

To Fix: change import from fastapi.concurrency import AsyncExitStack to: from contextlib import AsyncExitStack

fsecada01 commented 10 months ago

@MarchenkoRoman Can you create a PR?

mongkok commented 9 months ago

Thanks @MarchenkoRoman , the issue is fixed, please check the new release.