Thank you very much. I will be happy to switch to Python 2.5, abeit this would cause some recompilation and so on. By the way I have fond a fast way to fix the problem. This way is not 100% safe, but works well for me.
I downloaded and recompiled expat version 1.95.8, then I installed it replacing the old 1.95.7. Apache was happy with it, and so was python 2.4. I am not sure is safe because I think expat could be used by other part of the system so... you should be very carefully on a production environment. Anyway, the replaced library is very closed to the original.... On Feb 4, 11:39 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > The only other option is to upgrade to Python 2.5. In Python 2.5 it > correctly namespaces the copy of expat it contains thereby avoiding > the problem. > > Graham > > On Feb 5, 8:51 am, Giovanni Giorgi <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I have a problem. > > I have discovered my dear python 2.4 has a libexpat incompatibility > > when I usemod_python. > > As seen > > inhttp://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash > > I have expat_1.95.7 library inside /usr/lib/libexpat.so.0 > > > Python 2.4 do not like it very much: > > > [EMAIL PROTECTED] tests]# ldd /usr/sbin/httpd | grep expat > > libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7ea2000) > > [EMAIL PROTECTED] tests]# LD_PRELOAD=/usr/lib/libexpat.so.0 python > > Python 2.4.3 (#1, Oct 20 2006, 13:13:29) > > [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2 > > Type "help", "copyright", "credits" or "license" for more > > information. > > >>> import pyexpat > > Segmentation fault > > > I have read the suggestions down to > > http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash > > but I cannot fix the problem. > > > What do you suggest to do? > > There is a way to recompile the python 2.4 using my expat library? > > Python code seems using its own version stored inside > > Python-2.4.3/Modules/expat > > > The difference is tiny...but I'd like to avoid to upgrade my apache > > installation... can you give me some hints? > > Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---