[Zope] Zope 2.6.1 and xml.sax.expatparser problems

Dieter Maurer dieter@handshake.de
Mon, 10 Feb 2003 20:27:51 +0100


Tom Emerson wrote at 2003-2-10 00:10 -0500:
 > I have a (Python) external method that imports a module Foo which in turn
 > imports a module containing
 > 
 > from xml.dom.minidom import parseString
 > 
 > This results in the following traceback:
 > ...
 >   Module xml.sax, line 101, in _create_parser
 > AttributeError: 'xml.sax.expatreader' module has no attribute 'create_parser'
Either something is wrong with your "expatreader.py" (mine
contains a "create_parser") or something went wrong when
it has been imported for the first time.

Check your "expatreader.py". It should have a "def create_parser"
near the end.

If it has, activate Zope logging (--> doc/LOGGING.txt) and
see whether the logfile tells you about a problem.


Dieter