Skip to main content
Version: Next

Common Dependency Problems

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

17:08:38.544 [probe-loop-1] INFO  horse.wtf.nzyme.dot11.deception.bluffs.Bluff - Bluff [horse.wtf.nzyme.dot11.deception.bluffs.ProbeRequest]: 4 lines written to STDERR:17:08:38.544 [probe-loop-1] INFO  horse.wtf.nzyme.dot11.deception.bluffs.Bluff -        STDERR: Traceback (most recent call last):17:08:38.544 [probe-loop-1] INFO  horse.wtf.nzyme.dot11.deception.bluffs.Bluff -        STDERR:   File "/tmp/nzyme_ProbeRequest", line 4, in <module>17:08:38.544 [probe-loop-1] INFO  horse.wtf.nzyme.dot11.deception.bluffs.Bluff -        STDERR:     from scapy.all import *17:08:38.544 [probe-loop-1] INFO  horse.wtf.nzyme.dot11.deception.bluffs.Bluff -        STDERR: ModuleNotFoundError: No module named 'scapy'17:08:38.544 [probe-loop-1] ERROR horse.wtf.nzyme.dot11.deception.bluffs.Bluff - Could not execute bluff [horse.wtf.nzyme.dot11.deception.bluffs.ProbeRequest].horse.wtf.nzyme.dot11.deception.bluffs.Bluff$BluffExecutionException: STDERR is not empty.    at horse.wtf.nzyme.dot11.deception.bluffs.Bluff.execute(Bluff.java:99) ~[classes/:?]    at horse.wtf.nzyme.dot11.deception.bluffs.Bluff.executeFailFast(Bluff.java:110) ~[classes/:?]    at horse.wtf.nzyme.dot11.deception.traps.ProbeRequestTrap.doRun(ProbeRequestTrap.java:53) ~[classes/:?]    at horse.wtf.nzyme.dot11.deception.traps.Trap.run(Trap.java:58) ~[classes/:?]    at horse.wtf.nzyme.dot11.probes.Dot11SenderProbe.lambda$loop$0(Dot11SenderProbe.java:120) ~[classes/:?]    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]    at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]    at java.lang.Thread.run(Thread.java:834) [?:?]17:08:38.544 [probe-loop-1] INFO  horse.wtf.nzyme.dot11.deception.bluffs.Bluff - 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 (setup.py) ... 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.