David Geller
dg at sponsera.com
Wed Feb 2 10:53:01 EST 2005
Thanks. I finally did get things working yesterday. A. I am still somewhat baffled on why both python and httpd have their own private versions of expat - why not rely on a single external library? This library incompatibility problem could easily be avoided (at the expense of having the requirement of a proper version of expat installed). B. Suggestion: segv's while running python/mod_python can be such a gnarly issue, especially for the less computer inclined. Should there be an entry in the mod_python faq regarding specifically this expat library issue and how to correct? Regards, David Chris Jackson wrote: > 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 >> > >
|