sudo PYTHONPATH=/usr/share/weewx python interceptor.py --device=wu-client
--mode=sniff --iface=eth0 --filter="src 192.168.50.9 and dst port 80"
Traceback (most recent call last):
File "/usr/share/weewx/user/interceptor.py", line 2671, in <module>
device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
File "/usr/share/weewx/user/interceptor.py", line 728, in __init__
super(WUClient, self).__init__(
File "/usr/share/weewx/user/interceptor.py", line 427, in __init__
self._server = Consumer.SniffServer(
File "/usr/share/weewx/user/interceptor.py", line 466, in __init__
import pcap
ModuleNotFoundError: No module named 'pcap'
On Monday, April 24, 2023 at 10:36:39 AM UTC-7 vince wrote:
> On Monday, April 24, 2023 at 9:34:36 AM UTC-7 Michael wrote:
>
> I am trying to install WeeWx on my Raspi with Interceptor with a WU-Client
> coming from 192.168.50.9. So far I am ending up with the following error
> message when trying to run the driver directly and no results in WeeWx.
>
> Activateing packet capture failed. Error returned by packet capture
> library was b'socket: Operation not permitted'
>
>
> [...omitting waaaaay too many lines.....]
>
> Your last command was:
>
> weewx@raspberrypi:/usr/share/weewx/user $ PYTHONPATH=/usr/share/weewx
> python interceptor.py --device=wu-client --mode=sniff --iface=eth0
> --filter="src 192.168.50.9 and dst port 80"
>
> You need to do that as root. Preface that last command with sudo so it
> runs as root.
>
>
--
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/180d6033-4c8d-46b3-99d5-57c48702c834n%40googlegroups.com.