k4m4 / kickthemout

💤 Kick devices off your network by performing an ARP Spoof attack.
https://nikolaskama.me/kickthemoutproject
MIT License
2.53k stars 440 forks source link

'nmap program was not found in path' #495

Open Xboxps-Gamerz opened 3 years ago

Xboxps-Gamerz commented 3 years ago

nmap program was not found in path, pls help

LegolasVzla commented 3 years ago

I'm facing the same issue, even when I do with any problem:

import nmap
from nmap import *

This appaers to didn't work at all (link, link):

pip install python-nmap
Building wheels for collected packages: python-nmap
  Building wheel for python-nmap (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/<mypath>/env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8naw0thm/python-nmap_2b60da6aca2549669078f48b70fbe9f4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8naw0thm/python-nmap_2b60da6aca2549669078f48b70fbe9f4/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0i347onf
       cwd: /tmp/pip-install-8naw0thm/python-nmap_2b60da6aca2549669078f48b70fbe9f4/
  Complete output (2 lines):
  running bdist_wheel
  error: invalid truth value '3'
  ----------------------------------------
  ERROR: Failed building wheel for python-nmap
  Running setup.py clean for python-nmap
Failed to build python-nmap
Installing collected packages: python-nmap
    Running setup.py install for python-nmap ... done
Successfully installed python-nmap-0.6.4

So then, I tried with:

sudo apt-get install nmap

I verified with:

sudo -H pip install -r requirements.txt

I got:

Requirement already satisfied: scapy in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1)) (2.4.4)
Requirement already satisfied: python-nmap in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 2)) (0.6.4)
Requirement already satisfied: netifaces in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3)) (0.10.9)

But when I run:

sudo python3 kickthemout.py

I got:


ERROR: Requirements have not been satisfied properly. Please look at the README file for configuration instructions.

If you still cannot resolve this error, please submit an issue here:
    https://github.com/k4m4/kickthemout/issues

Details: No module named 'nmap'

I'm using Ubuntu 18.04.5 LTS and below requirements:

netifaces==0.10.9
pkg-resources==0.0.0
python-nmap==0.6.4
scapy==2.4.4