[ATrpms-users] Re: Problem with up2date and yum after upgrade of FC1 -> FC2

Kjell Randa Kjell.Randa at broadpark.no
Wed Jul 7 20:15:44 CEST 2004


Axel Thimm wrote:

>On Sat, Jul 03, 2004 at 07:02:06PM +0200, Kjell Randa wrote:
>  
>
>>Hi,
>>
>>I have one machine running FC1 that used atrpm site as a repotitory for 
>>up2date and was fully updated from this site.
>>I the upgraded to FC2 using Anaconda. The upgrade was ok, even the new 
>>Nvida drivers worked, but up2date and yum is broken
>>
>>running up2date I get:
>>[root at tiger]# up2date
>>Traceback (most recent call last):
>> File "/usr/sbin/up2date", line 12, in ?
>>   import rpm
>>ImportError: No module named rpm
>>
>>Running yum I get:
>>[root at tiger]# yum
>>Traceback (most recent call last):
>> File "/usr/bin/yum", line 22, in ?
>>   import yummain
>> File "/usr/share/yum/yummain.py", line 22, in ?
>>   import clientStuff
>> File "/usr/share/yum/clientStuff.py", line 18, in ?
>>   import rpm
>>ImportError: No module named rpm
>>
>>Output from rpm -qa| grep -i rpm:
>>root at tiger]# rpm -qa| grep -i rpm
>>librpm4.3-4.3.1-0.3_26.99.rhfc1.at
>>atrpms-package-config-66-1.rhfc1.at
>>rpm-build-4.3.1-0.3_26.99.rhfc1.at
>>redhat-rpm-config-8.0.28-1.1.1
>>librpm4.2-4.2.1-0.30_19.6.rhfc1.at
>>rpm-devel-4.3.1-0.3_26.99.rhfc1.at
>>rpm-python-4.3.1-0.3_26.99.rhfc1.at
>>rpm404-python-4.0.4-8x.27
>>librpm404-4.0.4-8x.27
>>atrpms-54-1.rhfc1.at
>>rpm-4.3.1-0.3_26.99.rhfc1.at
>>
>>Any idea what could cause this?
>>    
>>
>
>The errors sound like rpm-python not installed. You could try checking
>if the packages are really there:
>
>rpm -V ...
>
>Also the packages above a re still fc1. You would need to use the fc2
>counterparts. If up2date/yum don't work, use apt to upgrade smoothly.
>  
>
I think my problem is that the rpm-phyton package I have installed 
(rpm-python-4.3.1-0.3_26.99.rhfc1.at)
only work with python 2.2 and after upgrade to FC2 phyton 2.3 is 
installed. The rpm-python rpm from FC2 iso
will not install as the rpm-python-4.3.1-0.3_26.99.rhfc1.at is newer 
than the FC2 rpm.

I copied /usr/lib/python2.2/site-packages//rpmmodule.so to 
/usr/lib/python2.3/site-packages/rpmmodule.so
and up2date started to work but gives the following g message at startup:

/usr/sbin/up2date:12: RuntimeWarning: Python C API version mismatch for 
module rpm: This Python has API version 1012, module rpm has version 1011.
  import rpm

So I guess I need rpm-python-4.3.1-0.3_26.99  or newer build for python 2.3.

For the rest of the fc1 packages I hope to find fc2  version  on atrpms  
in the near future.

I enjoy using the atrpm repository and really apresiate* *the work you do.

Regards
Kjell Randa





More information about the atrpms-users mailing list