mod_python and xml.dom.minidom problem
Tom
tsidwick at remove.yahoo.co.uk
Tue Oct 15 15:25:29 EDT 2002
>
> That seems to be the problem: You somehow have an old pyexpat
> module. Please make sure you recompile pyexpat from the sources that
> are included in PyXML 0.8 (or whatever version you are using).
>
I reinstalled PyXML 0.8.1 and that upgraded the expat version to 1.95.5.
Now that my expat is correct, I now have the original error message that
I was trying to fix :
------------------------------------------------------------------------
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/minidom.py", line
1605, in parseString
return expatbuilder.parseString(string)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/expatbuilder.py",
line 943, in parseString
return builder.parseString(string)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/expatbuilder.py",
line 190, in parseString
self._setup_subset(string)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/expatbuilder.py",
line 200, in _setup_subset
if self.document.doctype:
AttributeError: 'NoneType' object has no attribute 'doctype'
-----------------------------------------------------------------------
I have just upgraded to Python 2.2.2 hoping that this might resolve
something but with no luck.
This error _only_ happens when I call parseString from within
apache-->mod_python, a parseString in the interpreter works correctly.
Thanks for all your help so far,
Tom
More information about the Python-list
mailing list