Skip to main content
Version: 1.2.0

Common Dependency Problems

Trap execution: ModuleNotFoundError: No module named 'scapy'#

17:08:38.544 [probe-loop-1] INFO - Bluff []: 4 lines written to STDERR:17:08:38.544 [probe-loop-1] INFO -        STDERR: Traceback (most recent call last):17:08:38.544 [probe-loop-1] INFO -        STDERR:   File "/tmp/nzyme_ProbeRequest", line 4, in <module>17:08:38.544 [probe-loop-1] INFO -        STDERR:     from scapy.all import *17:08:38.544 [probe-loop-1] INFO -        STDERR: ModuleNotFoundError: No module named 'scapy'17:08:38.544 [probe-loop-1] ERROR - Could not execute bluff []$BluffExecutionException: STDERR is not empty.    at ~[classes/:?]    at ~[classes/:?]    at ~[classes/:?]    at ~[classes/:?]    at$loop$0( ~[classes/:?]    at java.util.concurrent.Executors$ [?:?]    at [?:?]    at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]    at java.util.concurrent.ThreadPoolExecutor$ [?:?]    at [?:?]17:08:38.544 [probe-loop-1] INFO - Attempted command invocation: [/usr/bin/python3.8 /tmp/nzyme_ProbeRequest --interface wlx00c0ca971216 --ssid CenturyLink8683 --mac E0:33:8E:36:AC:FA]

The message ModuleNotFoundError: No module named 'scapy' tells us that the Python scapy library (used to inject WiFi frames) is not installed. You can install it using most Python package managers like, for example, pip:

$ pip3 install scapy
Collecting scapy  Downloading scapy-2.4.3.tar.gz (905 kB)     |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 905 kB 1.6 MB/s Building wheels for collected packages: scapy  Building wheel for scapy ( ... done  Created wheel for scapy: filename=scapy-2.4.3-py2.py3-none-any.whl size=1043876 sha256=c3028d1bcedfba4fb5c5ed77649aafde66de382a4d74385c63b3f410bb2e4d4d  Stored in directory: /home/tun3/.cache/pip/wheels/ba/ea/a0/1bdfccbb1d149c27478f8707dbbf4a6d95bb0d480651f323a7Successfully built scapyInstalling collected packages: scapySuccessfully installed scapy-2.4.3

The exact pip command can differ on your distribution, often it is based on the Python version you are running.