On my system, the /usr/lib and /usr/lib64 are distinct directories. Whether or not this is good or not is debatable, but this setup exposes bugs in certain programs. All of the python source and bytecode from yum is installed into /usr/lib/python2.5/site-packages instead of /usr/$(get_libdir)/python2.5/site-packages. Because of this, when I try to run yum, I get the following error: ohnopublishing ssl # 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.5.2 (r252:60911, Jan 11 2009, 23:12:21) [GCC 4.3.1] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq To work around this, I run: ebuild /usr/portage/sys-apps/yum/yum-3.2.8.ebuild install cd /var/tmp/portage/sys-apps/yum-3.2.8/image/usr/ mv lib lib64 ebuild /usr/portage/sys-apps/yum/yum-3.2.8.ebuild qmerge This gives me what appears to be a working yum.
Can you recheck with 3.4.3?
I experience the exact same problem with 3.4.3. It renders yum unusable on my machine because /usr/lib/python* isn't in python's module searchpath. `` ohnopublishing etc # qlist -e yum | grep -e /lib | sort -R | head -n 10 /usr/lib/python2.6/site-packages/yum/repoMDObject.py /usr/lib/python2.6/site-packages/yum/parser.py /usr/lib/python2.6/site-packages/rpmUtils/arch.py /usr/lib/python2.6/site-packages/yum/sqlutils.py /usr/lib/python2.6/site-packages/yum/pgpmsg.py /usr/lib/python2.6/site-packages/yum/constants.py /usr/lib/python2.6/site-packages/yum/history.py /usr/lib/python2.6/site-packages/yum/update_md.py /usr/lib/python2.6/site-packages/yum/__init__.py /usr/lib/python2.6/site-packages/yum/packages.py ohnopublishing etc # yum --version 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.6.5 (release26-maint, Nov 30 2010, 00:18:43) [GCC 4.4.3] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq ohnopublishing etc # python --version Python 2.6.5 '' (yes, unfortunately this machine I'm testing it on is not all that up-to-date :-/. Maybe python-2.6.6 magically works somehow with yum installed this way, but I think that's unlikely.)
+ 02 Apr 2012; Pacho Ramos <pacho@gentoo.org> -yum-3.2.27-r1.ebuild, + -yum-3.2.29.ebuild, yum-3.4.3.ebuild: + Respect get_libdir variable, bug #255698 by Nathan Phillip Brink (binki). + Remove old +