[GRASSGUI] wxgrass does not see wx on import

Daniel Calvelo dca.gis at gmail.com
Sat May 19 12:36:37 EDT 2007


On 5/18/07, Brad Douglas <rez at touchofmadness.com> wrote:
[...]
> Here's the exact error:
>
> GRASS 6.3.cvs (utm10):/usr/src/grass63 > wxgrass
> Traceback (most recent call last):
>   File "/opt/gis/grass-6.3.cvs/etc/wx/wxgui.py", line 16, in ?
>     import wx.richtext
>   File
> "/usr/lib64/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/richtext.py",
> line 4, in ?
>     import _richtext
> ImportError: /usr/lib64/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_richtext.so: undefined symbol: wxEVT_COMMAND_RICHTEXT_CHARACTER
>
> This is what led me to believe it was a python2.5 symbol, but I'm
> relatively inexperienced with wxpython.  There are also no unresolved
> libraries linked to _richtext.so.

It is not python-related. wxEVT_COMMAND_RICHTEXT_CHARACTER is a
wxWidgets symbol (i.e. the C++ part of wxPython); _richtext.so is the
C++-Python glue for the wx.richtext widgets. What is not found is the
C++ library corresponding to that.

Check which libraries are linked into _richtext.so using ldd, and
whether stg like libwx2.8_raster is there and is defined.

Also, were all the libraries compiled in the same 64 or 32-bit mode?

Since you have everything in $PYTHON/site-packages, python should have
no problem finding its libraries. The systems linker might.

Daniel

-- 
-- Daniel Calvelo Aros




More information about the grass-gui mailing list