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

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@gmail.com>
Subject: Re: [GRASS-user] error message from GRASS 7 on mac os
To: Markus Neteler <neteler@osgeo.org>
Cc: grass-user@lists.osgeo.org, Raphael.Viscarra-Rossel@csiro.au
Message-ID:
        <CAE0EDEo4=t1QcO8STRgBquqp7r00L4e+yJ_r7qLNMAnzk5tp_A@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sat, Mar 17, 2012 at 7:48 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Sat, Mar 17, 2012 at 6:04 AM, ?<Raphael.Viscarra-Rossel@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

Markus
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

------------------------------

Message: 2
Date: Sat, 17 Mar 2012 15:26:21 +0100
From: Anna Kratochv?lov? <kratochanna@gmail.com>
Subject: Re: [GRASS-user] error message from GRASS 7 on mac os
To: William Kyngesburye <kyngchaos@kyngchaos.com>
Cc: grass-user@lists.osgeo.org, "<Raphael.Viscarra-Rossel@csiro.au>"
        <Raphael.Viscarra-Rossel@csiro.au>
Message-ID:
        <CAE0EDEq7boPz5c2AcrL4L7Lm=ZLwYD_uUfMkZj=ZaoNbOHTJNw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

On Sat, Mar 17, 2012 at 3:06 PM, William Kyngesburye
<woklist@kyngchaos.com> wrote:

On Mar 17, 2012, at 12:04 AM, <Raphael.Viscarra-Rossel@csiro.au> <Raphael.Viscarra-Rossel@csiro.au> wrote:

Also, previews in cartographic composer that need python imaging library is not working - related to the above?

Did you install PIL? ?It's a separate package to install (I have one on my Python page). ?I didn't realize PIL was used in the GUI now. ?I'll add it to the list of requirements.

PIL is required because wxPython is not able to display PostScript
file which is the product of underlying module ps.map.

Anna

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

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know. ?Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either. ?Wretched, isn't it?

-HitchHiker's Guide to the Galaxy

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

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@csiro.au> <Raphael.Viscarra-Rossel@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@gmail.com>
Subject: Re: [GRASS-user] error message from GRASS 7 on mac os
To: Markus Neteler <neteler@osgeo.org>
Cc: grass-user@lists.osgeo.org, Raphael.Viscarra-Rossel@csiro.au
Message-ID:
       <CAE0EDEo4=t1QcO8STRgBquqp7r00L4e+yJ_r7qLNMAnzk5tp_A@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sat, Mar 17, 2012 at 7:48 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Sat, Mar 17, 2012 at 6:04 AM, ?<Raphael.Viscarra-Rossel@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