Page 1 of 1

Unable to install junos-eznc

Posted: 2020/06/15 00:57:16
by eugeneade

I am fairly new to Linux and trying to automate Juniper firewall from CentOS 7. Can someone please help with the error I am getting when I install "pip install junos-eznc"

Code: Select all

[root@localhost ~]# pip install junos-eznc
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at
Requirement already satisfied: junos-eznc in /usr/lib/python2.7/site-packages/junos_eznc-2.4.1_25.gdcf1c1a-py2.7.egg (2.4.1-25.gdcf1c1a)
Collecting lxml>=3.2.4
  Using cached lxml-4.5.1-cp27-cp27mu-manylinux1_x86_64.whl (5.5 MB)
Collecting ncclient>=0.6.3
  Using cached ncclient-0.6.7.tar.gz (605 kB)
    ERROR: Command errored out with exit status 1:
     command: /bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0NhZyx/ncclient/'"'"'; __file__='"'"'/tmp/pip-install-0NhZyx/ncclient/'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);'"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-vo4WfB
         cwd: /tmp/pip-install-0NhZyx/ncclient/
    Complete output (3 lines):
    /usr/lib64/python2.7/distutils/ UserWarning: Unknown distribution option: 'python_requires'
    error in ncclient setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
ERROR: Command errored out with exit status 1: python egg_info Check the logs for full command output.
[root@localhost ~]# pip install junos-eznc

Re: Unable to install junos-eznc

Posted: 2020/07/03 07:19:32
by rahkumar
Try with python3.
pip3 install junos-eznc will resolve this.

You may try with an older version of ncclient for python 2.7.