zenmap launch error

View: New views
9 Messages — Rating Filter:   Alert me  

zenmap launch error

by sara fink :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I installed today nmap 4.75. Zenmap throws this error:
# nmapfe
  File "/usr/local/bin/nmapfe", line 101, in <module>
    zenmapGUI.App.run()
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/local/bin/nmapfe", line 52, in excepthook
    from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
ImportError: No module named higwidgets.higdialogs

Original exception was:
Traceback (most recent call last):
  File "/usr/local/bin/nmapfe", line 101, in <module>
    zenmapGUI.App.run()
AttributeError: 'module' object has no attribute 'run'


Someone knows how to solve it. using linux gentoo.

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

Re: zenmap launch error

by David Fifield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Sep 09, 2008 at 10:55:02PM +0300, sara fink wrote:

> I installed today nmap 4.75. Zenmap throws this error:
> # nmapfe
>   File "/usr/local/bin/nmapfe", line 101, in <module>
>     zenmapGUI.App.run()
> Error in sys.excepthook:
> Traceback (most recent call last):
>   File "/usr/local/bin/nmapfe", line 52, in excepthook
>     from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
> ImportError: No module named higwidgets.higdialogs
>
> Original exception was:
> Traceback (most recent call last):
>   File "/usr/local/bin/nmapfe", line 101, in <module>
>     zenmapGUI.App.run()
> AttributeError: 'module' object has no attribute 'run'
>
> Someone knows how to solve it. using linux gentoo.

It looks like you are using the /usr/local/bin/zenmap script from 4.75
but the modules from an earlier version. higwidgets was made a
subpackage of zenmapGUI in 4.75, and run became a function in the App
module rather than a method in an App.App class.

If you installed in /usr/local it's possible Python is still using old
Zenmap modules in /usr. Try deleting the zenmapGUI and zenmapCore
directories from /usr/lib/python2.5/site-packages or install Zenmap in
the prefix /usr, where you might have installed it before.

David Fifield

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

Another Zenmap launch error

by mcalmus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am also getting an error when trying to launch Zenmap. This same
error happened with 4.68. It seems to be a problem with PyGTK, but I
really don't know what to do to fix it. Any help would be greatly
appreciated.

   File "/usr/local/bin/zenmap", line 98, in <module>
     import zenmapGUI.App
   File "/usr/local/lib/python2.5/site-packages/zenmapGUI/App.py",
line 34, in <module>
     import gtk
   File "/Library/Python/2.5/site-packages/gtk-2.0/gtk/__init__.py",
line 38, in <module>
     import gobject as _gobject
   File
"/Library/Python/2.5/site-packages/gtk-2.0/gobject/__init__.py", line
33, in <module>
     from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
   File "/Library/Python/2.5/site-packages/gtk-2.0/glib/__init__.py",
line 30, in <module>
     from _glib import *
Error in sys.excepthook:
Traceback (most recent call last):
   File "/usr/local/bin/zenmap", line 47, in excepthook
     import gtk
   File "/Library/Python/2.5/site-packages/gtk-2.0/gtk/__init__.py",
line 38, in <module>
     import gobject as _gobject
   File
"/Library/Python/2.5/site-packages/gtk-2.0/gobject/__init__.py", line
33, in <module>
     from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
   File "/Library/Python/2.5/site-packages/gtk-2.0/glib/__init__.py",
line 30, in <module>
     from _glib import *
ImportError:
dlopen(/Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so, 2):
Symbol not found: _PyGSource_Type
   Referenced from: /Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so
   Expected in: flat namespace


Original exception was:
Traceback (most recent call last):
   File "/usr/local/bin/zenmap", line 98, in <module>
     import zenmapGUI.App
   File "/usr/local/lib/python2.5/site-packages/zenmapGUI/App.py",
line 34, in <module>
     import gtk
   File "/Library/Python/2.5/site-packages/gtk-2.0/gtk/__init__.py",
line 38, in <module>
     import gobject as _gobject
   File
"/Library/Python/2.5/site-packages/gtk-2.0/gobject/__init__.py", line
33, in <module>
     from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
   File "/Library/Python/2.5/site-packages/gtk-2.0/glib/__init__.py",
line 30, in <module>
     from _glib import *
ImportError:
dlopen(/Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so, 2):
Symbol not found: _PyGSource_Type
   Referenced from: /Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so
   Expected in: flat namespace


--
Mike

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

Re: zenmap launch error

by sara fink :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David

