[Yum] Re: Yum error

Gene Heskett gene.heskett at verizon.net
Fri Jul 23 21:59:21 CEST 2004


On Friday 23 July 2004 13:06, Michael Stenner wrote:
>On Fri, Jul 23, 2004 at 11:46:29PM +0700, Hung Pham wrote:
>> First of all, my name is Hung. I am facing with yum error, and
>> found your thread at
>> https://lists.dulug.duke.edu/pipermail/yum/2004-July/004780.html
>> Following that, but I still don’t know how to fix my problem. The
>> last your suggestion brings me result
>
>First, you should post such messages to the list and not send them
> to me personally.  I'm ccing this to the yum list and any further
> discussion should happen there.
>
>It looks like you're having the same problem as Gene.  Hopefully,
> he's found a solution and will reply accordingly.
>
>Honestly, I'm pretty stumped at this point.  This is really a python
>problem (or possibly a libxml2 problem) and so you guys should
>probably take this question to the python list.  I'm sorry, but I'm
>just out of ideas at this point.  If you do find a solution, please
>post it back to this list.  If there are two of you with this
> problem, there are probably more.
>
>					-Michael

Hi Michael;  Aside, the python-list@#python.org was just as stumped as 
we were, but please read on for a blow by blow report.

Thinking I had a mobo/memory problem, I've now thrown $410 at this 
problem, for a new mobo, 2x the memory, and 2x faster cpu, basicly so 
I can make mysteaks 2x as fast :)

My mistake/error isn't exactly the same, but its very very close, here 
is a fresh snip:
-------------
[root at coyote root]# yum update
Traceback (most recent call last):
  File "/usr/bin/yum", line 22, in ?
    import yummain
  File "/usr/share/yum/yummain.py", line 31, in ?
    import yumcomps
  File "/usr/share/yum/yumcomps.py", line 4, in ?
    import comps
  File "/usr/share/yum/comps.py", line 5, in ?
    import libxml2
  File "/usr/lib/python2.2/site-packages/libxml2.py", line 1, in ?
ImportError: No module named libxml2mod
----------------
Humm, now thats a fresh error, but why is it now reverting to looking 
in the python 2.2 tree?  Without disturbing the 2.2 tree, the 2.3 
tree is installed alongside it, and the appropriate links corrected 
(I thought).

ATM, an ls -l on that dir (once I fix the ^#$*% links in /usr/bin  
again) returns:
[root at coyote bin]# ls -l /usr/lib/python2.3/site-packages/
total 1396
-rw-r--r--  1 root root  15097 Jul  1 05:19 drv_libxml2.py
-rw-r--r--  1 root root 336540 Jul  1 05:19 libxml2mod.a
-rwxr-xr-x  1 root root    900 Jul  1 05:19 libxml2mod.la
-rwxr-xr-x  1 root root 254768 Jul  1 05:19 libxml2mod.so
-rw-r--r--  1 root root 291327 Jul  1 05:19 libxml2.py
-rw-r--r--  1 root root 493151 Jul 15 11:23 libxml2.pyc
-rw-r--r--  1 root root    119 May 27 05:29 README

And, with the links fixed again (so /usr/bin/python is a link from 
python2.3 in that dir), running yum returns this:
--------------------
[root at coyote bin]# yum update
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
----------------------

Ok, I'll bite, where is the rpm stuff for python?  I've reinstalled 
this ,rpm-python-4.2.1-0.30 but that had no effect on this.  I'm 
about to rip out all python and reinstall, but my ripout will be with 
mc (probably, I want it gone before I re-install)

Update:  I blew away the python2.3 install with an rpm -e, and rebuilt 
the links in /usr/bin yet again, and I am now back a wee bit closer 
to the original error:

[root at coyote bin]# yum update
Traceback (most recent call last):
  File "/usr/bin/yum", line 22, in ?
    import yummain
  File "/usr/share/yum/yummain.py", line 31, in ?
    import yumcomps
  File "/usr/share/yum/yumcomps.py", line 4, in ?
    import comps
  File "/usr/share/yum/comps.py", line 5, in ?
    import libxml2
  File "/usr/lib/python2.2/site-packages/libxml2.py", line 1, in ?
ImportError: No module named libxml2mod

Humm, cd to yum/updates-released/packages and
#> "rpm -Uvh --force libxml2*" reinstalled those 3 packages but as a 
small downgrade.  Now I'm back to the original error that started a 
month ago, and $410 for a new system board memory and cpu trying to 
fix it since, there were memory errors caused by a dying nvidia 
display board.
----------------
[root at coyote packages]# yum update
Traceback (most recent call last):
  File "/usr/bin/yum", line 22, in ?
    import yummain
  File "/usr/share/yum/yummain.py", line 31, in ?
    import yumcomps
  File "/usr/share/yum/yumcomps.py", line 4, in ?
    import comps
  File "/usr/share/yum/comps.py", line 5, in ?
    import libxml2
  File "/usr/lib/python2.2/site-packages/libxml2.py", line 1, in ?
    import libxml2mod
ImportError: /usr/lib/python2.2/site-packages/libxml2mod.so: undefined 
symbol: xmlByteConsumed
------------------

Now, I have NDI (no damned idea) exactly when yum itself installed 
those 3 or 4 packages, all I know is that at about that time frame, 
maybe a little over a month ago now, yum stopped working here with 
the above error.  I'm tempted to go back to the FC1 install cd's and 
re-install that version, which did indeed work just fine.  In fact 
thats a heck of a good idea, brb.

Guess what folks, that indeed fixed it!  I had to rpm -e a bunch of 
devel stuff before I could revert libxml2-devel, but they aren't 
something I'll miss.  Please, somebody go back to the repo's and see 
WTF happened.  That was fedoras own FC1 "updates-released" repo that 
poisoned my system.

Now, how do I get a yum update to leave this stuff alone instead of 
self-destructing.  Can I add more than one line of excludes to 
yum.conf?  Sure seems like a great idea from this viewpoint!
[...]
>>   File "/usr/share/yum/comps.py", line 5, in ?
>>     import libxml2
>>   File "/usr/lib/python2.2/site-packages/libxml2.py", line 1, in ?
>>     import libxml2mod
>> ImportError: /usr/lib/python2.2/site-packages/libxml2mod.so:
>> undefined symbol: x

Now, this isn't quite the same error, but right now I'd bet a beer 
that a reversion of the python and rpm-python plus libxml2 stuff to 
the distribution FC1 CD's versions will also fix this gentlemans 
problems.  _IF_ he's still on FC1 that is.  Since its python2.2, I'd 
have to assume he is since FC3t1 at least comes with python2.3.4 
stuffs and IIRC FC2 has python2.3.2.

>> Can you please help me to fix this?
>>
>> Thanks
>>
>> Hung Pham

Hung, maybe this will fix it for you too?

-- 
Cheers, Gene
There are 4 boxes to be used in defense of liberty. 
Soap, ballot, jury, and ammo.
Please use in that order, starting now.  -Ed Howdershelt, Author
Additions to this message made by Gene Heskett are Copyright 2004, 
Maurice E. Heskett, all rights reserved.



More information about the Python-list mailing list