My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 1: UnboundLocalError: local variable 'encryption' referenced before assignment
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by pologtij...@pologtijaune.pf, May 28, 2008
Simply execute the script on kismet logfiles
Here is the complete output:
Traceback (most recent call last):
  File "../pykismetearth/pykismetearth.py", line 327, in <module>
    kismetparser.parse(sys.argv[1]+".xml")
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 304, in end_element
    self._cont_handler.endElement(name)
  File "../pykismetearth/pykismetearth.py", line 296, in endElement
    </Folder></Folder>""" %
(ssid,lookat,self.net["first-seen"],self.net["last-seen"],self.net["bssid"],self.net["channel"],encryption,self.net["cloaked"],self.net["maxrate"],self.net["min-lat"],self.net["min-lon"],self.net["min-alt"],self.net["max-lat"],self.net["max-lon"],self.net["max-alt"],self.net["llc"],self.net["data"],self.net["crypt"],self.net["weak"],self.net["dupeiv"],self.net["total"],self.net["datasize"],ssid,lookat,icon,max_sig_lon,max_sig_lat,lookat,sig_str)

UnboundLocalError: local variable 'encryption' referenced before assignment

I'm using the svn version on linux Ubuntu-8.04
Comment 1 by limitlessouljah, Jun 17, 2008
I'm having the exact same problems with the svn version.  I'll try the original (rel
0.1) to see if I can replicate it.  

I'm using Ubuntu-8.04 with python 2.5 and pythonkismetearth rel 0.2
Comment 2 by syastrov, Aug 06, 2008
I fixed this problem. It occurred when APs had WEP and TKIP encryption, but not WPA.
Now it searches for TKIP and CCMP even without WPA.
pykismetearth.py
13.3 KB   Download
Comment 3 by cox.orange, Apr 02, 2009
Can you replace the fix with the link on the homepage? Cause I needed to look here to
get the script running.
Sign in to add a comment

Hosted by Google Code