[GRASS-user] Error with wxpython GUI in RC6

Gustavo Martinez gumartin at mecon.gov.ar
Thu Apr 17 16:43:14 EDT 2008


Hi,
El Thursday 10 April 2008 19:12:29 escribió:
> Hi,
>
> 2008/4/11, Gustavo Martinez <gumartin at mecon.gov.ar>:
> > El Thursday 10 April 2008 18:48:15 escribió:
> > > dpkg -L python-wxgtk2.8 | grep _core_
> >
> > /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core_.so
>
> well, it is mistery;-)
>
> what about
>
> $ pycentral showdefault
>
> or better
>
> $ pyversions -vd
>
> You should get '2.4'
>
> $ python
>
> >>> import sys
>
> here should be '/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode'
>
> Martin

Finally I managed to run wxpython. I have wxpython 2.6 and 2.8 in the 
computer. I've installed wxversion and then added the following lines to 
/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/globalvar.py

import wxversion
wxversion.select('2.8')

before

 import wx

at line 28.


Gustavo

-- 
Lic. Gustavo Martínez
Gestión de Pesquerías
Sub Secretaría de Pesca de la Nación
Paseo Colón 982, Anexo Jardín Pesca
Tel: (54) 11 43492165
Buenos Aires, República Argentina

“Que la tierra se vaya haciendo camino ante tus pasos,
que el viento sople siempre a tus espaldas,
que el sol brille cálido sobre tu cara,
que la lluvia caiga suavemente sobre tus campos y,
hasta tanto volvamos a encontrarnos,
que Dios te lleve en la palma de su mano.”


More information about the grass-user mailing list