matthewwall / weewx-interceptor

weewx driver that intercepts web traffic from internet 'bridge' devices such as Acurite Access, ObserverIP, OS LW30x, LaCross GW1000U, FineOffset GW1000
GNU General Public License v3.0
105 stars 44 forks source link

Fresh install of weewx, and weewx-interceptor not finding pcap #88

Open kq6up opened 3 years ago

kq6up commented 3 years ago

This was sort of solved by "pip3 install pypcap" instead of installing with apt or pip. It is still failing tho.

@@@@@@@@

I am just freshly installed Raspberry Pi OS. v10, and added weewx and whew-interceptor. I also installed the requisite pcap package with:

sudo apt-get install python-libpcap

weewx does not seem to be able to find pcap. Also, I tried installing via pip3, but that failed. See below.

PYTHONPATH=/usr/share/weewx python3.7 /usr/share/weewx/user/interceptor.py --device=wu-client --mode=sniff --iface=wlan0 --filter="src 10.3.141.99 and dst port 80" Traceback (most recent call last): File "/usr/share/weewx/user/interceptor.py", line 2664, in address=options.addr, port=options.port) File "/usr/share/weewx/user/interceptor.py", line 728, in init WUClient.Parser(), handler=WUClient.Handler, **stn_dict) File "/usr/share/weewx/user/interceptor.py", line 427, in init iface, pcap_filter, promiscuous) File "/usr/share/weewx/user/interceptor.py", line 465, in init import pcap ModuleNotFoundError: No module named 'pcap'

@@@@@@@@@@@@@

So tried to also install with pip3, but failed with this error. I am stuck, and don't know where to go from here. pip3 install pypcap Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pypcap Downloading

https://files.pythonhosted.org/packages/12/71/a689ca8c6ef4570e105efdc6b46d4ac16cdef7af36a8fbfaff0f6fa2b754/pypcap-1.2.3.tar.gz (136kB) 100% |████████████████████████████████| 143kB 1.4MB/s Complete output from command python setup.py egg_info: pcap.h not found

---------------------------------------- Command "python setup.py 

egg_info" failed with error code 1 in /tmp/pip-install-yuo7efq5/pypcap/

Thanks, Chris KQ6UP

KC1ELF commented 2 years ago

Same issue. Any resolution?