Amazon EC2 Linux AMI
I recently did a "yum update" and I'm guessing this lead to my issues. Yum now does this:
# yum There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.5 (default, Sep 3 2013, 23:16:48) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq
Looked at the yum faq and wasn't super comfortable with messing with yum rpms and messing things up more.
Googled a bit and found out that python 2.6 has the right site packages and 2.7.5 does not:
# rpm -ql python | grep "site-packages$" # rpm -ql yum | grep "site-packages/yum$" /usr/lib/python2.6/site-packages/yum
If I try and force yum to use 2.6 I now get this error:
# yum --version 3.4.3 CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum/yum.conf
Not sure how to get back up and running ...