Where does zenmap.conf live?

Charles Darwin macports.users at gmail.com
Wed Nov 12 13:34:25 PST 2008


On Nov 10, 2008, at 6:01 AM, Ryan Schmidt wrote:

> On Nov 10, 2008, at 04:54, Charles Darwin wrote:
>
>> On 9-Nov-08, at 11:42 PM, Bryan Blackburn wrote:
>>
>>> On Sun, Nov 09, 2008 at 07:16:17PM -0500, Charles Darwin said:
>>> [...]
>>>> $ zenmap
>>>>  File "/Volumes/neo/opt/bin/zenmap", line 102, in <module>
>>>>    import zenmapGUI.App
>>>>  File "/Volumes/neo/opt/lib/python2.5/site-packages/zenmapGUI/ 
>>>> App.py",
>>>> line 34, in <module>
>>>>    import gtk
>>>> Error in sys.excepthook:
>>>> Traceback (most recent call last):
>>>>  File "/Volumes/neo/opt/bin/zenmap", line 47, in excepthook
>>>>    import gtk
>>>> ImportError: No module named gtk
>>>
>>> So here zenmap can't load the gtk module, but
>>> [...]
>>>>
>>>> $ /Volumes/neo/opt/bin/python2.5 -c 'import gtk' # this fires up  
>>>> Xquatz
>>>
>>> this works...odd.  Do you have the python_select port installed,  
>>> and used it
>>> to select 2.5 as the default?
>>
>> No. I mean:
>> $ which -a python_select
>> $
>
> I think Bryan is recommending that you install and use the  
> python_select port. From the python25 port's post-activate message:
>
>
>> To fully complete your installation and make python 2.5 the  
>> default, please run
>>
>> 	sudo port install python_select
>> 	sudo python_select python25
>
>
>

This machine is 10.4 and still doesn't work

$ uname -r && zenmap
8.11.0
   File "/opt/local/bin/zenmap", line 102, in <module>
     import zenmapGUI.App
   File "/opt/local/lib/python2.5/site-packages/zenmapGUI/App.py",  
line 34, in <module>
     import gtk
   File "/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/ 
__init__.py", line 84, in <module>
     _init()
   File "/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/ 
__init__.py", line 72, in _init
     warnings.warn(str(e), _gtk.Warning)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/warnings.py", line 62, in warn
     globals)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/warnings.py", line 102, in warn_explicit
     raise message
Error in sys.excepthook:
Traceback (most recent call last):
   File "/opt/local/bin/zenmap", line 47, in excepthook
     import gtk
   File "/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/ 
__init__.py", line 84, in <module>
     _init()
   File "/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/ 
__init__.py", line 72, in _init
     warnings.warn(str(e), _gtk.Warning)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/warnings.py", line 62, in warn
     globals)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/warnings.py", line 102, in warn_explicit
     raise message
gtk.GtkWarning: could not open display

Original exception was:
Traceback (most recent call last):
   File "/opt/local/bin/zenmap", line 102, in <module>
     import zenmapGUI.App
   File "/opt/local/lib/python2.5/site-packages/zenmapGUI/App.py",  
line 34, in <module>
     import gtk
   File "/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/ 
__init__.py", line 84, in <module>
     _init()
   File "/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/ 
__init__.py", line 72, in _init
     warnings.warn(str(e), _gtk.Warning)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/warnings.py", line 62, in warn
     globals)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/warnings.py", line 102, in warn_explicit
     raise message
gtk.GtkWarning: could not open display

Charles


More information about the macports-users mailing list