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 'asyncio' has no attribute 'coroutine' -- Python 3.11 #434

Open
sulbig opened this issue Jan 20, 2023 · 2 comments
Open

Comments

@sulbig
Copy link

sulbig commented Jan 20, 2023

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.

@lextm
Copy link

lextm commented Jan 20, 2023

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
Copy link

lextm commented Jan 23, 2023

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.

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

No branches or pull requests

2 participants