question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pypy 3.6.9 equivalent always throws an error on yield

See original GitHub issue

I have already done, pip install async-exit-stack async-generator multiple times. However, the application still gives an error

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/site-packages/uvicorn/protocols/http/h11_impl.py", line 384, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/usr/local/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/site-packages/starlette/routing.py", line 550, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/site-packages/starlette/routing.py", line 227, in handle
    await self.app(scope, receive, send)
  File "/usr/local/site-packages/starlette/routing.py", line 41, in app
    response = await func(request)
  File "/usr/local/site-packages/fastapi/routing.py", line 190, in app
    dependency_overrides_provider=dependency_overrides_provider,
  File "/usr/local/site-packages/fastapi/dependencies/utils.py", line 512, in solve_dependencies
    async_contextmanager_dependencies_error
RuntimeError: 
FastAPI dependencies with yield require Python 3.7 or above,
or the backports for Python 3.6, installed with:
    pip install async-exit-stack async-generator

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
chris-allnuttcommented, May 26, 2020

Is there any reason why you can’t use python 3.7?

1reaction
tiangolocommented, Nov 5, 2022

Hey there! Have you tried recent versions of PyPy? It seems the current PyPy is equivalent to 3.7, that wouldn’t have these issues.

Sorry for the long delay! 🙈 I wanted to personally address each issue/PR and they piled up through time, but now I’m checking each one in order.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyPy v7.3.1: release of 2.7 and 3.6
As always, this release fixed several issues and bugs raised by the growing community of PyPy users. We strongly recommend updating. Many of...
Read more >
What's New In Python 3.6 — Python 3.11.1 documentation
The new PYTHONMALLOC environment variable can now be used to debug the interpreter memory allocation and access errors. Significant improvements in the standard ......
Read more >
Change history for coverage.py - Read the Docs
This line cannnot be executed, so coverage totals were thrown off. ... Mysterious SQLite errors can happen on PyPy, as reported in issue...
Read more >
python-cheatsheet Documentation - Read the Docs
The lenght of a string is always equivalent to the number of characters. ... send value and throw exception into async generator.
Read more >
Changelog — pytest documentation
If there were errors or skipped modules on collection, pytest would mistakenly ... Originally parseoutcomes() would always returns the nouns in plural form, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found