-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
DeprecationWarning: asyncore (to be removed in Python 3.12) #10
Comments
Thanks for opening this. We do have a local version with such removed, but it has quite a lot of impact on documentation and so on, so we are now testing with a few clients and evaluate how to move on. Will provide an update in a few weeks. |
Any update on this? |
@lextm The Python 3.12 release is expected in less than a month. It would be nice to have a pysnmp release with 3.12 support until then. Do you have any update on this? |
Our internal Python 3.12 compliant build works for a few clients. However, they don't use every features of PySNMP, so not impacted by removal of the deprecated bits very much. My team still works on porting as many examples as possible away from the deprecated API surface, but no promise right now on when we can finish that task. More to disclose when Python 3.12 is released, and we don't aim to ship Python 3.12 support on day 1. More likely to have a Python 3.12 target release by the end of this year. |
Thanks for sharing this info. |
Yup, thanks for sharing and for taking the time to keep PySNMP going. I appreciate you + team not just keeping the development work internal! |
After internal discussion, our current plan has some slight changes. First, we will use a different version 6.0.x and make it solely available for Python 3.12. Second, 6.0.x release will provide a much smaller API surface since the underlying legacy APIs were removed. Still aim to ship a stable release (6.0.3 or 6.0.4) by the end of 2023, but a few preview releases (starting from 6.0.0) will be published soon. The goal of the initial releases is to preview the API surface changes and collect feedback on the missing features and documentation. |
Hi @lextm, We at Checkmk are just about to lift Python to 3.12 and are heavily using pysnmp in our product. Thanks for your great work! |
@TimotheusBachinger Thanks for the advice. We tested the workaround (by using pyasyncore) and it worked well. This buys us more time to work on the asyncore free 6.0 release. Just shipped release 5.0.31 that contains the necessary changes, so please let us know if it works well for you. |
We decided to completely dump asyncore bits in 6.0+ releases, and urge all 5.0.x users to ugprade. The guide is https://docs.lextudio.com/pysnmp/upgrade |
This line..
pysnmp/pysnmp/carrier/asyncore/base.py
Line 9 in 002474a
..causes warnings such as:
See also https://docs.python.org/3/library/asyncore.html. Python 3.12 will probably be released in October 2023.
Btw, thanks for taking over this project!
The text was updated successfully, but these errors were encountered: