vendredi 18 avril 2014

virtualenv - appel python-nmap PortScanner(), nmap introuvable - Stack Overflow


in my virtualenv I installed python-nmap and nmap is installed (OS X). But if I call mmap like (virtualenv activated...):


import sys
sys.path.append('/usr/local/bin')

import nmap
nm = nmap.PortScanner()

I get the following error:



raise PortScannerError('nmap program was not found in path')


nmap.nmap.PortScannerError: 'nmap program was not found in path'



Is there still another way to enter path to nmap?


Cheers and thx.



in my virtualenv I installed python-nmap and nmap is installed (OS X). But if I call mmap like (virtualenv activated...):


import sys
sys.path.append('/usr/local/bin')

import nmap
nm = nmap.PortScanner()

I get the following error:



raise PortScannerError('nmap program was not found in path')


nmap.nmap.PortScannerError: 'nmap program was not found in path'



Is there still another way to enter path to nmap?


Cheers and thx.


0 commentaires:

Enregistrer un commentaire