On Tuesday, November 6, 2018 at 9:59:37 PM UTC-5, Tolip Wen wrote: > > > Output from nekkid run of interceptor.py > ----------------------------------------------------- > root@H370:/home/weewx# PYTHONPATH=bin python bin/user/interceptor.py > --device=observer --mode=sniff --iface=tap1 --filter="src 10.10.100.3 and > dst port 8099" > Traceback (most recent call last): > File "bin/user/interceptor.py", line 2124, in <module> > address=options.addr, port=options.port) > File "bin/user/interceptor.py", line 932, in __init__ > Observer.Parser(), handler=Observer.Handler, **stn_dict) > File "bin/user/interceptor.py", line 278, in __init__ > iface, pcap_filter, promiscuous) > File "bin/user/interceptor.py", line 307, in __init__ > self.packet_sniffer = pcap.pcapObject() > AttributeError: 'module' object has no attribute 'pcapObject' >
apparently there are two different pcap implementations for python. https://stackoverflow.com/questions/2501138/module-object-has-no-attribute-pcapobject they are pypcap: https://pypi.org/project/pypcap/ and pylibpcap: https://sourceforge.net/projects/pylibpcap/ one of them has a pcapObject attribute, the other does not. they both import as pcap. this came up at least once before, so if you want to hack the interceptor code a bit to make it work with either pcap implementation, a merge request would be quite welcome :) btw, there is a weewx-sdr driver that will take the output from rtl_433. works great with those $20 usb sdr dongles. m -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
