[GRASS-user] error message from GRASS 7 on mac os

William Kyngesburye woklist at kyngchaos.com
Sun Mar 18 10:02:04 EDT 2012


You don't, the developers fix it in the code (as Anna did) and it will be in the next release.  But, the CGContext errors should be harmless, and you can ignore them.

If you installed PIL, I don't know why cartographic composer preview is not working. Maybe you have installed other versions of Python (besides the system python) and GRASS is not using the right one?

On Mar 18, 2012, at 7:13 AM, <Raphael.Viscarra-Rossel at csiro.au> <Raphael.Viscarra-Rossel at csiro.au> wrote:

> Hello
> thank you for the responses and hints...however, I am confused....how do I use CallAfter?
> I did install PILL yes, but no fix. 
> R.
> 
> 
> Message: 1
> Date: Sat, 17 Mar 2012 15:23:45 +0100
> From: Anna Kratochv?lov? <kratochanna at gmail.com>
> Subject: Re: [GRASS-user] error message from GRASS 7 on mac os
> To: Markus Neteler <neteler at osgeo.org>
> Cc: grass-user at lists.osgeo.org, Raphael.Viscarra-Rossel at csiro.au
> Message-ID:
>        <CAE0EDEo4=t1QcO8STRgBquqp7r00L4e+yJ_r7qLNMAnzk5tp_A at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> On Sat, Mar 17, 2012 at 7:48 AM, Markus Neteler <neteler at osgeo.org> wrote:
>> On Sat, Mar 17, 2012 at 6:04 AM, ?<Raphael.Viscarra-Rossel at csiro.au> wrote:
>>> Hi,
>>> 
>>> sorry for the omission of a descriptive subject line in my previous message.
>> 
>> (Please also remove irrelevant pieces from the message, especially when
>> receiving in digest mode, thanks)
>> 
>>> I have recently upgraded to GRASS 7 (from 6.4) in my mac running snow leopard 10.6.8.
>>> All frameworks updated. ?The software starts fine...and so far appears to work OK but for some error messages in the terminal window:
>>> 
>>> Launching <wxpython> GUI in the background, please wait...
>>> GRASS 7.0.svn (proj1):~ > Fri Mar 16 08:48:08 raw.local pythonw2.6[618] <Error>: CGContextRestoreGState: invalid context 0x0
>>> Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] <Error>: CGContextRestoreGState: invalid context 0x0
>>> Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] <Error>: CGContextRestoreGState: invalid context 0x0
>>> Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] <Error>: CGContextRestoreGState: invalid context 0x0
>>> Fri Mar 16 08:48:08 raw2-bu.local pythonw2.6[618] <Error>: CGContextRestoreGState: invalid context 0x0
>>> 
>>> Also, previews in cartographic composer that need python imaging library is not working - related to the above?
>>> 
>>> I searched for other's experience with this and found some, but not solutions. Any help to fix this will be apprecaited.
>> 
>> @devs: I wonder if the hint in
>> http://trac.wxwidgets.org/ticket/4272
>> 
>> would help which suggests the usage of wx.CallAfter
>> (http://wiki.wxpython.org/CallAfter)
> 
> Hi,
> 
> I added CallAfter as suggested (r51089), let's see if it helps.
> 
> Anna

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable.  There is another theory which states that this has already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro




More information about the grass-user mailing list