[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-dev
Subject:    Re: [GRASS-dev] "Max OS 10.8: g.gui and DISPLAY"
From:       Vaclav Petras <wenzeslaus () gmail ! com>
Date:       2013-08-29 0:27:25
Message-ID: CABo5uVvmLXtdiKccPQNtSmfkNX0Xkeqf+2TaMg6n-VOx=q8zLQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks Glynn for checking this.

On Wed, Aug 28, 2013 at 4:47 PM, Glynn Clements <glynn@gclements.plus.com>wrote:

>
> Vaclav Petras wrote:
>
> > Anna and I are trying to compile GRASS 7 on Mac OS 10.8. Although there
> > were some problems we were able to compile it.
> >
> > But than we were not able to start GRASS because initialization ended
> with
> > the error message about missing X Window system. This comes from
> > init/grass.py where it checks for DISPLAY variable. The variable is not
> > set. Do we need it to test it for GRASS7 and Mac OS? Setting to any value
> > (e.g., export DISPLAY=0) solved the problem.
>
> That's a bug in grass.py:
>
>     if os.getenv('DISPLAY') or windows:
>
> That should probably be:
>
>     if os.getenv('DISPLAY') or windows or macosx:
>
> Done in r57536.

https://trac.osgeo.org/grass/changeset/57536



> > The second error appears when we try to launch GUI from command line
> using
> > g.gui (i.e., the error does not happen during GRASS launch):
> >
> >  wxgui.py: posix_spawn: /Users/...wxpython/wxgui.py2.7: No such file or
> > directory
> >
> > Changing the second parameter of G_spawn_ex to a 'python' instead of a
> > 'python source' solved the problem:
>
> That looks fine. When executing a script from the shell, argv[0] is
> the path to the interpreter rather than that of the script.


Done in r57537.

https://trac.osgeo.org/grass/changeset/57537

>
> --
> Glynn Clements <glynn@gclements.plus.com>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>Thanks Glynn for checking this.</div><div \
class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 28, 2013 at 4:47 PM, \
Glynn Clements <span dir="ltr">&lt;<a href="mailto:glynn@gclements.plus.com" \
target="_blank">glynn@gclements.plus.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div \
class="im"><br> Vaclav Petras wrote:<br>
<br>
&gt; Anna and I are trying to compile GRASS 7 on Mac OS 10.8. Although there<br>
&gt; were some problems we were able to compile it.<br>
&gt;<br>
&gt; But than we were not able to start GRASS because initialization ended with<br>
&gt; the error message about missing X Window system. This comes from<br>
&gt; init/grass.py where it checks for DISPLAY variable. The variable is not<br>
&gt; set. Do we need it to test it for GRASS7 and Mac OS? Setting to any value<br>
&gt; (e.g., export DISPLAY=0) solved the problem.<br>
<br>
</div>That&#39;s a bug in grass.py:<br>
<br>
      if os.getenv(&#39;DISPLAY&#39;) or windows:<br>
<br>
That should probably be:<br>
<br>
      if os.getenv(&#39;DISPLAY&#39;) or windows or macosx:<br>
<div class="im"><br></div></blockquote><div>Done in \
r57536.</div><div><br></div><div><a \
href="https://trac.osgeo.org/grass/changeset/57536">https://trac.osgeo.org/grass/changeset/57536</a><br><div><br></div></div><div> \
</div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div \
class="im"> &gt; The second error appears when we try to launch GUI from command line \
using<br> &gt; g.gui (i.e., the error does not happen during GRASS launch):<br>
&gt;<br>
&gt;   wxgui.py: posix_spawn: /Users/...wxpython/wxgui.py2.7: No such file or<br>
&gt; directory<br>
&gt;<br>
&gt; Changing the second parameter of G_spawn_ex to a &#39;python&#39; instead of \
a<br> &gt; &#39;python source&#39; solved the problem:<br>
<br>
</div>That looks fine. When executing a script from the shell, argv[0] is<br>
the path to the interpreter rather than that of the \
script.</blockquote><div><br></div><div>Done in r57537.</div><div><br></div><div><a \
href="https://trac.osgeo.org/grass/changeset/57537">https://trac.osgeo.org/grass/changeset/57537</a><br>


</div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span \
                class=""><font color="#888888"><br>
--<br>
Glynn Clements &lt;<a \
href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;<br> \
</font></span></blockquote></div><br></div></div>



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic