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

Open
johanreinalda opened this issue Sep 18, 2024 · 4 comments
Open

telnetlib deprecated in python 3.13 #1324

johanreinalda opened this issue Sep 18, 2024 · 4 comments
Assignees

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.

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

No branches or pull requests

3 participants