[Yum] Segfault
swordsaintzero
swordsaintzero at gmail.com
Sat Feb 4 22:51:12 UTC 2006
Tru Huynh wrote:
>On Sat, Feb 04, 2006 at 12:16:09PM -0600, swordsaintzero wrote:
>
>
>>>Message: 1
>>>
>>>
><... yum segfault ...>
><... python import yum .... segfaults ...>
>
>
>>>up can you do a rpm -q for the packages ?
>>>
>>>rpm-python-4.3.3-11_nonptl
>>>yum-2.4.0-1.centos4
>>>rpm-4.3.3-11_nonptl
>>>
>>>Centos4.2 Release Versions working
>>>Greetz mIke
>>>
>>>
>>>
>>>
>>What I currently have installed:
>>
>>rpm-python 4.2.3-21
>>rpm-4.2.3-21_nonptl
>>yum-2.0.8-1.centos.7
>>
>>
>>Interestingly enough the centos 3.4 repository has rpm-python version
>>-24 and rpm version -24 listed in the http repository of the mirror im
>>looking at. Would that small of a version difference cause a segfault?
>>
>>
>
>ok you are running CentOS-3
>Current CentOS-3 is 3.6
>
>can you verify that you are running the system python?
>
>[tru at carrington ~]$ rpm -q python
>python-2.2.3-6.1
>[tru at carrington ~]$ python
>Python 2.2.3 (#1, Feb 15 2005, 02:41:06)
>[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-49)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
>
>
>
>You should move this thread to the centos mailing list :)
>
>Cheers.
>
>Tru
>
>
>
Thank you for your help, the reason I did not ask the centos mailing
list about this problem is, since it only occurs with yum I assumed it
must be a yum dependency that I am missing and that this list would have
the most expertise with the issue. I have no intention of spamming the
list with purely os related issues if you truly think I am abusing the
list please email me off list and I will of course cease asking
questions.. : ) Python works fine, rpm works great, so does every other
ap in the system except yum. I am currently running 3.4 rather than 3.6
due to a lack of yum for a dist upgrade. my /etc/redhat-release shows it
as 3.4 final.
rpm -q python
python-2.2.3-6.1
root at thunder: pts/0: 41 files 19Mb -> python
Python 2.2.3 (#1, Feb 15 2005, 02:41:06)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-49)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
It appears the system python path and the python listed in the rpms
database are the same, I have also since updated the rpm-python and rpm
bringing them both up to the repositories -24 version with no change in
yums behavior. an rpm -Va does not show any missing rpms and as far as I
know all my versions are now in synch with each other.
I did discover a second python installation in /usr/local/bin for
python2.4 if I move the python entry in /usr/bin and ln -s
/usr/local/bin/python2.4 python, yum now returns,
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
Should I for some reason be using 2.4? I know 2.4 is missing modules can
I simply extract all the dependencies with rpm2cpio for yum and place
them in this pythons site packages folder? Is ther a coherent list of
exactly what yum depends on somewhere? This problem is driving me up a
wall, I ask for some leeway since I have never administered a redhat
system, only slackware and debian and I am finding all sorts of things
have already been done to it. If it wasn't my clients only server and in
production right now I would advise a format but he can't afford the
downtime.
Thank you very much for all the prompt replies and expertise I have
recieved from this list so far I can assure you I will use anything I
learn here to help anyone else with issues in the same vein. (sigh if
only this was debian....grumble I am still learning the redhat clone's
ins and outs)
More information about the Yum
mailing list