[GRASS-dev] Re: wxgrass won't work - how to set up digitization?

Martin Landa landa.martin at gmail.com
Mon Aug 20 06:45:57 EDT 2007


Hi Michael,

now fixed in SVN. The C++ driver is not finished yet.

Martin

2007/8/19, Michael Barton <michael.barton at asu.edu>:
>
>  Martin,
>
>  I just updated all and now wxgrass won't start. I get the following
> error...
>
>  GRASS 6.3.cvs (spearfish60_test):~ > Traceback (most recent call last):
>    File
> "/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/wxgui.py",
> line 57, in <module>
>      import gui_modules.wxgui_utils as wxgui_utils
>    File
> "/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/wxgui_utils.py",
> line 36, in <module>
>      import mapdisp
>    File
> "/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/mapdisp.py",
> line 55, in <module>
>      import toolbars
>    File
> "/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/toolbars.py",
> line 28, in <module>
>      from digit import Digit as Digit
>    File
> "/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/digit.py",
> line 60, in <module>
>      from grass6_wxdriver import DisplayDriver
>  ImportError: No module named grass6_wxdriver
>
>  I assume that I need the new displaydriver C module you have written. I
> copied it into my running version and tried to make it, but got the
> following error...
>
>  Last login: Sat Aug 18 11:48:21 on ttyp1
>  Welcome to Darwin!
>  cmb-MBP:~ cmbarton$ cd
> /Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/display_driver/
> cmb-MBP:/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/display_driver
> cmbarton$ make
>  Makefile:17: warning: overriding commands for target `clean'
>  ../../../include/Make/Rules.make:34: warning: ignoring old
> commands for target `clean'
>  cat ./driver.i > grass6_wxdriver.i
>  echo "/* auto-generate swig typedef file (with some GRASS functions
> removed) */" >> grass6_wxdriver.i
>  cat ./driver.h >> grass6_wxdriver.i
>  swig -c++ -python -shadow grass6_wxdriver.i
>  make: swig: Command not found
>  make: *** [grass6_wxdriver_wrap.cxx] Error 127
>
>  What do I need to do to make this work?
>
>  BTW, my GRASS is compiled with PYTHON support, so swig *ought* to be there.
> I probably am just doing this wrong.
>
>  Thanks
>  Michael
>
>  __________________________________________
>  Michael Barton, Professor of Anthropology
>  Director of Graduate Studies
>  School of Human Evolution & Social Change
>  Center for Social Dynamics & Complexity
>  Arizona State University
>
>  phone: 480-965-6213
>  fax: 480-965-7671
>  www: http://www.public.asu.edu/~cmbarton
>
>


-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *




More information about the grass-dev mailing list