Hi,
I've just compiled the GRASS63 RC6 in a Debian unstable amd64 machine. When I
try to run it I get the following message:
Starting GRASS ...
Traceback (most recent call last):
File "/usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py", line 31, in ?
from gui_modules import globalvar
File "/usr/local/grass-6.3.0RC6/etc/wxpython/gui_modules/globalvar.py", line
27, in ?
import wx
ImportError: No module named wx
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
The Tcltk GUI is working without problems. How can I fix this?
Thanks
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.”
Hi,
2008/4/10, Gustavo Martinez <gumartin@mecon.gov.ar>:
I've just compiled the GRASS63 RC6 in a Debian unstable amd64 machine. When I
try to run it I get the following message:
Starting GRASS ...
Traceback (most recent call last):
File "/usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py", line 31, in ?
from gui_modules import globalvar
File "/usr/local/grass-6.3.0RC6/etc/wxpython/gui_modules/globalvar.py", line
27, in ?
import wx
ImportError: No module named wx
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
The Tcltk GUI is working without problems. How can I fix this?
well, you need to install wxPython to run wxPython-based GUI (wxPython
= 2.8.1 is required), see
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README
regards, Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
El Thursday 10 April 2008 17:25:01 escribió:
Hi,
2008/4/10, Gustavo Martinez <gumartin@mecon.gov.ar>:
> I've just compiled the GRASS63 RC6 in a Debian unstable amd64 machine.
> When I try to run it I get the following message:
>
> Starting GRASS ...
> Traceback (most recent call last):
> File "/usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py", line 31, in ?
> from gui_modules import globalvar
> File "/usr/local/grass-6.3.0RC6/etc/wxpython/gui_modules/globalvar.py",
> line 27, in ?
> import wx
> ImportError: No module named wx
> Error in GUI startup. If necessary, please
> report this error to the GRASS developers.
>
> The Tcltk GUI is working without problems. How can I fix this?
well, you need to install wxPython to run wxPython-based GUI (wxPython
>= 2.8.1 is required), see
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README
regards, Martin
Hi Martin,
I've checked and I have python-wxgtk2.8 installed. Also at the configure step
I use --with-python --with-wxwidgets and it lists wxpython as yes.
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.”
Hi,
2008/4/10, Gustavo Martinez <gumartin@mecon.gov.ar>:
I've checked and I have python-wxgtk2.8 installed. Also at the configure step
I use --with-python --with-wxwidgets and it lists wxpython as yes.
that's strange, try
python
import wx
??
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
El Thursday 10 April 2008 18:31:43 Martin Landa escribió:
Hi,
2008/4/10, Gustavo Martinez <gumartin@mecon.gov.ar>:
> I've checked and I have python-wxgtk2.8 installed. Also at the configure
> step I use --with-python --with-wxwidgets and it lists wxpython as yes.
that's strange, try
python
>>> import wx
??
Martin
xxxxx@AGRI4001B:~$ python
Python 2.4.5 (#2, Mar 11 2008, 23:38:15)
[GCC 4.2.3 (Debian 4.2.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named wx
--
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.”
> 2008/4/10, Gustavo Martinez <gumartin@mecon.gov.ar>:
> > I've checked and I have python-wxgtk2.8 installed. Also at the configure
> > step I use --with-python --with-wxwidgets and it lists wxpython as yes.
>
> that's strange, try
>
> python
>
> >>> import wx
xxxxx@AGRI4001B:~$ python
Python 2.4.5 (#2, Mar 11 2008, 23:38:15)
[GCC 4.2.3 (Debian 4.2.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named wx
then wxPython is missing or you have installed wxPython for other
version of python on your system (e.g. python2.5) ?
that's strange, for Debian Sid (which I am also using) is default
python2.4 so wx packages should be installed for that version.
dpkg -L python-wxgtk2.8 | grep _core_
?
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
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
--
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.”
I think you might need python-wxgtk2.8-dev ?
Bob Moskovitz
Seismic Hazard Evaluation Project
California Geological Survey
http://gmw.consrv.ca.gov/shmp
CONFIDENTIALITY NOTICE: This communication is intended only for the use of the individual or entity to which it is addressed. This message contains information from the State of California, California Geological Survey, which may be privileged, confidential and exempt from disclosure under applicable law, including the Electronic Communications Privacy Act. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.
-----Original Message-----
From: grass-user-bounces@lists.osgeo.org
[mailto:grass-user-bounces@lists.osgeo.org]On Behalf Of
Gustavo Martinez
Sent: Thursday, April 10, 2008 3:02 PM
To: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Error with wxpython GUI in RC6
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
--
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.”
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
Hi,
2008/4/11, Gustavo Martinez <gumartin@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
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
Hi,
2008/4/11, Moskovitz, Bob <Bob.Moskovitz@conservation.ca.gov>:
I think you might need python-wxgtk2.8-dev ?
you need wxWidgets dev-related packages to compile vector digitizer
component, not to run wxGUI itself. There is no 'python-wxgtk2.8-dev'
in Debian distribution.
Regards, Martin
Bob Moskovitz
Seismic Hazard Evaluation Project
California Geological Survey
http://gmw.consrv.ca.gov/shmp
CONFIDENTIALITY NOTICE: This communication is intended only for the use of the individual or entity to which it is addressed. This message contains information from the State of California, California Geological Survey, which may be privileged, confidential and exempt from disclosure under applicable law, including the Electronic Communications Privacy Act. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.
> -----Original Message-----
> From: grass-user-bounces@lists.osgeo.org
> [mailto:grass-user-bounces@lists.osgeo.org]On Behalf Of
> Gustavo Martinez
> Sent: Thursday, April 10, 2008 3:02 PM
> To: grass-user@lists.osgeo.org
> Subject: Re: [GRASS-user] Error with wxpython GUI in RC6
>
>
> 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
>
> --
> 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."
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
Hi,
El Thursday 10 April 2008 19:12:29 escribió:
Hi,
2008/4/11, Gustavo Martinez <gumartin@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.”
Hi Gustavo,
2008/4/17, Gustavo Martinez <gumartin@mecon.gov.ar>:
[...]
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.
good point!
I have updated trunk
http://trac.osgeo.org/grass/changeset/31024
and backported to releasebranch_63
http://trac.osgeo.org/grass/changeset/31025
Testing welcomed, Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *