<div dir="ltr"><div><div>Compilation of g.gu.* modules fails and the start with "menutree" messages fails because compilation of "toolboxes" failed. I guess (and we perhaps already talked about it) that both are caused by some bad environment settings. And you are right, I also though that some Martin's commit to makefiles (I don't know the number) fixed that. I don't know about any other change.<br>

<br></div>I'm not sure if you can make your compilation environment somehow more friendly to this. But I guess this would help.<br><br></div><div>One possible workaround, for g.gui.* modules is to import wx and related things after parser() function was called (and not in the standard import-code flow). This will not import the wx during compilation, so it will hide the problem.<br>

<br></div><div>For the toolboxes, there is the ticket <a href="http://trac.osgeo.org/grass/ticket/2142">http://trac.osgeo.org/grass/ticket/2142</a> which contains instructions what needs to be done and some suggestions how to do it. But it is not always clear and some things (to do them right) require even conceptual changes in GUI and I don't have time to do it now, sorry.<br>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 3:24 PM, Michael Barton <span dir="ltr"><<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
I just tried to compile GRASS 7.0 beta 3 for release and it appears to be broken. It worked fine 15 July. Here are the problems. 
<div><br>
</div>
<div>1st, there is a set of GUI errors that pop up from make. These were present awhile back but ‘bogus’ in that they did not seem to affect running (though I suspected that they were related to other issues that caused compiling problem). These went away and
 all was well by the mid-July build. But they are back again. I hoped that they were again ‘bogus’ but the GUI won’t launch now. </div>
<div><br>
</div>
<div>Here are the errors on launch:</div>
<div><br>
</div>
<div>======================= launch errors ================</div>
<div><br>
</div>
<div>GRASS 7.0.0svn (nc_spm_08):~ > Traceback (most recent call last):<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/gui/wxpython/wxgui.py", line 138, in <module><br>
    sys.exit(main())<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/gui/wxpython/wxgui.py", line 131, in main<br>
    app = GMApp(workspaceFile)<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/gui/wxpython/wxgui.py", line 45, in __init__<br>
    wx.App.__init__(self, False)<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/python/wx/_core.py", line 7981, in __init__<br>
    self._BootstrapApp()<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/python/wx/_core.py", line 7555, in _BootstrapApp<br>
    return _core_.PyApp__BootstrapApp(*args, **kwargs)<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/gui/wxpython/wxgui.py", line 79, in OnInit<br>
    workspace = self.workspaceFile)<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/frame.py", line 118, in __init__<br>
    self._menuTreeBuilder = LayerManagerMenuData()<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/menudata.py", line 40, in __init__<br>
    MenuTreeModelBuilder.__init__(self, filename, expandAddons=expandAddons)<br>
  File "/Users/cmbarton/grass_source/grass7_rb/macosx/dist/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/menutree.py", line 64, in __init__<br>
    xmlTree = etree.parse(filename)<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse<br>
    tree.parse(source, parser)<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse<br>
    self._root = parser.close()<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close<br>
    self._raiseerror(v)<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror<br>
    raise err<br>
xml.etree.ElementTree.ParseError: no element found: line 1, column 0<br>
GRASS 7.0.0svn (nc_spm_08):~ > </div>
<div><br>
</div>
<div>==============================================================</div>
<div><br>
</div>
<div>This looks like the same error that I’d had to deal with earlier, but which appeared fixed by the mid-July build. I have a workaround but it is a PITA. </div>
<div><br>
</div>
<div>The make errors are here. As before they all are related to a new windowing environment:</div>
<div><br>
</div>
<div>================== list of modules with make errors ===========</div>
<div><br>
</div>
<div>Errors in:<br>
Errors in:<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/animation<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/mapswipe<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/gmodeler<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/rlisetup<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/psmap<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/dbmgr<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/vdigit<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/iclass<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/gcp<br>
/Users/cmbarton/grass_source/grass7_rb/gui/wxpython/timeline<br>
<br>
====================================================<br>
<br>
</div>
<div>Here is an example of the error in one of the above modules:</div>
<div><br>
</div>
 cd /Users/cmbarton/grass_source/grass7_rb/gui/wxpython/animation<br>
cmb-imaccsdc:animation cmbarton$ make<br>
/Applications/Xcode.app/Contents/Developer/usr/bin/make /Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/docs/html/g.gui.animation.html<br>
GISRC=/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/demolocation/.grassrc70 GISBASE=/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0 PATH="/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/bin:/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/bin:/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/scripts:$PATH"
 PYTHONPATH="/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/etc/python:/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/gui/wxpython:$PYTHONPATH" DYLD_LIBRARY_PATH="/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/bin:/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/scripts:/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/lib:/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/lib:" LC_ALL=C
 /Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/scripts/g.gui.animation --html-description < /dev/null | grep -v '</body>\|</html>' > g.gui.animation.tmp.html<br>
Traceback (most recent call last):<br>
  File "/Users/cmbarton/grass_source/grass7_rb/dist.x86_64-apple-darwin13.3.0/scripts/g.gui.animation", line 55, in <module><br>
    import wx<br>
  File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module><br>
    from wx._core import *<br>
  File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module><br>
    import _core_<br>
ImportError: /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)<br>
make[1]: *** [g.gui.animation.tmp.html] Error 1<br>
rm g.gui.animation.tmp.html<br>
make: *** [guiscript] Error 2<br>
cmb-imaccsdc:animation cmbarton$ 
<div><br>
</div>
<div>==================================================</div>
<div><br>
</div>
<div>In fact I DO have this set up to compile and run Python in 32 bit mode. I’ve been doing this for a couple years while waiting for wxPython 64 bit to stabilize and mature (not there yet as of 2.9). </div>
<div><br>
</div>
<div>This all worked a couple weeks ago, which makes this frustrating.</div>
<div><br>
</div>
<div>I can try the new wxPython 3.0 but I have no idea whether it works with the current GRASS GUI.</div>
<div><br>
</div>
<div>Michael<br>
<br>
<div> <br>
<div>
<div style="text-align:start;text-indent:0px;word-wrap:break-word">
<div style="text-align:start;text-indent:0px;word-wrap:break-word">
<div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word">
<span style="border-collapse:separate;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">


____________________</div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant:normal;line-height:normal">
<font face="Helvetica" size="3">C. Michael Barton</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant:normal;line-height:normal">
<font face="Helvetica" size="3">Director, Center for Social Dynamics & Complexity </font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant:normal;line-height:normal">
<font face="Helvetica" size="3">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">
<font face="Helvetica" size="3">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant:normal;line-height:normal">
<font face="Helvetica" size="3">Arizona State University</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal">


<br>
</div>
<font style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" face="Helvetica" size="3"><font>voice:  </font><font><a href="tel:480-965-6262" value="+14809656262" target="_blank">480-965-6262</a> (SHESC), <a href="tel:480-965-8130" value="+14809658130" target="_blank">480-965-8130</a>/727-9746 (CSDC)</font><br>


<font>fax: <a href="tel:480-965-7671" value="+14809657671" target="_blank">480-965-7671</a> (SHESC),  <a href="tel:480-727-0709" value="+14807270709" target="_blank">480-727-0709</a> (CSDC)</font><br>
</font>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant:normal;line-height:normal">
<font face="Helvetica" size="3">www: <a href="http://www.public.asu.edu/~cmbarton" target="_blank">
http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu" target="_blank">http://csdc.asu.edu</a></font></div>
<br>
</div>
<br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
<br>
</div>
<br>
</div>
<br>
<br>
</div>
<br>
</div>
</div>
</div>

<br>_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br></blockquote></div><br></div>