Nmap Development mailing list archives
Re: Zenmap build error
From: David Fifield <david () bamsoftware com>
Date: Sat, 6 Sep 2008 03:12:03 -0600
On Sat, Sep 06, 2008 at 01:46:39AM -0700, Fyodor wrote:
The new Nmap release built fine on Linux and Windows, but when I tested the Windows installer there was a problem. When I try to run the Zenmap.exe, it reports that "The specified resouce type cannot be found in the image file. Could not locate script resource". So I looked at the Windows package build logs ('make' in mswin32/) and see this: Creating dist and dist\share directories... Copying GTK's share to dist directory... Compiling using py2exe... Traceback (most recent call last): File "setup.py", line 511, in <module> setup(**setup_args) File "C:\Python25\lib\distutils\core.py", line 151, in setup dist.run_commands() File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands self.run_command(cmd) File "C:\Python25\lib\distutils\dist.py", line 994, in run_command cmd_obj.run() File "C:\Python25\lib\site-packages\py2exe\build_exe.py", line 223, in run self._run() File "C:\Python25\lib\site-packages\py2exe\build_exe.py", line 290, in _run self.create_binaries(py_files, extensions, dlls) File "C:\Python25\lib\site-packages\py2exe\build_exe.py", line 552, in create_binaries arcname, target.script) File "C:\Python25\lib\site-packages\py2exe\build_exe.py", line 785, in build_executable script_bytes = si + code_bytes + '\000\000' UnicodeDecodeError: 'ascii' codec can't decode byte 0xaa in position 23: ordinal not in range(128) Copying some more GTK files to dist directory... Removing the build directory... Done! cp -R ../zenmap/dist/* ../zenmap/COPYING* ../zenmap/README nmap-4.69BETA1/zenmap cp nsis/AddToPath.nsh nsis/Nmap.nsi nsis/shortcuts.ini nsis/final.ini nmap-4.69BETA1 This py2exe crash is a likely culprit. Anyone have ideas for fixing this? I verified that if I downgrade to -r8514 (e.g. 4.68 release), Nmap builds a working installer and does not give that Traceback.
Gah, this appears to be related to my change that made some file names Unicode strings instead of plain byte strings. That was an attempt to fix the bug in http://seclists.org/nmap-dev/2008/q3/0482.html. jah reported a similar crash in http://seclists.org/nmap-dev/2008/q3/0497.html. I thought we had it fixed in http://seclists.org/nmap-dev/2008/q3/0537.html. Please try r10003. That coerces a Unicode string to a plain byte string in an instance we thought was unnecessary before. (By the way if anyone wonders what the distinction is between a Unicode string and a plain byte string, there's a good page on Unicode in Python at http://kofoto.rosdahl.net/wiki/UnicodeInPython.) David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Zenmap build error Fyodor (Sep 06)
- Re: Zenmap build error David Fifield (Sep 06)