pkg_resources.DistributionNotFound: td-aws-ins-config==1.0.0

Teradata Database on AWS

pkg_resources.DistributionNotFound: td-aws-ins-config==1.0.0

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.


Teradata Employee

Re: pkg_resources.DistributionNotFound: td-aws-ins-config==1.0.0

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

# Workaround

  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


Re: pkg_resources.DistributionNotFound: td-aws-ins-config==1.0.0

mc200018, thank you for your reply!

But all my links are in proper state. They link to python2.7. There are either no python 2.6 or links to python 2.6 in the system:

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/", line 2603, in <module>


  File "/usr/lib/python2.7/site-packages/", line 666, in require

    needed = self.resolve(parse_requirements(requirements))

  File "/usr/lib/python2.7/site-packages/", line 565, in resolve

    raise DistributionNotFound(req)  # XXX put more info here

pkg_resources.DistributionNotFound: td-aws-ins-config==1.0.0

ec2-user@ip-172-xx-xx-xx:/usr/bin> pip install td-aws-ins-config

Collecting 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.


Re: pkg_resources.DistributionNotFound: td-aws-ins-config==1.0.0

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.


Re: pkg_resources.DistributionNotFound: td-aws-ins-config==1.0.0

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.