[XML-SIG] pyexpat problem
Martin v. Loewis
martin@v.loewis.de
08 Aug 2002 09:10:05 +0200
James Haefner <jhaefner@biology.usu.edu> writes:
> I have RedHat 7.2 and need to upgrade printconf, but am having
> problems with python2.2 installation. My setup can not find "pyexpat".
> Unfortunately, I am quite ignorant of python. Here is what I have,
> all taken from recent rpms:
>
>
> $ rpm -q printconf
> printconf-0.3.61-4.1
> $ rpm -q printconf-gui
> printconf-gui-0.3.61-4.1
> $ rpm -q PyXML
> PyXML-0.7.1-4
Can you tell whether you have a "expat" package installed also?
I don't know how Redhat has chosen to package PyXML and Python 2.2,
but I recommend to install all packages that remotely have "expat" in
their name, in all spellings that you can think of.
> The last path printed does not exist, but
> /usr/lib/python2.2/site-packages/_xmlplus/utils/qp_xml.py
>
> does exit. Also I have installed something called
>
> /usr/lib/python2.2/lib-dynload/pyexpat.so
Ok, what happens if you do
import pyexpat
on an interactive Python prompt?
> It looks to me that I have not installed python correctly (other
> python code fails). Is it true that simply installing the pyxml rpm
> is insufficient? I can find no xml_setup.py file. Is there a
> tutorial for using python modules installed via rpm?
Hard to tell - you'd have to ask Redhat for that.
Regards,
Martin