Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Zenmap dies on MacOS X 10.5.1
From: David Fifield <david () bamsoftware com>
Date: Mon, 3 Dec 2007 16:39:24 -0700

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)'


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

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

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

David Fifield

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

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