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

telnetlib deprecated in python 3.13 #1324

Closed
johanreinalda opened this issue Sep 18, 2024 · 8 comments
Closed

telnetlib deprecated in python 3.13 #1324

johanreinalda opened this issue Sep 18, 2024 · 8 comments
Assignees
Labels

Comments

@johanreinalda
Copy link

Just FYI:
using junos-eznc with python3.11, I get this (when warnings enabled):

.../venv/lib/python3.11/site-packages/jnpr/junos/transport/tty_telnet.py:2: DeprecationWarning: 'telnetlib' is deprecated and slated for removal in Python 3.13

3.13 will be release on Oct 1, 2024...

@dineshbaburam91
Copy link
Collaborator

@johanreinalda
PyEZ supports Python 3.12 and will be validated using official Python 3.13. The module will be removed if it is deprecated in Python 3.13.

@ktbyers
Copy link

ktbyers commented Nov 13, 2024

I vendored telnetlib in Netmiko (should be there in Netmiko 4.4.0 and later):

from netmiko._telnetlib import telnetlib

I guess the other solutions are to drop telnet support or vendor it yourself (or find a different released version of telnetlib that you trust).

telnetlib is deprecated in the sense that it is no longer built into Python itself (as of PY3.13).

@ktbyers
Copy link

ktbyers commented Dec 16, 2024

@dineshbaburam91 What is the Python 3.13 plan for PyEZ?

PY3.13 has now been released for several months.

I don't much care one way or another if PyEZ supports telnetlib, but it needs to work with PY3.13. This is causing issues for me with respect to both Napalm and Nornir libraries.

@ktbyers
Copy link

ktbyers commented Dec 16, 2024

Created this PR here:

#1352

Open to other solutions, but definitely needs a fix.

@ktbyers
Copy link

ktbyers commented Feb 18, 2025

Any update on this issue (the lack of PY3.13 support for PyEZ)?

@johanreinalda
Copy link
Author

Yes, I would also like to see some movement here. I've reached out to our Juniper SE to see what he can shake loose internally...

@chidanandpujar
Copy link
Collaborator

Hi @ktbyers @johanreinalda
@dineshbaburam91 has fixed this issue and merged the changes via #1358

Thanks
Chidanand

@ktbyers
Copy link

ktbyers commented Feb 20, 2025

Thanks @chidanandpujar and @dineshbaburam91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants