Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255698 - sys-apps/yum-3.2.8 installed into /usr/lib/python2.5 on amd64
Summary: sys-apps/yum-3.2.8 installed into /usr/lib/python2.5 on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: portage-multilib
  Show dependency tree
 
Reported: 2009-01-20 21:59 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2012-04-02 19:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-01-20 21:59:44 UTC
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.
Comment 1 Pacho Ramos gentoo-dev 2012-02-12 11:58:49 UTC
Can you recheck with 3.4.3?
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-03-27 05:45:08 UTC
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.)
Comment 3 Pacho Ramos gentoo-dev 2012-04-02 19:54:24 UTC
+  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
+