What did work for me was using pypcap instead of libpcap. So uninstall the recommended "python-libcacp" and install "python-pypcap" instead.
[email protected] schrieb am Donnerstag, 2. Juli 2020 um 01:26:55 UTC+2: > Solved by uninstalling python3 and installing 2.7. > > > On Wednesday, July 1, 2020 at 12:06:44 PM UTC+12, Zsolt Máté wrote: >> >> Did anyone find a fix for this? >> I'm in the same boat. Fresh raspberry pi image, clean install. >> >> sudo PYTHONPATH=/usr/share/weewx python >> /usr/share/weewx/user/interceptor.py --device=observer --mode=sniff >> --iface=wlan0 --filter="src 10.3.141.115 and dst port 80" >> mapped packet: {'barometer': 29.986, 'windchill': 45.5, 'dewpoint': 39.7, >> 'pressure': 30.024, 'outHumidity': 77.0, 'UV': 1.0, 'radiation': 105.33, >> 'rain': None, 'dateTime': 1593561263, 'windDir': 244.0, 'outTemp': 46.6, >> 'windSpeed': 3.4, 'inHumidity': 44.0, 'inTemp': 69.6, 'windGust': 4.5, >> 'usUnits': 1} >> >> >> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL weewx.engine: **** >>>> Observer.Parser(), handler=Observer.Handler, **stn_dict) >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL weewx.engine: **** >>>> File "/usr/share/weewx/user/interceptor.py", line 427, in __init__ >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL weewx.engine: **** >>>> iface, pcap_filter, promiscuous) >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL weewx.engine: **** >>>> File "/usr/share/weewx/user/interceptor.py", line 469, in __init__ >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL weewx.engine: **** >>>> self.sniffer.open_live(iface, snaplen, pval, timeout_ms) >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL weewx.engine: **** >>>> File "/usr/lib/python2.7/dist-packages/pcap.py", line 108, in open_live >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL weewx.engine: **** >>>> def open_live(self, *args): return _pcap.pcapObject_open_live(self, >>>> *args) >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL weewx.engine: **** >>>> TypeError: in method 'pcapObject_open_live', argument 2 of type 'char *' >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL __main__: Unable to >>>> load driver: in method 'pcapObject_open_live', argument 2 of type 'char *' >>> >>> Jul 1 12:05:51 raspberrypi weewx[4198] CRITICAL __main__: **** >>>> Exiting... >>> >>> >>> -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/66fe009d-3b14-4c5e-9123-7bcd5ad090b6n%40googlegroups.com.
