Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Windows Zenmap Save Topology To PNG Error
From: David Fifield <david () bamsoftware com>
Date: Sat, 12 Feb 2011 19:31:02 -0800

On Sat, Feb 12, 2011 at 09:05:21PM -0500, Alex Kah wrote:
 

Hello.

Nmap Version: 5.51
OS: Windows 7 Ultimate 64-bit, Windows 7 Ultimate 32-bit

I ran into an issue earlier attempting to save a scan's topology to PNG via
Zenmap. I attempted to accomplish this on two different computers one of
which was running Windows 7 Ultimate 64-bit and the other running Windows 7
Ultimate 32-bit. There error is detailed below. 

##############
##############

Error Saving Snapshot: Surface.write_to_png takes one argument which must be
a filename (str), file object, or a file-like object which has a "write"
method (like StringIO)

##############
##############

The above is a pop up error in Windows and the below is from the
zenmap.exe.log file. 

#############################
#############################

C:\Program Files (x86)\Nmap\py2exe\library.zip\zenmapGUI\MainWindow.py:482:
GtkWarning: Could not find the icon '"%1"'. The 'hicolor' theme

was not found either, perhaps you need to install it.
You can get a copy from:

                http://icon-theme.freedesktop.org/releases

#############################
#############################

I attempted to roll back to Nmap 5.50 without any luck and then tried Nmap
5.36-TEST4 both of which failed. When using Nmap 5.21 I am able to save
topology maps to PNG without issue. 

Thanks for this report. I can reproduce it on Windows, but not on
GNU/Linux. It seems to be due to the save file name dialog returning a
unicode object instead of a str. It's a fixed bug in pycairo, which
unfortunately is not fixed in their latest release 1.8.10.
https://bugs.freedesktop.org/show_bug.cgi?id=29582

I just committed a workaround (r22250) to encode the unicode object into
a str using the filesystem encoding, which is used in other parts of
Zenmap.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault