Hi,
Whenever I run Yum, I get the following:
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.3/site-packages/libxml2.py", line 1, in ? import libxml2mod ImportError: /usr/lib/python2.3/site-packages/libxml2mod.so: undefined symbol: xmlXIncludeProcessFlags
I also get the ImportError if I try to import libxml2 from the python console.
I've tried using rpm to uninstall and re-install the libxml2, libxml2-python, and yum rpms which I downloaded from my nearest fedora core 2 mirror, but still the same problem. rpm -q shows my libxml2 & libxml2-python to be versions as follows: libxml2-2.6.8-1 libxml2-python-2.6.8-1.
It's possible that some manual flailing around with downloaded install scripts I did very late last night overwrote the libraries from the rpm's, but in that case wouldn't the libxml2 rpm un/re-installs have fixed the problem? Any ideas on how to go diagnosing from here?
Cheers,
CB.
CB wrote:
Hi,
Whenever I run Yum, I get the following:
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.3/site-packages/libxml2.py", line 1, in ? import libxml2mod ImportError: /usr/lib/python2.3/site-packages/libxml2mod.so: undefined symbol: xmlXIncludeProcessFlags
I also get the ImportError if I try to import libxml2 from the python console.
I've tried using rpm to uninstall and re-install the libxml2, libxml2-python, and yum rpms which I downloaded from my nearest fedora core 2 mirror, but still the same problem. rpm -q shows my libxml2 & libxml2-python to be versions as follows: libxml2-2.6.8-1 libxml2-python-2.6.8-1.
It's possible that some manual flailing around with downloaded install scripts I did very late last night overwrote the libraries from the rpm's, but in that case wouldn't the libxml2 rpm un/re-installs have fixed the problem? Any ideas on how to go diagnosing from here?
Cheers,
CB.
To anyone else who may have this problem, I managed to solve it by searching for all instances of libxml2.so throughout my file system. I discovered several in usr/local/lib as well as usr/lib, and moved the /usr/local/lib ones out of the way (assuming that the /usr/local/lib ones were added by non-rpm means). That fixed yum (though it may break something else).
Probably all obvious to most readers of this list.
On Mon, 2004-08-30 at 07:29, CB wrote:
CB wrote:
Hi,
Whenever I run Yum, I get the following:
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.3/site-packages/libxml2.py", line 1, in ? import libxml2mod ImportError: /usr/lib/python2.3/site-packages/libxml2mod.so: undefined symbol: xmlXIncludeProcessFlags
I also get the ImportError if I try to import libxml2 from the python console.
I've tried using rpm to uninstall and re-install the libxml2, libxml2-python, and yum rpms which I downloaded from my nearest fedora core 2 mirror, but still the same problem. rpm -q shows my libxml2 & libxml2-python to be versions as follows: libxml2-2.6.8-1 libxml2-python-2.6.8-1.
It's possible that some manual flailing around with downloaded install scripts I did very late last night overwrote the libraries from the rpm's, but in that case wouldn't the libxml2 rpm un/re-installs have fixed the problem? Any ideas on how to go diagnosing from here?
Cheers,
CB.
To anyone else who may have this problem, I managed to solve it by searching for all instances of libxml2.so throughout my file system. I discovered several in usr/local/lib as well as usr/lib, and moved the /usr/local/lib ones out of the way (assuming that the /usr/local/lib ones were added by non-rpm means). That fixed yum (though it may break something else).
Probably all obvious to most readers of this list.
This is just one reason it is not a good idea to mix source and rpms.
Ted
Listman wrote:
To anyone else who may have this problem, I managed to solve it by searching for all instances of libxml2.so throughout my file system. I discovered several in usr/local/lib as well as usr/lib, and moved the /usr/local/lib ones out of the way (assuming that the /usr/local/lib ones were added by non-rpm means). That fixed yum (though it may break something else).
Probably all obvious to most readers of this list.
This is just one reason it is not a good idea to mix source and rpms.
Ted
True. Especially when it's 3am and you (me) only the faintest idea how to drive Linux and have been installing everything that takes your fancy without taking notes for the last few hours.
Unfortunately rpms aren't available for everything (syncato in this instance).
On Monday 30 August 2004 06:47, CB wrote:
Hi,
Whenever I run Yum, I get the following:
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.3/site-packages/libxml2.py", line 1, in ? import libxml2mod ImportError: /usr/lib/python2.3/site-packages/libxml2mod.so: undefined symbol: xmlXIncludeProcessFlags
I also get the ImportError if I try to import libxml2 from the python console.
I've tried using rpm to uninstall and re-install the libxml2, libxml2-python, and yum rpms which I downloaded from my nearest fedora core 2 mirror, but still the same problem. rpm -q shows my libxml2 & libxml2-python to be versions as follows: libxml2-2.6.8-1 libxml2-python-2.6.8-1.
It's possible that some manual flailing around with downloaded install scripts I did very late last night overwrote the libraries from the rpm's, but in that case wouldn't the libxml2 rpm un/re-installs have fixed the problem? Any ideas on how to go diagnosing from here?
Cheers,
CB.
A similar error report drive me crazy (its not a long drive) for a couple of months, until I stumbled onto something that finally gave me a meaningfull error message.
See if you have an /etc/pango/pango.modules file. In my case it was totally missing. The file is a self-scan result, and can be regenerated if its fubared by rerunning /usr/bin/pango-querymodules32 and redirecting it output to that file.
#>cd /etc/pango #>/usr/bin/pango-querymodules32 >pango.modules
If the error persists, then something in the pango install may be fubar. But I had forceably reinstalled anything libxml2 or pango related 6 or more times without resolving this on my system.
IMNSHO, the pango post install script is busted for not doing that little bit of housekeeping regardless of whether or not its needed. Its a bit like re-running ldconfig when a new library has been installed, it can't hurt, and it would have helped immensely.
HTH