On Thu, 2003-04-24 at 23:10, R P Herrold wrote: > On 24 Apr 2003, seth vidal wrote: > > > rpm -q rpm-python > > > [root@router root]# rpm -q rpm-python > rpm-python-4.1.1-1.7x > [root@router root]# rpm -ql rpm-python > /usr/lib/python2.2/site-packages/rpmdb > /usr/lib/python2.2/site-packages/rpmdb/_rpmdb.so > /usr/lib/python2.2/site-packages/rpmmodule.so > > </me edits path to use python2> > > [root@router root]# yum update > Traceback (most recent call last): > File "/usr/bin/yum", line 23, in ? > import yummain > ImportError: Bad magic number in /usr/share/yum/yummain.pyc > [root@router root]# head -1 /usr/bin/yum > #!/usr/bin/python2 > [root@router root]# hehe - right - and now the pyc files are built for python 1.5.2 b/c you just rebuilt the pkg. put back the original yum pkg from the website, modify /usr/bin/yum and run it. -sv