| Posted by: | alejo |
| Subject: | python sax parser to convert kismet logs to google earth kml |
| Date: | 14:24:40 11/05/2008 |
hola, not sure if you can help me figure out why your code fails on my system, this is the error.
python pykismetearth.py Kismet-May-10-2008-3
Traceback (most recent call last):
File "pykismetearth.py", line 327, in ?
kismetparser.parse(sys.argv[1]+".xml")
File "/opt/local/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/opt/local/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/opt/local/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/opt/local/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 315, in end_element
self._cont_handler.endElement(name)
File "pykismetearth.py", line 253, in endElement
self.output+="""
UnboundLocalError: local variable 'encryption' referenced before assignment
tx,
/a
Reply to this message