After some tedious detective work, the startup error in wxGUI is caused by the following line in vdigit.py

import _grass6_wxvdigit

This calls _grass6_wxvdigit.so

So back to my first guess, vdigit is compiling with a different version of Python than the rest of GRASS.

Michael





On Sep 7, 2008, at 10:04 PM, Michael Barton wrote:

I disabled the vdigit makefile so that it raised and error and didn't compile. I still get the same error:

GRASS 6.4.svn (Spearfish60_test):~ > Fatal Python error: Interpreter not initialized (version mismatch?)

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).

Michael

Begin forwarded message:

From: Michael Barton <[EMAIL PROTECTED]>
Date: September 7, 2008 8:47:57 PM GMT-07:00
To: Landa Martin <[EMAIL PROTECTED]>, grass developers <[email protected] >, Kyngesburye William <[EMAIL PROTECTED]>
Subject: issues with compiling and running GRASS on Mac

I just updated from develbranch_6 after a couple of weeks. Here are some remaining problems in compiling and a showstopper with running GRASS.

1) vdigit: compiles fine now. BUT it probably keeps the wxPython GUI from running now (see below).

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.

cd /Users/cmbarton/grass_dev/grass6_src/lib/nviz
make
...

/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
render.c: In function ‘Nviz_create_render_window’:
render.c:139: warning: assignment makes pointer from integer without a cast render.c:146: warning: assignment makes pointer from integer without a cast
render.c: In function ‘Nviz_make_current_render_window’:
render.c:204: error: ‘mac_win’ undeclared (first use in this function) render.c:204: error: (Each undeclared identifier is reported only once
render.c:204: error: for each function it appears in.)
render.c:204: warning: ‘AGLDrawable’ is deprecated
make: *** [OBJ.i386-apple-darwin9.4.0/render.o] Error 1

3) i.attcorr no longer compiles. Here is the error.

cmb-MBP-2:nviz cmbarton$ cd /Users/cmbarton/grass_dev/grass6_src/ imagery/i.atcorr
cmb-MBP-2:i.atcorr cmbarton$ make
Makefile:15: warning: overriding commands for target `/Users/ cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/bin/ i.atcorr' ../../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' 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 main.cpp: In function ‘void process_raster(int, InputMask, ScaleRange, int, int, int, bool, ScaleRange, bool)’:
main.cpp:309: error: ‘isnan’ was not declared in this scope
make: *** [OBJ.i386-apple-darwin9.4.0/main.o] Error 1

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:

GRASS 6.4.svn (Spearfish60_test):~ > Fatal Python error: Interpreter not initialized (version mismatch?)

Note that I have changed nothing on my system since the last time it compiled and ran fine.

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.

What is the easiest way to diable vdigit to test this?

Michael



_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to