Installing rpm module of Python for yum
Posted
by vito
on Server Fault
See other posts from Server Fault
or by vito
Published on 2010-04-30T07:44:22Z
Indexed on
2010/04/30
7:47 UTC
Read the original article
Hit count: 618
I've installed Python and yum from source (configure, make, make install), not using RPMs because that's leading to several other issues. So when I executed:
# yum update
... I get the following error:
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in <module>
import yummain
File "/usr/share/yum/yummain.py", line 22, in <module>
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in <module>
import rpm
ImportError: No module named rpm
Now because I've installed yum and python from source, do I need to install Python's rpm module from source, too? Because installing the rpm for this module lead to the following error:
# rpm -vih rpm-python-3.0.4-6x.i386.rpm
warning: rpm-python-3.0.4-6x.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
python >= 1.5.2 is needed by rpm-python-3.0.4-6x.i386
libbz2.so.0 is needed by rpm-python-3.0.4-6x.i386
librpm.so.0 is needed by rpm-python-3.0.4-6x.i386
Suggested resolutions:
/var/spool/up2datepython-2.3.4-14.7.el4.x86_64.rpm
I tried searching for the source of this module, but I couldn't find it. Any help in installing this module is appreciated. Thanks for your time.
Other info:
# python -V
Python 2.6.5
© Server Fault or respective owner