quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dom. Orchard" <rif...@g615.co.uk>
Subject Re: mod_python/sax bug.. (<3.1.4, 3.2.8)
Date Thu, 30 Mar 2006 10:44:47 GMT
I see.. that does make some sense. So just now I did the following:-
Downloaded and installed expat 2.0
Re-compiled Apache
Re-compiled Python (I switched to 2.4.3 as well)
Re-compiled the latest PyXML (0.8.4)
Re-compiled mod_python
Restart apache...
Which did not change anything. Then I read Graham's post, and read the 
article, and discovered even though I had installed a new expat, my old 
libraries were still being used, so did some library moving around and 
re-compiled Apache and now it works great.

Thank you very much for the help guys, much appreciated.
I hope the weather is nice in Liverpool & Aus! In Kent  (South east 
England) its miserable and rainy... joy!

Thank you once again for resolving this issue,
Kind regards,

Graham Dumpleton wrote:

> As pointed out by someone else, it is probably a versioning issue  
> with expat.
> See the following article for how to debug which versions of expat  
> are being
> used and thus whether there might be a conflict.
>   http://www.dscpl.com.au/articles/modpython-006.html
> Graham
> On 30/03/2006, at 9:00 PM, Dom. Orchard wrote:
>> Hi,
>> I'm in the middle of re-writing an application that uses mod_python  
>> for serving to the web, and have decided to switch to an XML model  
>> to store some information,
>> however, I encountered an issue that I don't quite understand, see  
>> this short example that isolates the problem:
>> from xml.sax import make_parser, SAXException
>> def index(req):
>>         req.write("Hello...")
>>         try :
>>             test = make_parser()
>>         except SAXException:
>>             req.write("Failed")
>>         req.write("\n Can you see me?")
>> When I try to view this page I just get the "Hello..." text and  then 
>> nothing else, the program seems to terminate at the make_parser () 
>> call. Which is most confusing. Run locally from the command  prompt 
>> there are no problems. I was using mod_python 3.1.4 in a  hope to fix 
>> the problem I downloaded 3.2.8, but this did not change  anything.
>> Here is my Apache info (Apache/2.0.54 (Unix) mod_python/3.2.8  
>> Python/2.4 PHP/5.0.4)
>> Does anyone else get this problem?
>> Could this be a potential bug, I'm not quite sure what would be  
>> causing it though, some kind of serialization problem?
>> Regards,
>> Dominic Orchard

View raw message