<[EMAIL PROTECTED]> wrote:

> 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'

Line 37: specifically, self is an instance of LogHandler, and it does
not have any attribute named "type".


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to