python - PortScannerError 'nmap program not found in path' (but it is in path) -
i getting error nmap not found in path (using python-nmap). however, in path.
nmap works when execute script in python, when use pyinstaller freeze code .exe file, error when try run code:
traceback (most recent call last): file "utils\map_network.py", line 7, in scan_network file "site-packages\nmap\nmap.py", line 131, in __init__ portscannererror: 'nmap program not found in path. path : c:\\program files (x86)\\intel\\icls client\\; c:\\program files\\intel\\icls client\\; c:\\programdata\\oracle\\java\\javapath; c:\\windows\\system32;c:\\windows; c:\\windows\\system32\\wbem; c:\\windows\\system32\\windowspowershell\\v1.0\\; c:\\python27\\; c:\\python27\\scripts\\; c:\\program files (x86)\\intel\\intel(r) management engine components\\dal; c:\\program files\\intel\\intel(r) management engine components\\dal; c:\\program files (x86)\\intel\\intel(r) management engine components\\ipt; c:\\program files\\intel\\intel(r) management engine components\\ipt; c:\\program files (x86)\\nmap; c:\\users\\sillico\\appdata\\local\\microsoft\\windowsapps; c:\\users\\sillico\\appdata\\local\\programs\\git\\cmd'
as can see, have nmap in path. thoughts?
i managed around error upgrading python 3.5. using python 2.7.
Comments
Post a Comment