Thanks for your reply. yes, it was installed in /usr/local/bin.  I deleted
zenmapGUI and zenmapCore and now it launches fine.

What bothers me, is that it shouldn't be there in my opinion. Maybe I am
wrong. In which directory you installed the new version?

Also, I extracted the new version in /usr/portage/distfiles wwhich shouldn't
be there. Only the bz2 should appear there.




On Thu, Sep 11, 2008 at 1:41 AM, David Fifield <david@...>wrote:

> On Tue, Sep 09, 2008 at 10:55:02PM +0300, sara fink wrote:
> > I installed today nmap 4.75. Zenmap throws this error:
> > # nmapfe
> >   File "/usr/local/bin/nmapfe", line 101, in <module>
> >     zenmapGUI.App.run()
> > Error in sys.excepthook:
> > Traceback (most recent call last):
> >   File "/usr/local/bin/nmapfe", line 52, in excepthook
> >     from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
> > ImportError: No module named higwidgets.higdialogs
> >
> > Original exception was:
> > Traceback (most recent call last):
> >   File "/usr/local/bin/nmapfe", line 101, in <module>
> >     zenmapGUI.App.run()
> > AttributeError: 'module' object has no attribute 'run'
> >
> > Someone knows how to solve it. using linux gentoo.
>
> It looks like you are using the /usr/local/bin/zenmap script from 4.75
> but the modules from an earlier version. higwidgets was made a
> subpackage of zenmapGUI in 4.75, and run became a function in the App
> module rather than a method in an App.App class.
>
> If you installed in /usr/local it's possible Python is still using old
> Zenmap modules in /usr. Try deleting the zenmapGUI and zenmapCore
> directories from /usr/lib/python2.5/site-packages or install Zenmap in
> the prefix /usr, where you might have installed it before.
>
> David Fifield
>
> _______________________________________________
> Sent through the nmap-dev mailing list
> http://cgi.insecure.org/mailman/listinfo/nmap-dev
> Archived at http://SecLists.Org
>

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

Re: zenmap launch error

by David Fifield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Sep 12, 2008 at 02:56:42AM +0300, sara fink wrote:
> Thanks for your reply. yes, it was installed in /usr/local/bin.  I deleted
> zenmapGUI and zenmapCore and now it launches fine.
>
> What bothers me, is that it shouldn't be there in my opinion. Maybe I am
> wrong. In which directory you installed the new version?

It installs wherever you tell it to install using the --prefix option to
configure. By default that's in /usr/local. If you had a previous
version installed in /usr and you install a new version in /usr/local,
then you will have two copies of the Zenmap libraries installed.
Unfortunately Python will prefer the old libraries in /usr, which would
be incompatible with the new executable in /usr/local.

I admit it can be confusing. The easy solution is to have only one copy
of the program installed at a time. You can uninstall a copy of Zenmap
from /usr with the command "/usr/bin/uninstall_zenmap". If you have more
than one copy of Zenmap installed you will probably have to set the
PYTHONPATH environment variable or something similar to ensure that the
correct libraries are loaded.

> Also, I extracted the new version in /usr/portage/distfiles wwhich shouldn't
> be there. Only the bz2 should appear there.

I don't understand. /usr/portage/distfiles shouldn't be there? The
extracted package shouldn't be in /usr/portage/distfiles?

David Fifield

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

Re: Another Zenmap launch error

by David Fifield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 10, 2008 at 07:29:16PM -0400, Mike Calmus wrote:

> I am also getting an error when trying to launch Zenmap. This same error
> happened with 4.68. It seems to be a problem with PyGTK, but I really
> don't know what to do to fix it. Any help would be greatly appreciated.
>
>   File "/usr/local/bin/zenmap", line 98, in <module>
>     import zenmapGUI.App
>   File "/usr/local/lib/python2.5/site-packages/zenmapGUI/App.py", line
> 34, in <module>
>     import gtk
>   File "/Library/Python/2.5/site-packages/gtk-2.0/gtk/__init__.py", line
> 38, in <module>
>     import gobject as _gobject
>   File "/Library/Python/2.5/site-packages/gtk-2.0/gobject/__init__.py",
> line 33, in <module>
>     from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
>   File "/Library/Python/2.5/site-packages/gtk-2.0/glib/__init__.py",  
> line 30, in <module>
>     from _glib import *
> Error in sys.excepthook:
> Traceback (most recent call last):
>   File "/usr/local/bin/zenmap", line 47, in excepthook
>     import gtk
>   File "/Library/Python/2.5/site-packages/gtk-2.0/gtk/__init__.py", line
> 38, in <module>
>     import gobject as _gobject
>   File "/Library/Python/2.5/site-packages/gtk-2.0/gobject/__init__.py",
> line 33, in <module>
>     from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
>   File "/Library/Python/2.5/site-packages/gtk-2.0/glib/__init__.py",  
> line 30, in <module>
>     from _glib import *
> ImportError:  
> dlopen(/Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so, 2):  
> Symbol not found: _PyGSource_Type
>   Referenced from: /Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so
>   Expected in: flat namespace

