vanviegen / hue-thief

Factory reset Philips Hue bulbs using an EZSP-based Zigbee USB stick. After a reset, bulbs can easily join any type of compatible bridge.
GNU General Public License v3.0
178 stars 20 forks source link

pure_pcapy.PcapError: can dump only bytes #30

Closed evanpurkhiser closed 3 weeks ago

evanpurkhiser commented 1 month ago
Exception running handler
Traceback (most recent call last):
  File "/home/evan/hue-thief/.venv/lib/python3.12/site-packages/bellows/ezsp/__init__.py", line 494, in handle_callback
    handler(*args)
  File "/home/evan/hue-thief/hue-thief.py", line 53, in handle_incoming
    dump_pcap(data)
  File "/home/evan/hue-thief/hue-thief.py", line 45, in dump_pcap
    pcap.dump(hdr, frame)
  File "/home/evan/hue-thief/.venv/lib/python3.12/site-packages/pure_pcapy/__init__.py", line 259, in dump
    raise PcapError("can dump only bytes")
pure_pcapy.PcapError: can dump only bytes

Removing calls to dump_pcap allows for a steal to work.

Will contribute an upstream patch to fix if I can.