kismetwireless / python-kismet-external Goto Github PK
View Code? Open in Web Editor NEWKismet external tools Python API (mirrored from Kismet repos)
License: Other
Kismet external tools Python API (mirrored from Kismet repos)
License: Other
following the function parameter in pydoc and encoding event type as UTF-8 results in error in protobuf. passing string literal (believe it would default to unicode) does not cause error but handler function is never called (let me know if i am passing incorrect event type strings)
here is a traceback from python 3.9.5, kismetexternal 2020.07.01 (from pip).
Traceback (most recent call last): File "/usr/local/bin/kismet_status.py", line 60, in <module> ks = KismetStatus() File "/usr/local/bin/kismet_status.py", line 37, in __init__ self.kei.add_event_handler("GPS_LOCATION".encode("UTF-8"), self.gps_check) File "/usr/lib/python3.9/site-packages/kismetexternal/__init__.py", line 422, in add_event_handler regevt.event.extend(event) File "/usr/lib/python3.9/site-packages/protobuf-4.0.0rc2-py3.9.egg/google/protobuf/internal/containers.py", line 282, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "/usr/lib/python3.9/site-packages/protobuf-4.0.0rc2-py3.9.egg/google/protobuf/internal/containers.py", line 282, in <listcomp> new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "/usr/lib/python3.9/site-packages/protobuf-4.0.0rc2-py3.9.egg/google/protobuf/internal/type_checkers.py", line 215, in CheckValue raise TypeError(message) TypeError: 71 has type <class 'int'>, but expected one of: (<class 'bytes'>, <class 'str'>)
also getting error on a python 3.8.5, kismetexternal 2020.10.01 (from git).
Traceback (most recent call last): File "/usr/local/bin/kismet_status.py", line 60, in <module> ks = KismetStatus() File "/usr/local/bin/kismet_status.py", line 36, in __init__ self.kei.add_event_handler("STATISTICS".encode("UTF-8"), self.gps_check) File "/usr/local/lib/python3.8/dist-packages/kismetexternal-2020.10.1-py3.8.egg/kismetexternal/__init__.py", line 483, in add_event_handler regevt.event.extend(event) TypeError: 83 has type int, but expected one of: bytes, unicode
adding "*" event type works without error. so events can be filtered by the handler function but thought issue might be worth reporting anyway.
let me know if more info is needed. thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.