You appear to be running on Mac OS X. How did you install PyGTK? You
might try reinstalling it. Your Python and PyGTK versions might be out
of sync.

What happens if you open an interactive Python session (just type
"python" in the terminal) and then execute the statement "import gtk"?
Do you get the same error?

The executable Mac packages are built using a PyGTK provided by
MacPorts. I haven't tried building with a PyGTK from any other source.

David Fifield

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

Parent Message unknown Re: Another Zenmap launch error

by Luis A. Bastiao Silva :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mike,

On Thu, Sep 11, 2008 at 12:29 AM, Mike Calmus <mcalmus@...> wrote:

> I am also getting an error when trying to launch Zenmap. This same error
> happened with 4.68. It seems to be a problem with PyGTK, but I really don't
> know what to do to fix it. Any help would be greatly appreciated.


I think you installed pygtk from native python in mac os. There is a port of
GTK+ for Mac OS X that you can found at [1]. But it have some several bugs
and I didn't recommend you use it. All of packages should be compiled and
take some hours (may be with some errors).
As David said try use pygtk from MacPorts. It will use X11 to run Zenmap.


>
>
>  File "/usr/local/bin/zenmap", line 98, in <module>
>    import zenmapGUI.App
>  File "/usr/local/lib/python2.5/site-packages/zenmapGUI/App.py", line 34,
> in <module>
>    import gtk
>  File "/Library/Python/2.5/site-packages/gtk-2.0/gtk/__init__.py", line 38,
> in <module>
>    import gobject as _gobject
>  File "/Library/Python/2.5/site-packages/gtk-2.0/gobject/__init__.py", line
> 33, in <module>
>    from glib import spawn_async, idle_add, timeout_add,
> timeout_add_seconds, \
>  File "/Library/Python/2.5/site-packages/gtk-2.0/glib/__init__.py", line
> 30, in <module>
>    from _glib import *
> Error in sys.excepthook:
> Traceback (most recent call last):
>  File "/usr/local/bin/zenmap", line 47, in excepthook
>    import gtk
>  File "/Library/Python/2.5/site-packages/gtk-2.0/gtk/__init__.py", line 38,
> in <module>
>    import gobject as _gobject
>  File "/Library/Python/2.5/site-packages/gtk-2.0/gobject/__init__.py", line
> 33, in <module>
>    from glib import spawn_async, idle_add, timeout_add,
> timeout_add_seconds, \
>  File "/Library/Python/2.5/site-packages/gtk-2.0/glib/__init__.py", line
> 30, in <module>
>    from _glib import *
> ImportError:
> dlopen(/Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so, 2): Symbol
> not found: _PyGSource_Type
>  Referenced from: /Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so
>  Expected in: flat namespace
>
>
> Original exception was:
> Traceback (most recent call last):
>  File "/usr/local/bin/zenmap", line 98, in <module>
>    import zenmapGUI.App
>  File "/usr/local/lib/python2.5/site-packages/zenmapGUI/App.py", line 34,
> in <module>
>    import gtk
>  File "/Library/Python/2.5/site-packages/gtk-2.0/gtk/__init__.py", line 38,
> in <module>
>    import gobject as _gobject
>  File "/Library/Python/2.5/site-packages/gtk-2.0/gobject/__init__.py", line
> 33, in <module>
>    from glib import spawn_async, idle_add, timeout_add,
> timeout_add_seconds, \
>  File "/Library/Python/2.5/site-packages/gtk-2.0/glib/__init__.py", line
> 30, in <module>
>    from _glib import *
> ImportError:
> dlopen(/Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so, 2): Symbol
> not found: _PyGSource_Type
>  Referenced from: /Library/Python/2.5/site-packages/gtk-2.0/glib/_glib.so
>  Expected in: flat namespace
>
>
> --
> Mike
>
> _______________________________________________
> Sent through the nmap-dev mailing list
> http://cgi.insecure.org/mailman/listinfo/nmap-dev
> Archived at http://SecLists.Org


I hope it helps.


[1] - http://developer.imendio.com/projects/gtk-macosx



Cheers!
--
Luis A. Bastiao Silva

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

Re: zenmap launch error

by sara fink :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

See my reply in the text.



>
> It installs wherever you tell it to install using the --prefix option to
> configure. By default that's in /usr/local. If you had a previous
> version installed in /usr and you install a new version in /usr/local,
> then you will have two copies of the Zenmap libraries installed.
> Unfortunately Python will prefer the old libraries in /usr, which would
> be incompatible with the new executable in /usr/local.


Yes.

>
>
> I admit it can be confusing. The easy solution is to have only one copy
> of the program installed at a time. You can uninstall a copy of Zenmap
> from /usr with the command "/usr/bin/uninstall_zenmap". If you have more
> than one copy of Zenmap installed you will probably have to set the
> PYTHONPATH environment variable or something similar to ensure that the
> correct libraries are loaded.


It is confusing.  Usually in gentoo  in /usr/local  various ebuilds enter
there. I have only few specific programs there.  Most of the programs appear
in /usr

>
>
> > Also, I extracted the new version in /usr/portage/distfiles wwhich
> shouldn't
> > be there. Only the bz2 should appear there.
>
> I don't understand. /usr/portage/distfiles shouldn't be there? The
> extracted package shouldn't be in /usr/portage/distfiles?


In /usr/portage/distfiles  only the  tar.gz files appear there.  When you
use emerge package the package is installed in /usr /var /opt all the
directories where it should appear. For nmap I put the .gz file in distfiles
and extracted compiled there. So I ended up with nmap-4.75 in
/usr/portage/distfiles/nmap-4.75.

Will install now 4.76 and see how it goes.

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

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

Re: zenmap launch error

by sara fink :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I installed nmap 4.76. Gentoo installed it on /usr/bin/nmap. When I tried to
run it, it complained that there is no such command. So I copied from
/usr/bin to /usr/local/bin. That solved the problem.

On a side note, few days ago I tried to run nmap -p22,49  -T4
xxx.xxx.0-255.0-255

It ran for a while and then I received segmentation fault.  Anyone had such
a problem from command line?

Another question, is it possible to run 2 nmap scans in parallel without
problems of lock or others on large networks?



On Tue, Sep 16, 2008 at 2:58 PM, sara fink <sara.fink@...> wrote:

> See my reply in the text.
>
>
>
>>
>> It installs wherever you tell it to install using the --prefix option to
>> configure. By default that's in /usr/local. If you had a previous
>> version installed in /usr and you install a new version in /usr/local,
>> then you will have two copies of the Zenmap libraries installed.
>> Unfortunately Python will prefer the old libraries in /usr, which would
>> be incompatible with the new executable in /usr/local.
>
>
> Yes.
>
>>
>>
>> I admit it can be confusing. The easy solution is to have only one copy
>> of the program installed at a time. You can uninstall a copy of Zenmap
>> from /usr with the command "/usr/bin/uninstall_zenmap". If you have more
>> than one copy of Zenmap installed you will probably have to set the
>> PYTHONPATH environment variable or something similar to ensure that the
>> correct libraries are loaded.
>
>
> It is confusing.  Usually in gentoo  in /usr/local  various ebuilds enter
> there. I have only few specific programs there.  Most of the programs appear
> in /usr
>
>>
>>
>> > Also, I extracted the new version in /usr/portage/distfiles wwhich
>> shouldn't
>> > be there. Only the bz2 should appear there.
>>
>> I don't understand. /usr/portage/distfiles shouldn't be there? The
>> extracted package shouldn't be in /usr/portage/distfiles?
>
>
> In /usr/portage/distfiles  only the  tar.gz files appear there.  When you
> use emerge package the package is installed in /usr /var /opt all the
> directories where it should appear. For nmap I put the .gz file in distfiles
> and extracted compiled there. So I ended up with nmap-4.75 in
> /usr/portage/distfiles/nmap-4.75.
>
> Will install now 4.76 and see how it goes.
>
>>
>>
>> David Fifield
>>
>> _______________________________________________
>> Sent through the nmap-dev mailing list
>> http://cgi.insecure.org/mailman/listinfo/nmap-dev
>> Archived at http://SecLists.Org
>>
>
>

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
LightInTheBox - Buy quality products at wholesale price!