yum error : "ImportError: No module named rpm" on Enterprise Linux WS3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,


I install yum-2.2.0-1.noarch.rpm on Enterprise Linux
WS3,

Use PYTHONPATH=/usr/lib/python2.3/site-packages/ solve
the problem:

"ImportError: No module named yum".


But now I use yum command, the error is:

[root@cirith-ungol opt]# yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 6, in ?
    import yummain
  File "/usr/share/yum-cli/yummain.py", line 23, in ?
    import yum
  File "__init__.py", line 21, in ?
ImportError: No module named rpm
[root@cirith-ungol opt]#
 

My environment is:
[root@cirith-uol opt]# rpm -qa | grep rpm
rpm-4.2.2-0.14
rpm-build-4.2.2-0.14
rpmdb-redhat-3-0.20040505
redhat-rpm-config-8.0.28-2
rpm-python-4.2.2-0.14
redhat-java-rpm-scripts-1.0.2-2
rpm-devel-4.2.2-0.14
#[root@cirith-uol opt]# rpm -qa | grep yum
yum-2.2.0-1

I want to try to upgrade rpm-python-4.2.2-0.14 to 
rpm-python-4.3.2-21.x86_64.rpm


[root@cirith-ungol opt]# rpm -Uvh
rpm-python-4.3.2-21.x86_64.rpm
warning: rpm-python-4.3.2-21.x86_64.rpm: V3 DSA
signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
        librpm-4.3.so()(64bit) is needed by
rpm-python-4.3.2-21
        librpmdb-4.3.so()(64bit) is needed by
rpm-python-4.3.2-21
        librpmio-4.3.so()(64bit) is needed by
rpm-python-4.3.2-21
        python >= 2.3 is needed by rpm-python-4.3.2-21
        rpm = 4.3.2-21 is needed by
rpm-python-4.3.2-21
[root@cirith-ungol opt]#


Do I have to upgrade so many package to install yum or
there is another yum version suit all existing
package? thanks a lot,

Grace






		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs


[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]