-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
telnetlib is deprecated #3177
Comments
Well that is unfortunate...I will probably just wait and see if someone writes a backport for it. telnetlib3 won't work (it's async). |
sadly gear that doesn't support current SSH is still widly deployed. |
One suggestion in https://discuss.python.org/t/pep-594-take-2-removing-dead-batteries-from-the-standard-library/13508/59 Is to just copy Would have to comply with their license: https://docs.python.org/3/license.html |
@JohnVillalovos Yeah, I guess we could just "vendor" it inside of Netmiko and copy their license inside that folder (and make a note on our main license). |
hello guys, please try my alternative to telnetlib: https://github.com/AlaBouali/xtelnet
Why should I use xtelnet? |
This is now rather more than an RFE, as telnetlib is removed in Python 3.13, which will be released in October (and is already in Fedora Rawhide and probably pending for other development distros). |
@ktbyers sorry for bothering you, any progress here? I'm stuck with Fedora packaging because of this issue. I can vendor telnetlib myself, but I'd rather at least coordinate with you (especially because of the licensing question). |
@ktbyers hi, sorry for nagging you, but could you make a release with this fix? The last one was in November 2023 afaik, so it's more or less due anyway. A release would help me a lot with packaging since I won't need to pull a git version. |
@dtantsur I am working on the release for this, but running into some issues with the 'cffi' conditional dependency in pyproject.toml. I need to look at this some more. |
When adding pytest coverage to my own script that uses Netmiko, I noticed the following warning:
telnetlib is indeed one of several network-related modules that are scheduled for removal in Python 3.13, according to PEP 594. The table mentions telnetlib3 and Exscript as possible replacements.
I haven't looked at the two in detail, but according to this StackOverflow response, Exscript could actually be closer to the original telnetlib than telnetlib3 is to telnetlib. But I can't tell what option would make the most sense for Netmiko going forward.
The text was updated successfully, but these errors were encountered: