[mod_python] urlopen permissions

Graham Dumpleton grahamd at dscpl.com.au
Wed Jan 11 14:44:57 EST 2006

On 12/01/2006, at 12:24 AM, Jim Gallacher wrote:

> Emlyn Jones wrote:
>> Your right!
>> I thought I had solved that one by explicitly adding a user-agent  
>> header.
>> Turns out the urllib2 in python2.2 adds it's own anyway  
>> (mod_python used 2.2,
>> my shell gives me 2.4). I've upgraded mod_python to python2.4 and  
>> it works.
>> Now I get a seg fault from xml.dom.minidom.parsestring which again  
>> only
>> happens via mod_python not from the shell (although I guess that  
>> could just
>> be a fluke), grrr. More googling I guess!
> This sort of seg fault is a result of python and some other apache  
> module using different library versions of some component. libexpat  
> is often the culprit.

For debugging libexpat issues see:



More information about the Mod_python mailing list