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.

DeprecationWarning in Python 3.8

See original GitHub issue

@asyncio.coroutine was deprecated in Python 3.8 with https://github.com/python/cpython/pull/13346. loop argument is also deprecated. I am not sure async def can be used since the project ensures compatiblity with 3.3 and above whereas the syntax was present from 3.5 I guess. 3.4 also reached end of life.

  /home/karthi/async_lru/async_lru.py:191: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def wrapped(*fn_args, **fn_kwargs):

  /home/karthi/async_lru/tests/test_basic.py:146: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def coro():

  /home/karthi/async_lru/tests/test_close.py:26: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.1, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:14: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.2, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:64: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.1, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:54: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.2, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:94: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.1, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:84: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.2, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:122: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.1, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:112: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.2, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:156: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.1, loop=loop)

  /home/karthi/async_lru/tests/test_close.py:146: DeprecationWarning: The loop argument is deprecated and scheduled for removal in Python 3.10.
    await asyncio.sleep(0.2, loop=loop)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
asvetlovcommented, May 17, 2019

I think dropping python 3.3 and 3.4 is fine

0reactions
danielflippancecommented, Oct 25, 2021

+1 - Seeing the same issue in release async-lru==1.0.2 using Python 3.8.5

/usr/local/lib/python3.8/dist-packages/async_lru.py:96: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix deprecation warning that appear in Python 3.8+ #203
9. The presence of deprecation warnings does not mean that the library doesn't support the current python version. It just indicates that the...
Read more >
Warning control — Python 3.11.1 documentation
DeprecationWarning. Base category for warnings about deprecated features when those warnings are intended for other Python developers (ignored by default, ...
Read more >
Deprecation warnings with Python 3.8
DeprecationWarning : an integer is required (got type WindowIDRef). Implicit conversion to integers using __int__ is deprecated, and may be ...
Read more >
2006215 – Python-productivity shows deprecation warning.
... DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def start(self, host, ...
Read more >
Django 1.11.* with Python 3.7.* raises a DeprecationWarning
NOTE: this doesn't actually affect either Python 3.8 or Python 3.9 compatibility as per the docs: Deprecated since version 3.3, will be removed...
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