[GRASS-dev] Re: wxpython not working in GRASS 7 Mac OSX

Michael Barton Michael.Barton at asu.edu
Fri Jul 1 12:44:21 EDT 2011


I just put GRASS 7 onto my office desktop iMac. This is the version that I compiled yesterday. the iMac is not a development machine, but has the same new frameworks from William Kyngesburye's site. I get the same error when I try to go to 3D mode. It won't open the 3D control panel. Could it possibly be the new frameworks??? Cairo or FreeType?

Michael



Starting 3D view mode...                                                        
Traceback (most recent call last):
  File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
darwin10.8.0/etc/gui/wxpython/gui_modules/toolbars.py", line
325, in OnSelectTool

self.parent.AddToolbar("nviz")
  File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
darwin10.8.0/etc/gui/wxpython/gui_modules/mapdisp.py", line
473, in AddToolbar

self._addToolbarNviz()
  File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
darwin10.8.0/etc/gui/wxpython/gui_modules/mapdisp.py", line
398, in _addToolbarNviz

self._layerManager.AddNviz()
  File "/Applications/Grass/GRASS-7.0.app/Contents/MacOS/etc
/gui/wxpython/wxgui.py", line 279, in AddNviz

display = self.curr_page.maptree.GetMapDisplay())
  File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
darwin10.8.0/etc/gui/wxpython/gui_modules/nviz_tools.py",
line 140, in __init__

self.AddPage(page = self._createDataPage(),
  File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
darwin10.8.0/etc/gui/wxpython/gui_modules/nviz_tools.py",
line 382, in _createDataPage

style = fpb.FPB_DEFAULT_STYLE, extraStyle =
fpb.FPB_SINGLE_FOLD)
AttributeError
:
'module' object has no attribute 'FPB_DEFAULT_STYLE'

Michael
______________________________
C. Michael Barton 
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 	480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
www: 	http://csdc.asu.edu, http://shesc.asu.edu
		http://www.public.asu.edu/~cmbarton

On Jul 1, 2011, at 12:16 AM, Anna Kratochvílová wrote:

> Hello Helena and Michael,
> 
>> I just updated GRASS7 and wxpython and wxnviz works OK for me.
>> The only error that I get is this (when quitting wxpython)
>> 
>> pythonw2.6(41179,0xa05a8540) malloc: *** error for object 0x1d43edf0: pointer
>> being freed was not allocated
>> *** set a breakpoint in malloc_error_break to debug
> 
> I don't get this error and it's hard to tell where the problem is.
> 
> 
> 
>>> On Jun 30, 2011, at 4:06 PM, Michael Barton wrote: 
>>> I just compiled from the most recent svn version of trunk. When I go to
>> display something in the 3D mode (wxnviz), I get the following error. The map
>> does not display and the 3D control panel does not launch.
> 
> According to the traceback the problem occurs when switching to command output page. Do you have this problem in any other cases (eg. query raster map with Map layer tab selected)?
> 
> Anna
> 
> 
> 
> 
> 
> 
> 
> 
> 
>>> GRASS 7.0.svn (Spearfish60_test):~ > Traceback (most recent call last):
>>> File
>> "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin10.8.0/etc/gui/wxpython/gui_modules/toolbars.py",
>> line 325, in OnSelectTool
>>>   self.parent.AddToolbar("nviz")
>>> File
>> "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin10.8.0/etc/gui/wxpython/gui_modules/mapdisp.py",
>> line 473, in AddToolbar
>>>   self._addToolbarNviz()
>>> File
>> "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin10.8.0/etc/gui/wxpython/gui_modules/mapdisp.py",
>> line 386, in _addToolbarNviz
>>>   self._layerManager.goutput.WriteCmdLog(_("Starting 3D view mode..."))
>>> File
>> "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin10.8.0/etc/gui/wxpython/gui_modules/goutput.py",
>> line 417, in WriteCmdLog
>>>   self.WriteLog(line, style=self.cmd_output.StyleCommand, switchPage = True)
>>> File
>> "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin10.8.0/etc/gui/wxpython/gui_modules/goutput.py",
>> line 388, in WriteLog
>>>   self._notebook.SetSelectionByName('output')
>>> File
>> "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin10.8.0/etc/gui/wxpython/gui_modules/menuform.py",
>> line 2071, in SetSelectionByName
>>>   self.SetSelection(self.GetPageIndexByName(page))
>>> File
>> "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc/python/wx/lib/agw/flatnotebook.py",
>> line 4174, in SetSelection
>>>   self._mainSizer.Insert(0, self._windows[page], 1, wx.EXPAND)
>>> File
>> "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc/python/wx/_core.py", line
>> 12707, in Insert
>>>   return _core_.Sizer_Insert(*args, **kwargs)
>>> wx._core.PyAssertionError: C++ assertion "!sizer || m_containingSizer !=
>> sizer" failed at /BUILD/wxPython-src-2.8.12.0/src/common/wincmn.cpp(1884) in
>> SetContainingSizer(): Adding a window to the same sizer twice?
>>> GRASS 7.0.svn (Spearfish60_test):~ >
>>> 
>>> 
>>> Michael
>>> ____________________
>>> C. Michael Barton
>>> Director, Center for Social Dynamics & Complexity
>>> Professor of Anthropology, School of Human Evolution & Social Change
>>> Arizona State University
>>> 
>>> voice:  480-965-6262 (SHESC), 480-727-9746 (CSDC)
>>> fax:          480-965-7671 (SHESC),  480-727-0709 (CSDC)
>>> www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>> 
>> 
>> 



More information about the grass-dev mailing list