Code Monkey home page Code Monkey logo

python-kismet-external's People

Contributors

dragorn avatar hobobandy avatar kismetwireless avatar maage avatar nullvibes avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-kismet-external's Issues

add_event_handler causes errors with utf-8 encoded specific event type

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.