Nmap Development mailing list archives

Re: Zenmap dies on MacOS X 10.5.1


From: MadHat Unspecific <madhat () unspecific com>
Date: Tue, 04 Dec 2007 09:45:03 -0600

David Fifield wrote:
On Mon, Dec 03, 2007 at 05:01:08PM -0600, Lee Heath wrote:
David Fifield wrote:
On Sun, Dec 02, 2007 at 08:35:00PM -0800, Jay Chandler wrote:
Built from source just now via RC3.

Am I missing something obvious, before I start tearing into the code?

bash-3.2# zenmap
Traceback (most recent call last):
  File "/usr/local/bin/zenmap", line 31, in <module>
    from umitCore.Name import APP_NAME, APP_DISPLAY_NAME
ImportError: No module named umitCore.Name
Hmm, somehow Python isn't finding the packages. What does

python -c 'import sys; print "\n".join(sys.path)'

print out? And where did "make install" put the Zenmap packages
(umitCore and umitGUI in RC3)?
$ python -c 'import sys; print "\n".join(sys.path)'

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload
/Library/Python/2.5/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC

Okay, and where are the files installed when you do "make install"? For
me it looks like

copying build/lib/zenmapCore/ScanProfileConf.py -> /usr/lib/python2.5/site-packages/zenmapCore
copying build/lib/zenmapCore/NmapCommand.py -> /usr/lib/python2.5/site-packages/zenmapCore
copying build/lib/zenmapCore/ServiceList.py -> /usr/lib/python2.5/site-packages/zenmapCore
copying build/lib/zenmapCore/DiffHtml.py -> /usr/lib/python2.5/site-packages/zenmapCore
copying build/lib/zenmapCore/__init__.py -> /usr/lib/python2.5/site-packages/zenmapCore

so they are installed in /usr/lib/python2.5/site-packages, which is also
in my sys.path. An import error would be caused if where they are
installed is not in sys.path.

If you find out that the installation directory is not in sys.path, can
you try setting the environment variable PYTHONPATH to the installation
directory? sys.path will include PYTHONPATH automatically. Something
like

      PYTHONPATH="/usr/local/python2.5/site-packages" zenmap

Also, can you run Zenmap from its source tree (./zenmap)?

using the svn...  svn up, make clean, make, etc...

$ PYTHONPATH="/usr/local/lib/python2.5/site-packages" zenmap
$

from the source dir.
$ ./zenmap
$

I'll try and work with it more this afternoon.





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


Current thread: