Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Development: Re: PyGObject Zenmap problems

Re: PyGObject Zenmap problems

From: Daniel Johnson <daniel_at_daniel-johnson.org>
Date: Sun, 9 Dec 2007 20:12:40 -0500

On Dec 9, 2007, at 7:11 PM, David Fifield wrote:

> I'm forwarding this to the list. We figured out why Zenmap wasn't
> using
> the correct Python (leftover build files), but now there's a strange
> error about _PyGBoxed_Type. Does anyone know what this is about?
>
> David Fifield
>
>>> On Sat, Dec 08, 2007 at 05:14:00PM -0800, Jay Chandler wrote:
>>>> David Fifield wrote:
>>>>> What's the first line of /usr/local/bin/zenmap? Is it
>>>>>
>>>>> #!/opt/local/bin/python2.5
>>>>>
>>>>> or something else?
>>>>
>>>> #!/System/Library/Frameworks/Python.framework/Versions/2.5/
>>>> Resources/Python.app/Contents/MacOS/Python
>>>
>>> Thanks for your patience. Please try a "make distclean" and then a
>>> clean
>>> build from scratch ("./configure PYTHON=/opt/local/bin/python2.5"
>>> etc.).
>>> The former command will, in particular, run "setup.py clean --all"
>>> and
>>> delete all the "built" Python files. I think that the files in your
>>> build subdirectory are not being replaced because distutils
>>> considers
>>> them up to date.
>>
>> You're correct.
>> singularity:nmap jay$ head /usr/local/bin/zenmap
>> #!/opt/local/bin/python2.5
>
> Here's the new error.
>
>> singularity:nmap jay$ zenmap
>> Error in sys.excepthook:
>> Traceback (most recent call last):
>> File "/usr/local/bin/zenmap", line 59, in excepthook
>> import gtk
>> File
>> "/opt/local/var/macports/build/
>> _opt_local_var_macports_sources_rsync
>> .macports.org_release_ports_python_py25-gtk/work/destroot/opt/local/
>> lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py",
>> line 38, in <module>
>> File
>> "/opt/local/var/macports/build/
>> _opt_local_var_macports_sources_rsync
>> .macports.org_release_ports_python_py25-gobject/work/destroot/opt/
>> local/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py",
>> line 30, in <module>
>> File
>> "/opt/local/var/macports/build/
>> _opt_local_var_macports_sources_rsync
>> .macports.org_release_ports_python_py25-gobject/work/destroot/opt/
>> local/lib/python2.5/site-packages/gtk-2.0/gobject/constants.py",
>> line 22, in <module>
>> ImportError:
>> dlopen(/opt/local/lib/python2.5/site-packages/gtk-2.0/gobject/
>> _gobject.so,
>> 2): Symbol not found: _PyGBoxed_Type
>> Referenced from:
>> /opt/local/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.so
>> Expected in: flat namespace
>>
>>
>> Original exception was:
>> Traceback (most recent call last):
>> File "/usr/local/bin/zenmap", line 150, in <module>
>> app.run()
>> File "/usr/local/lib/python2.5/site-packages/zenmapGUI/App.py", line
>> 96, in run
>> self.__run_gui()
>> File "/usr/local/lib/python2.5/site-packages/zenmapGUI/App.py", line
>> 100, in __run_gui
>> import gtk
>> File
>> "/opt/local/var/macports/build/
>> _opt_local_var_macports_sources_rsync
>> .macports.org_release_ports_python_py25-gtk/work/destroot/opt/local/
>> lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py",
>> line 38, in <module>
>> File
>> "/opt/local/var/macports/build/
>> _opt_local_var_macports_sources_rsync
>> .macports.org_release_ports_python_py25-gobject/work/destroot/opt/
>> local/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py",
>> line 30, in <module>
>> File
>> "/opt/local/var/macports/build/
>> _opt_local_var_macports_sources_rsync
>> .macports.org_release_ports_python_py25-gobject/work/destroot/opt/
>> local/lib/python2.5/site-packages/gtk-2.0/gobject/constants.py",
>> line 22, in <module>
>> ImportError:
>> dlopen(/opt/local/lib/python2.5/site-packages/gtk-2.0/gobject/
>> _gobject.so,
>> 2): Symbol not found: _PyGBoxed_Type
>> Referenced from:
>> /opt/local/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.so
>> Expected in: flat namespace
>>
>> singularity:nmap jay$

I don't known what's causing it, but I just got the same error. I
installed GTK, PyGTK, etc. from http://developer.imendio.com/projects/gtk-macosx
  in the hope of producing a standalone zenmap .app. When run, zenmap
gives me the same error. However, zenmap built against Fink's PyGTK
and friends works fine. Perhaps it's because Fink's GTK-related
packages are out of date and the newer ones are problematic? The
package versions I'm using that work are:
glib2 2.12.12
gtk+2 2.6.10
pygtk2-gtk-py25 2.6.3
pygobject2-py25 2.12.3

Daniel

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

  • application/pkcs7-signature attachment: smime_p7s
Received on Dec 09 2007
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos