Nmap Development mailing list archives
Re: IOError: [Errno 2] No usable temporary directory found
From: Daniel Miller <bonsaiviking () gmail com>
Date: Wed, 02 Apr 2014 11:29:24 -0500
On 04/02/2014 10:51 AM, Jacek Wielemborek wrote:
02/04/2014 10:39:20 Daniel Miller <bonsaiviking () gmail com>:On 04/02/2014 07:56 AM, kouei35 () gmail com wrote:Version: 6.40 Traceback (most recent call last): File "zenmapGUI\ScanInterface.pyo", line 427, in start_scan_cb File "zenmapGUI\ScanInterface.pyo", line 507, in execute_command File "zenmapCore\NmapCommand.pyo", line 234, in __init__ File "tempfile.pyo", line 352, in mktemp File "tempfile.pyo", line 261, in gettempdir File "tempfile.pyo", line 208, in _get_default_tempdir IOError: [Errno 2] No usable temporary directory found in ['C:\\Users\\\x8dK\x89i\\AppData\\Local\\Temp', 'C:\\Users\\\x8dK\x89i\\AppData\\Local\\Temp', 'c:\\temp', 'c:\\tmp', '\\temp', '\\tmp', 'C:\\Program Files (x86)\\Nmap'] _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/Thank you for this crash report. Unfortunately, there is nothing that the developers can do to prevent this error, since you do not have a usable temporary directory in any of those locations. As a workaround, you can specify a location for output by adding "-oX \path\to\some\output.xml" to your nmap command line in the Zenmap interface. Dan _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/Perhaps we could try using some "Documents" directory?
Jacek,Zenmap doesn't set this search path, it's done by the Python tempfile module. I think the default is fairly sane, since it checks environment variables before trying static paths. See: https://docs.python.org/2/library/tempfile.html#tempfile.tempdir
Dan _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [no subject] kouei35 (Apr 02)
- Re: IOError: [Errno 2] No usable temporary directory found Daniel Miller (Apr 02)
- Re: IOError: [Errno 2] No usable temporary directory found Jacek Wielemborek (Apr 02)
- Re: IOError: [Errno 2] No usable temporary directory found Daniel Miller (Apr 02)
- Re: IOError: [Errno 2] No usable temporary directory found Jacek Wielemborek (Apr 02)
- Re: IOError: [Errno 2] No usable temporary directory found Daniel Miller (Apr 02)