[GRASS-dev] compilation success

Michael Barton michael.barton at asu.edu
Thu Oct 9 01:35:08 EDT 2008


With William's recent fix, I got farther tonight on getting a working  
wxPython nviz than ever before.

I still have to remove render.c, but otherwise compilation goes well.  
When I select nviz from the map display, I now get a message box  
saying "Please wait, loading data..." and I get a partial nviz toolbar  
(color picker and exit door). Then it sits. In the layer manager  
output window, I get the following error.

===============
Traceback (most recent call last):
   File "/Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc
/wxpython/gui_modules/toolbars.py", line 250, in
OnSelectTool

self.mapdisplay.AddToolbar("nviz")
   File "/Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc
/wxpython/gui_modules/mapdisp.py", line 2758, in AddToolbar

mapWindow=self.MapWindow3D)
   File "/Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc
/wxpython/gui_modules/nviz_tools.py", line 69, in __init__

self.__createViewPage()
   File "/Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc
/wxpython/gui_modules/nviz_tools.py", line 158, in
__createViewPage

bind=(self.OnViewChange, self.OnViewChanged,
self.OnViewChangedSpin))
   File "/Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc
/wxpython/gui_modules/nviz_tools.py", line 1308, in
CreateControl

size=sizeW)
   File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/L
ibrary/Frameworks/Python.framework/Versions/2.5/Extras/lib/p
ython/wx-2.8-mac-unicode/wx/_controls.py", line 2600, in
__init__
wx._core
.
PyAssertionError
:
C++ assertion "!(style & wxSL_VERTICAL) || !(style &
wxSL_HORIZONTAL)" failed at ../src/mac/carbon/slider.cpp(98)
in Create(): incompatible slider direction and orientation

===============

Looks like it may be stuck on a bad wxPython widget definition.

Michael

On Oct 8, 2008, at 4:05 PM, Glynn Clements wrote:

>
> Michael Barton wrote:
>
>> When I try the new nviz, I nothing happens visually, but I get the
>> following in the layer manager output window.
>
>> import grass6_wxnviz as wxnviz
>>   File "/Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc
>> /wxpython/nviz/grass6_wxnviz.py", line 7, in <module>
>>
>> import _grass6_wxnviz
>> ImportError
>> :
>> dynamic module does not define init function
>> (init_grass6_wxnviz)
>
> Is gui/wxpython/nviz/grass6_wxnviz_wrap.cpp generated correctly?
>
> It should contain the line:
>
> 	#define SWIG_init    init_grass6_wxnviz
>
> and then the function:
>
> 	SWIGEXPORT void SWIG_init(void) {
>
> at the bottom of the file.
>
> Are there any errors or warnings from compilation in gui/wxpython/ 
> nviz?
>
> Does init_grass6_wxnviz (or anything similar) show up in the output
> from:
>
> 	nm -D OBJ.*/_grass6_wxnviz.so
> ?
>
> -- 
> Glynn Clements <glynn at gclements.plus.com>



More information about the grass-dev mailing list