need some help in reading error message

Allerdyce.John at gmail.com Allerdyce.John at gmail.com
Fri Mar 17 05:23:22 CET 2006


I need some help in reading error message: which line has problem? line
233? or line 37?

Thank you.

$ ./read2.py log.xml
Traceback (most recent call last):
  File "./read2.py", line 233, in ?
    parser.parse(open(inputFileName))
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py",
line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 311, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "./read2.py", line 37, in startElement
    openTable(self, "BlockGrouperExecuter input", self.type)
AttributeError: LogHandler instance has no attribute 'type'




More information about the Python-list mailing list