Automation

 View Only
last person joined: yesterday 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  PyEZ and python 3.13

    Posted 30 days ago

    I just had to upgrade my RHEL8 system to Fedora 41, which comes with python 3.13.  I loaded all of the prereqs for PyEZ, and then attempted to run my scripts.  They are failing because they cannot find the module "telnetlib", which  I see has been removed from python 3.13 (last available in python 3.12).  What are my options - is this being addressed in PyEZ fixes?  Thanks.



  • 2.  RE: PyEZ and python 3.13

     
    Posted 30 days ago
    Edited by asharp 30 days ago

    Please see: https://github.com/Juniper/py-junos-eznc/pull/1358

    A workaround is in the master branch, just not tagged as a release yet afaik.

    Regards,




  • 3.  RE: PyEZ and python 3.13

    Posted 27 days ago

    Anyone know if there are plans to include this fix in a release?  Thanks.




  • 4.  RE: PyEZ and python 3.13

     
    Posted 27 days ago

    Since it's in the master branch, it will become a release when the developers are happy to do so.  You could just use the master branch, or make a fork of the version you want to use and incorporate the changes in the earlier link, they're quite minimal.

    Regards,




  • 5.  RE: PyEZ and python 3.13

    Posted 26 days ago

    Do you really have something running production, that can only run telnet? I mean telnet has been a major no-no for many years, for obvious reasons, which is why nobody uses it any more.

    Reasoning for removing it from python is here: https://docs.python.org/3/library/telnetlib.html

    Please consider using ssh og netconf.



    ------------------------------
    IAN STOETTRUP
    ------------------------------



  • 6.  RE: PyEZ and python 3.13

    Posted 26 days ago

    I agree, telnet is not good, and I do not use it.  I only want to get my existing PyEZ scripts running on my new OS.  Since I am also not good with git, I will wait for an official release.  Thanks to all.




  • 7.  RE: PyEZ and python 3.13

     
    Posted 26 days ago
    Edited by asharp 26 days ago

    As per the PyEz readme, you can install the master branch version using pip.

    https://github.com/Juniper/py-junos-eznc?tab=readme-ov-file#pip

    To install the latest MASTER code
    pip install git+https://github.com/Juniper/py-junos-eznc.git
    -or-
    To install a specific version, branch, tag, etc.
    pip install git+https://github.com/Juniper/py-junos-eznc.git@<branch,tag,commit>

    Regards,




  • 8.  RE: PyEZ and python 3.13

     
    Posted 26 days ago

    Telnet is one of the supported protocols for PyEz, in addition to ssh, netconf, serial etc.  I think that the issue is that the currently released version of PyEz has references to telnetlib which until recently was included in Python3 but no more since Python 3.13.

    A temporary workaround is in place in the master branch of PyEz and that will work with Python 3.13.