Nmap Development mailing list archives

Re: Problem running Zenmap on OS X 10.10


From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 15 Jun 2015 10:53:04 -0500

Jacob,

Thanks for this bug report! This error comes from a Python binary that was
not built with zlib (zip) support. I am fairly certain that the Python we
bundle *does* have this support, so maybe our app is using your system's
Python instead of the bundled one. Can you provide the output of these
commands?:

which python
python -c 'import zlib; print zlib.__version__'

I will work on figuring out how to ensure that the Zenmap app uses the
bundled Python instead of the system Python.

Dan

On Mon, Jun 8, 2015 at 9:49 AM, John Doe <genericname009 () gmail com> wrote:

Hey guys,

Not sure if this is the proper channel to reach out on for potential bugs,
but figured I could give it a shot. Please disregard and accept my
apologies if this is not the right forum.

I'm trying to get up and running with the Zenmap GUI on Mac OS X 10.10 but
am receiving a weird error on startup.

-------

Jacob@Jacobs-MBP-5:~$ ./Applications/Zenmap.app/Contents/MacOS/Zenmap

Jun  8 10:01:27 Jacobs-MBP-5.fios-router.home zenmap_wrapper.py[38832]
<Notice>: Traceback (most recent call last):

Jun  8 10:01:27 Jacobs-MBP-5.fios-router.home zenmap_wrapper.py[38832]
<Notice>:   File
"/Users/david/macports-10.8/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app/apptemplate/lib/site.py",
line 22, in <module>

Jun  8 10:01:27 Jacobs-MBP-5.fios-router.home zenmap_wrapper.py[38832]
<Notice>: zipimport.ZipImportError: can't decompress data; zlib not
available

----------

After a little bit of sleuthing I think that the problem might be stemming
from the Info.plist file configuration of the bundled Python version.

----------

Jacob@Jacobs-MBP-5:/Applications/Zenmap.app/Contents$ pwd

/Applications/Zenmap.app/Contents

Jacob@Jacobs-MBP-5:/Applications/Zenmap.app/Contents$ ls

Frameworks Info.plist MacOS      PkgInfo    Resources

LINE 85ish of Info.plist

<key>PythonExecutable</key>

 85         <string>
/Users/david/macports-10.8/Library/Frameworks/Python.framewo
rk/Versions/2.7/Resources/Python.app/Contents/MacOS/Python</string>

 86         <key>PythonLongVersion</key>

 87         <string>2.7.10 (default, May 27 2015, 20:19:16)

 88 [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)]</string>

 89         <key>PythonShortVersion</key>

 90         <string>2.7</string>

----

I tried to change line 85 to read

"<string>
@executable_path/../Frameworks/Python.framework/Versions/2.7/Python
<string>

and also

        <key>PythonExecutable</key>

        <string>/Users/Jacob/anaconda/bin/python<string>

But that did not seem to fix the issue -- still no GUI launch.


Any help would be greatly appreciated.

Thanks,

Jacob





_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: