Aug-13-2024, 09:26 AM
I am running a script from git which is below and it is coming out with ncclient issues
https://github.com/CiscoDevNet/clus2017_...ent_ncc.py
using pip install ncclient
I get another error
I run python version 2.7 on redhat 7.8
https://github.com/CiscoDevNet/clus2017_...ent_ncc.py
Error: ./ietf_client_ncc.py --uut_ip '10.200.226.59' --kafka 'localhost' --user netadmin --password testsecret
Traceback (most recent call last):
File "./ietf_client_ncc.py", line 2, in <module>
from ncclient import manager
ImportError: No module named ncclient
when i try to install ncclient using pip install ncclient
I get another error
Error: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 https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting ncclient
Using cached ncclient-0.6.15.tar.gz (634 kB)
ERROR: Command errored out with exit status 1:
command: /bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Q1Lb0B/ncclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-Q1Lb0B/ncclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-jWHcwD
cwd: /tmp/pip-install-Q1Lb0B/ncclient/
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-Q1Lb0B/ncclient/setup.py", line 23, in <module>
import versioneer
File "versioneer.py", line 418
LONG_VERSION_PY: Dict[str, str] = {}
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I am stuck k i dont know what to doI run python version 2.7 on redhat 7.8