Nmap Development mailing list archives

Re: zenmap:179: DeprecationWarning: BaseException.message...........


From: Daniel Miller <bonsaiviking () gmail com>
Date: Thu, 19 Jun 2014 16:08:08 -0500

Salam,

The RPMs were built for RHEL 5-based distros, which use Python 2.4. As a
temporary workaround, you could probably run this command (after
reinstalling the RPMs):

# mv /usr/lib/python2.4/site-packages/{radialnet,zenmapCore,zenmapGUI}
/usr/lib/python2.6/site-packages/

Thank you for the bug report, though; it's possible that in the future, the
Zenmap RPMs can simply target any Python 2 installation. We will
investigate this for future releases.

Dan


On Thu, Jun 19, 2014 at 11:11 AM, Salam Y. ELIAS <salamlinux () free fr> wrote:

Hi,
I have a Fedora box, installed the components as indicated on nmap site
as follows

rpm -vhU http://nmap.org/dist/nmap-6.46-1.x86_64.rpm
rpm -vhU http://nmap.org/dist/ncat-6.46-1.x86_64.rpm
rpm -vhU http://nmap.org/dist/nping-0.6.46-1.x86_64.rpm
rpm -vhU http://nmap.org/dist/zenmap-6.46-1.noarch.rpm

nmap works fine from the command line, however, when I type zenmap on
the command line I get the following error:
***************************************
                [root@salamlinux /]# zenmap
                /usr/bin/zenmap:179: DeprecationWarning:
BaseException.message                                 has been
deprecated as of Python 2.6
  I checked in these directories:""" % repr(e.message)
                Could not import the zenmapGUI.App module: 'No module
named zenmapGUI.App'.
I checked in these directories:
    /usr/bin
    /usr/lib64/python26.zip
    /usr/lib64/python2.6
    /usr/lib64/python2.6/plat-linux2
    /usr/lib64/python2.6/lib-tk
    /usr/lib64/python2.6/lib-old
    /usr/lib64/python2.6/lib-dynload
    /usr/lib64/python2.6/site-packages
    /usr/lib64/python2.6/site-packages/PIL
    /usr/lib64/python2.6/site-packages/gst-0.10
    /usr/lib64/python2.6/site-packages/gtk-2.0
    /usr/lib64/python2.6/site-packages/webkit-1.0
    /usr/lib/python2.6/site-packages
    /usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info
                If you installed Zenmap in another directory, you may
have to add the modules directory to the PYTHONPATH environment
variable.
[root@salamlinux /]# echo $PYTHONPATH
***********************************************

I did a reseasrch on google and your knowledge base, I fouynd a similar
thread but with a Mac OS system. One user suggested to delete zenmapCore
and zenmapgui I visited the usr/lib, I have 2 python directories 2.4 and
2.6, I found both directories in the 2.4 which I deleted rerun the
zenmap in the command line but it did not help.

What is needed to be done?

Thanks in advance for your help

Salam


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

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


Current thread: