pysnmp icon indicating copy to clipboard operation
pysnmp copied to clipboard

AttributeError: module 'asyncio' has no attribute 'coroutine' -- Python 3.11

Open sulbig opened this issue 2 years ago • 3 comments
trafficstars

Upgraded to Python 3.11 and started getting the following exception when using async features of PySNMP 4.4.12.

AttributeError: module 'asyncio' has no attribute 'coroutine'

Support for generator-based coroutines, used in PySNMP, is deprecated and is removed in Python 3.11.

Had to downgrade to Python 3.10 as a workaround.

sulbig avatar Jan 20 '23 03:01 sulbig

It is impossible to patch PyPI package pysnmp at this moment.

You can try the package pysnmp-lextudio 5.0.22. More details can be found in #429.

lextm avatar Jan 20 '23 08:01 lextm

You might close this issue if my answer helps. The repo owner passed away, so closing new issues here can help clean up the list.

lextm avatar Jan 23 '23 07:01 lextm