[mod_python] Error using mod_python, Python2.4, and pyexpat

Chris Jackson christopher.jackson at gmail.com
Wed Feb 2 03:34:13 EST 2005


Just upgrade your libexpat to 1.95.8, which is what it is in
Python-2.4 and make sure
that the library is located in your LD_LIBRARY_PATH or standard library path.

See this thread:

http://www.modpython.org/pipermail/mod_python/2005-January/017273.html

~= Chris =~


On Tue, 01 Feb 2005 12:56:14 -0500, David Geller <dg at sponsera.com> wrote:
> Hi Rune -
> 
> Did you ever solve this problem? I am very confused. I am trying to do
> xml parsing using ElementTree, and it segfaults under mod_python (but
> works great standalone and under mod_python with Python2.3.4). I am
> using Python2.4 with apache-2.0.52 on a Redhat ES 3.0v3, as well. It
> looks like there are 3 expat shared libs:
> 1. the installed one in /usr/lib (1.95.5)
> 2. one that comes with Python2.4 - (not sure of the version, but am told
> it is 1.95.8)
> 3. one with apache - (source in: apr-util/xml/expat), version 1.95.1 (?)
> 
> So I take it the problem is Python2.4 is looking at one version, while
> apache itself is looking at another version. The old "library
> compatibility problem" when using mod_python!!!! (had it before with
> mysql libs)
> 
> How, exactly, do you build apache (or Python/mod_python for that matter)
> (without a lot of headaches), so that the libraries are compatible?
> 
> Thanks alot for anything that helps!
> 
> Regards,
> David
> 
> Rune Hansen wrote:
> > Hi David,
> > And it all becomes clear..as ink :) Thanks. I'm on RedHat ES 3.0v3 -
> > struggling to maintain the integrity of the system. I'll see if I can
> > manage to build the expat library without breaking the rest of the system.
> >
> > regards
> >
> > /rune
> >
> > On 7. des 2004, at 15.21, David Christian wrote:
> >
> >> Sorry, let me make that just the tiniest bit more clear:
> >>
> >> You must upgrade expat to 1.95.8, and then rebuild apache.
> >>
> >> David
> >>
> >>
> >> On Tue, 7 Dec 2004 09:02:36 -0500, David Christian
> >> <david.christian at gmail.com> wrote:
> >>
> >>> Yes, I went through that same process.
> >>>
> >>> Python2.4 comes with the newest version of expat -- you must rebuild
> >>> apache after upgrading.
> >>>
> >>> HTH,
> >>> David
> >>>
> >>>
> >>>
> >>>
> >>> On Tue, 7 Dec 2004 13:55:48 +0100, Rune Hansen
> >>> <rune.hansen at scanmine.com> wrote:
> >>>
> >>>> Hi David,
> >>>> Did you solve this? I just tried to move to Python2.4 and I get the
> >>>> same segfault as you describe.
> >>>>
> >>>> I did try to build mod_python from cvs, but it fails on flex and my
> >>>> flex scanner doesn't seem to have the "-R" option....
> >>>>
> >>>> regards
> >>>> /rune
> >>>>
> >>>>
> >>>>
> >>>> On 1. des 2004, at 17.16, David Christian wrote:
> >>>>
> >>>>> Hello,
> >>>>> I recently upgraded to python2.4, and rebuilt/reinstalled mod_python,
> >>>>> and after doing this, scripts running in mod_python segfaults when
> >>>>> importing pyexpat.
> >>>>>
> >>>>> Note that this segfault doesn't happen outside of mod python, and the
> >>>>> pyexpat test suite passes.
> >>>>>
> >>>>> Has anyone else seen this behavior?
> >>>>>
> >>>>> Thanks,
> >>>>> David
> >>>>> _______________________________________________
> >>>>> Mod_python mailing list
> >>>>> Mod_python at modpython.org
> >>>>> http://mailman.modpython.org/mailman/listinfo/mod_python
> >>>>>
> >>>>
> >>>>
> >>>
> >>>
> > "So as far as I'm concerned, SOAP is not XML, nor is it useful to even a
> > fraction of the degree to which it is destructive."
> > - Uche Ogbuji
> >
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://mailman.modpython.org/mailman/listinfo/mod_python
> >
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list