After upgrade python from 2.6 to 2.7 on Teradata Database Developer (Single Node) AMI could not execute tdc-init, tdc-start: td-aws-ins-config is missing.
Is there any chance to download it separately for 2.7 version or how to solve current issue the other way?
I would appreciate your help.
Please try make symbolic link python with installed python2.7
under /usr/bin directory.
# python file linked with python2.6
ip-172-xx-xx-xx:/usr/bin # ls -ltr|grep -i python
-rwxr-xr-x 1 root root 6416 Nov 19 2014 python2.6
lrwxrwxrwx 1 root root 9 Dec 14 2015 python2 -> python2.6
lrwxrwxrwx 1 root root 9 Dec 14 2015 python -> python2.6
1. Rename python link to python.bak
# cd /usr/bin
# mv python python.bak
2. Make symbolic link python with python2.7
# ln -s python2.7 python
ec2-user@ip-172-xx-xx-xx:/usr/bin> ls -ltr|grep -i python
-rwxr-xr-x 1 root root 6416 Jan 18 2012 python2.7
lrwxrwxrwx 1 root root 9 Jul 7 05:06 python2 -> python2.7
lrwxrwxrwx 1 root root 9 Jul 7 05:06 python -> python2.7
ec2-user@ip-172-xx-xx-xx:/usr/bin> sudo tdc-init
Traceback (most recent call last):
File "/usr/local/bin/tdc-init", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2603, in <module>
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
ec2-user@ip-172-xx-xx-xx:/usr/bin> pip install td-aws-ins-config
Could not find a version that satisfies the requirement td-aws-ins-config (from versions: )
No matching distribution found for td-aws-ins-config
ec2-user@ip-172-xx-xx-xx:/usr/bin> sudo zypper in td-aws-ins-config
Loading repository data...
'td-aws-ins-config' not found in package names. Trying capabilities.
No provider of 'td-aws-ins-config' found.
Resolving package dependencies...
Nothing to do.
I do not need to use exactly tdc-init and tdc-start, maybe there is other tools and scripts to init, reinit and start Teradata DB (f.i. vprocmanager and tpa).
If so kindly ask you to describe how to use them properly.
Address this issue by downgrading to python 2.6.
If someone find solution for running tdc-init on Python 2.7, would appreciate your comment.