File "/home/grigi/work/magneto/.pyenv/lib64/python3.11/site-packages/starlette_testclient/_testclient.py", line 450, in _portal_factory
with anyio.start_blocking_portal(**self.async_backend) as portal:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'anyio' has no attribute 'start_blocking_portal'
Using
anyio>=4.0.0
breaks:Downgrading to
anyio<4
resolves the issue.