[GRASS-user] Compiling under OSX Mountain Lion

Anna Kratochvílová kratochanna at gmail.com
Mon Nov 26 14:18:44 PST 2012


On Mon, Nov 26, 2012 at 10:11 PM, Markus Neteler <neteler at osgeo.org> wrote:
> Hi Carlos,
>
> On Mon, Nov 26, 2012 at 6:24 PM, Carlos Grohmann
> <carlos.grohmann at gmail.com> wrote:
>> Hi all,
>>
>> I'm trying to compile GRASS 7.0 svn on OSX Mountain Lion (10.8) here.
>>
>> Compilation seems to go OK, but when running the .app, the wxpython GUI
>> crashes (I'm using wxpython 2.9.4 cocoa):
>>
>>
>> Welcome to GRASS 7.0.svn
>> ...
>>
>> Launching <wxpython> GUI in the background, please wait...
>> GRASS 7.0.svn (newLocation):~ >
>> /Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/wxgui.py:54:
>> wxPyDeprecationWarning: Call to deprecated item 'InitAllImageHandlers'.
>>   wx.InitAllImageHandlers()
>> /Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gui_core/goutput.py:230:
>> wxPyDeprecationWarning: Call to deprecated item 'SetVirtualSizeHints'.
>>   outputSizer.SetVirtualSizeHints(self.panelOutput)
>> Traceback (most recent call last):
>>   File
>> "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/mapdisp/mapwindow.py",
>> line 351, in OnPaint
>>     self.PrepareDC(dc)
>> AttributeError: 'BufferedWindow' object has no attribute 'PrepareDC'
>
> please update from SVN just to exclude that you fell into the middle of the
> wxGUI refactoring. If it persists, maybe Anna or Vaclav can help.

I'm afraid it is a more serious problem related to the newer version
of wxpython. In this particular case, you can try to remove the line
with PrepareDC  (it doesn't do anything important I think) and see if
any other problems appear. I was not aware of API changes between 2.8
and 2.9 and I have no idea what else can appear to be a problem.

Anna
>
> Best
> Markus
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list