Python Forum
Poll: what do you think about python libraries
You do not have permission to vote in this poll.
allow users to vote not more than once
0%
0 0%
allow users to see which user voted
0%
0 0%
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ncclient issues
#1
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

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 do
I run python version 2.7 on redhat 7.8
Reply
#2
it's in the error message:
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.
That's almost 5 years ago. You need to upgrade.
Current version of python is 3.12.5
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020