<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">After some tedious detective work, the startup error in wxGUI is caused by the following line in vdigit.py<div><br></div><div>import _grass6_wxvdigit</div><div><br></div><div>This calls <span class="Apple-style-span" style="font-family: 'Lucida Grande'; ">_grass6_wxvdigit.so</span></div><div><font class="Apple-style-span" face="'Lucida Grande'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Grande'">So back to my first guess, vdigit is compiling with a different version of Python than the rest of GRASS.</font></div><div><font class="Apple-style-span" face="'Lucida Grande'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Grande'">Michael</font></div><div><br></div><div><br><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; 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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On Sep 7, 2008, at 10:04 PM, Michael Barton wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>I disabled the vdigit makefile so that it raised and error and didn't compile. I still get the same error:</div><div><br></div><div><div>GRASS 6.4.svn (Spearfish60_test):~ > Fatal Python error: Interpreter not initialized (version mismatch?)</div><div><br></div><div>Any idea what is causing this if I have not changed Python or wxPython on my Mac since this last compiled with no problem (25 August). </div><div><br></div><div>Michael</div></div><div><br></div><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>From: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Michael Barton <<a href="mailto:michael.barton@asu.edu">michael.barton@asu.edu</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Date: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">September 7, 2008 8:47:57 PM GMT-07:00</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>To: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Landa Martin <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>>, grass developers <<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>>, Kyngesburye William <<a href="mailto:kyngchaos@kyngchaos.com">kyngchaos@kyngchaos.com</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Subject: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>issues with compiling and running GRASS on Mac</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </div><div>I just updated from develbranch_6 after a couple of weeks. Here are some remaining problems in compiling and a showstopper with running GRASS.<br><br>1) vdigit: compiles fine now. BUT it probably keeps the wxPython GUI from running now (see below).<br><br>2) wxnviz: still doesn't compile but gets a bit farther if render.h is removed and make clean, make is run. Here is the error I get now.<br><br>cd /Users/cmbarton/grass_dev/grass6_src/lib/nviz<br>make<br>...<br><br>/Frameworks/UnixImageIO.framework/unix/include -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -o OBJ.i386-apple-darwin9.4.0/render.o -c render.c<br>render.c: In function ‘Nviz_create_render_window’:<br>render.c:139: warning: assignment makes pointer from integer without a cast<br>render.c:146: warning: assignment makes pointer from integer without a cast<br>render.c: In function ‘Nviz_make_current_render_window’:<br>render.c:204: error: ‘mac_win’ undeclared (first use in this function)<br>render.c:204: error: (Each undeclared identifier is reported only once<br>render.c:204: error: for each function it appears in.)<br>render.c:204: warning: ‘AGLDrawable’ is deprecated<br>make: *** [OBJ.i386-apple-darwin9.4.0/render.o] Error 1<br><br>3) i.attcorr no longer compiles. Here is the error.<br><br>cmb-MBP-2:nviz cmbarton$ cd /Users/cmbarton/grass_dev/grass6_src/imagery/i.atcorr<br>cmb-MBP-2:i.atcorr cmbarton$ make<br>Makefile:15: warning: overriding commands for target `/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/bin/i.atcorr'<br>../../include/Make/Module.make:14: warning: ignoring old commands for target `/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/bin/i.atcorr'<br>c++ -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -arch i386 -Os -g -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -o OBJ.i386-apple-darwin9.4.0/main.o -c main.cpp<br>main.cpp: In function ‘void process_raster(int, InputMask, ScaleRange, int, int, int, bool, ScaleRange, bool)’:<br>main.cpp:309: error: ‘isnan’ was not declared in this scope<br>make: *** [OBJ.i386-apple-darwin9.4.0/main.o] Error 1<br><br>4) After make install, GRASS will no longer start up in wxPython. It does the startup screen fine, but bombs when it tries to launch the main layer manager. Here is the error:<br><br>GRASS 6.4.svn (Spearfish60_test):~ > Fatal Python error: Interpreter not initialized (version mismatch?)<br><br>Note that I have changed nothing on my system since the last time it compiled and ran fine.<br><br>I suspect that an issue that William Kyngesbury recently mentioned may be the cause. vdigit, which compiles now, may do so incorrectly against the system version of Python (2.5.1) rather than the newer one that is my Python default (2.5.2). If so, the version check in the wxGUI startup kills it.<br><br>What is the easiest way to diable vdigit to test this?<br><br>Michael<br><br></div></blockquote></div><br></div></blockquote></div><br></div></body></html>