Skip to content
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

AttributeError: module 'anyio' has no attribute 'start_blocking_portal' #5

Closed
grigi opened this issue Jan 3, 2024 · 1 comment · Fixed by #8
Closed

AttributeError: module 'anyio' has no attribute 'start_blocking_portal' #5

grigi opened this issue Jan 3, 2024 · 1 comment · Fixed by #8

Comments

@grigi
Copy link

grigi commented Jan 3, 2024

Using anyio>=4.0.0 breaks:

  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'

Downgrading to anyio<4 resolves the issue.

@chbndrhnns
Copy link

@Kludex I am facing this issue while using schemathesis. Could you maybe either drop anyio 3 or support both versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants