[GRASS-dev] [GRASS GIS] #1380: GRASS6.4.1 WX-Python GUI, menu does not work at all

#1380: GRASS6.4.1 WX-Python GUI, menu does not work at all
----------------------------+-----------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: WX Python Menu | Platform: MSWindows 7
      Cpu: Unspecified |
----------------------------+-----------------------------------------------
I downloaded latest GRASS6.4.1 and tested.

I tested WX-Python GUI.
Windows7, Japanese environment.

Most Menu and commands does not work at all.
TckTk GUI forks fine, though.

There are error messages shown in command console.

Unless this is solved, WX-Python GUI is useless.

Note that, this may be same problem as OSGEO4W Track ticket#228 by
Mr.Hayashi.

Regards,
Nao

--------------------------------------------

Error when I put [Add Raster Map] button.
-----------------
Traceback (most recent call last):
   File "C:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py",
line 1180, in OnAddRaster

self.curr_page.maptree.AddLayer('raster')
   File "c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/layertree.py", line 821, in
AddLayer
   File "c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/layertree.py", line 882, in
PropertiesDialog
   File "c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 2049, in
ParseCommand
   File "c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 2020, in
ParseInterface
   File
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",
line 963, in XML

parser.feed(text)
   File
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",
line 1245, in feed

self._parser.Parse(data, 0)
xml.parsers.expat
.
ExpatError
:
unknown encoding: line 1, column 30

Error when I put [Add 3D vector Map] button
--------------------------------------------------
Traceback (most recent call last):
   File "C:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py",
line 1307, in OnAddRaster3D

self.curr_page.maptree.AddLayer('3d-raster')
   File "c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/layertree.py", line 821, in
AddLayer
   File "c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/layertree.py", line 886, in
PropertiesDialog
   File "c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 2049, in
ParseCommand
   File "c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 2020, in
ParseInterface
   File
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",
line 964, in XML

return parser.close()
   File
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",
line 1254, in close

self._parser.Parse("", 1) # end of data
xml.parsers.expat
.
ExpatError
:
no element found: line 1, column 0

Error when I enter "g.version" in command console
---------------------------------
parser.feed(text)
   File
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",
line 1245, in feed

self._parser.Parse(data, 0)
xml.parsers.expat
.
ExpatError
:
unknown encoding: line 1, column 30

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: GRASS6.4.1 WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------
Changes (by martinl):

  * keywords: WX Python Menu => encoding, wingrass

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: GRASS6.4.1 WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by martinl):

Can you try more recent version from http://wingrass.fsv.cvut.cz/grass64/
?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: GRASS6.4.1 WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------
Changes (by martinl):

  * priority: blocker => critical

Comment:

No answer, downgrading priority...

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: GRASS6.4.1 WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------
Changes (by venkat):

  * priority: critical => blocker

Comment:

The problem still persists in GRASS-6.4.2-SVN, GRASS-6.4.2-RC1, and
GRASS-6.4.1.
Tried with winGRASS on Windows-7 English and also Japanese version

Can't continue with further tests if d.rast does not start.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: GRASS6.4.1 WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by venkat):

Replying to [comment:4 venkat]:
> The problem still persists in GRASS-6.4.2-SVN, GRASS-6.4.2-RC1, and
GRASS-6.4.1.
> Tried with winGRASS on Windows-7 English and also Japanese version
>
> Can't continue with further tests if d.rast does not start.

The error message when I use the "Add raster Map layer" in the WxGUI

Traceback (most recent call last):
   File "C:/Program Files (x86)/GRASS
6.4.SVN/etc/wxpython/wxgui.py", line 1309, in OnAddRaster

self.curr_page.maptree.AddLayer('raster')
   File "C:\Program Files (x86)\GRASS
6.4.SVN\etc\wxpython\gui_modules\layertree.py", line 855, in
AddLayer

self.PropertiesDialog(layer, show = True)
   File "C:\Program Files (x86)\GRASS
6.4.SVN\etc\wxpython\gui_modules\layertree.py", line 920, in
PropertiesDialog

completed = (self.GetOptData,layer,params))
   File "C:\Program Files (x86)\GRASS
6.4.SVN\etc\wxpython\gui_modules\menuform.py", line 1732, in
ParseCommand

blackList = _blackList)
   File "c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
mingw32/etc/python/grass/script/task.py", line 451, in
parse_interface
   File
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",
line 963, in XML

parser.feed(text)
   File
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",
line 1245, in feed

self._parser.Parse(data, 0)
xml.parsers.expat
.
ExpatError
:
unknown encoding: line 1, column 30

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by martinl):

Replying to [comment:5 venkat]:

probably unrelated

{{{
> completed = (self.GetOptData,layer,params))
> File "C:\Program Files (x86)\GRASS
> 6.4.SVN\etc\wxpython\gui_modules\menuform.py", line 1732, in
> ParseCommand
>
> blackList = _blackList)
}}}

path OK (`C:\Program Files (x86)\GRASS 6.4.SVN`)

> File "c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
> mingw32/etc/python/grass/script/task.py", line 451, in
> parse_interface

huh (`c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-mingw32`)

Did you compiled GRASS on your own?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by martinl):

Replying to [comment:4 venkat]:

> Tried with winGRASS on Windows-7 English and also Japanese version

Do you problem also in English environment?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by venkat):

Replying to [comment:7 martinl]:
> Replying to [comment:5 venkat]:
>
> probably unrelated
>
> {{{
> > completed = (self.GetOptData,layer,params))
> > File "C:\Program Files (x86)\GRASS
> > 6.4.SVN\etc\wxpython\gui_modules\menuform.py", line 1732, in
> > ParseCommand
> >
> > blackList = _blackList)
> }}}
>
> path OK (`C:\Program Files (x86)\GRASS 6.4.SVN`)
>
> > File "c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
> > mingw32/etc/python/grass/script/task.py", line 451, in
> > parse_interface
>
> huh (`c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-mingw32`)

Not sure why winGRASS standalone is looking up the osgeo4W directory.

> Did you compiled GRASS on your own?

No. I use 6.4.SVN from 6.4.svn:
- standalone nightly: http://wingrass.fsv.cvut.cz/grass64/
- OSGeo4W nightly: http://wingrass.fsv.cvut.cz/grass64/osgeo4w/

Have winGRASS and OSGeo4W installed on my machine

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by venkat):

Replying to [comment:8 martinl]:
> Replying to [comment:4 venkat]:
>
> > Tried with winGRASS on Windows-7 English and also Japanese version
>
> Do you problem also in English environment?

Yes, the problem is also on Windows-7 English environment?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:10&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by venkat):

Replying to [comment:10 venkat]:
> Replying to [comment:8 martinl]:
> > Replying to [comment:4 venkat]:
> >
> > > Tried with winGRASS on Windows-7 English and also Japanese version
> >
> > Do you problem also in English environment?
>
> Yes, the problem is also on Windows-7 English environment.

The problem also on Windows-7 English environment.

>

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:11&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by martinl):

Replying to [comment:9 venkat]:

> Not sure why winGRASS standalone is looking up the osgeo4W directory.

moreover, it's looking up the *source code* directory, which is very very
strange. Does `c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-mingw32`
exist on your computer? I presume that yes, and I wonder why. Haven't you
compiled GRASS on your Windows machine in the past?

> > Did you compiled GRASS on your own?
>
> No. I use 6.4.SVN from 6.4.svn:

Are you sure? I wonder how could

{{{
c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-mingw32
}}}

be created without compiling winGRASS. OSGeo4W GRASS package is installed
to

{{{
c:\osgeo4w\apps\grass\grass-<version>
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:12&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by martinl):

Replying to [comment:10 venkat]:
> Replying to [comment:8 martinl]:
> > Replying to [comment:4 venkat]:
> >
> > > Tried with winGRASS on Windows-7 English and also Japanese version
> >
> > Do you problem also in English environment?
>
> Yes, the problem is also on Windows-7 English environment?

Anyone else with this problem? I wonder that something is bad with your
installation, see my previous notes.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by hellik):

Replying to [comment:13 martinl]:
> Replying to [comment:10 venkat]:
> > Replying to [comment:8 martinl]:
> > > Replying to [comment:4 venkat]:
> > >
> > > > Tried with winGRASS on Windows-7 English and also Japanese version
> > >
> > > Do you problem also in English environment?
> >
> > Yes, the problem is also on Windows-7 English environment?
>
> Anyone else with this problem? I wonder that something is bad with your
installation, see my previous notes.

tested here
http://grass.osgeo.org/grass64/binary/mswindows/native/WinGRASS-6.4.2RC1-1-Setup.exe
on a fresh german 64bit-win7-box and on german 32bit-winvista-box, I can't
reproduce these errors.

Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:14&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by Venkat):

Replying to [comment:14 hellik]:
> Replying to [comment:13 martinl]:
> > Replying to [comment:10 venkat]:
> > > Replying to [comment:8 martinl]:
> > > > Replying to [comment:4 venkat]:
> > > >
> > > > > Tried with winGRASS on Windows-7 English and also Japanese
version
> > > >
> > > > Do you problem also in English environment?
> > >
> > > Yes, the problem is also on Windows-7 English environment?
> >
> > Anyone else with this problem? I wonder that something is bad with
your installation, see my previous notes.
>
> tested here
http://grass.osgeo.org/grass64/binary/mswindows/native/WinGRASS-6.4.2RC1-1-Setup.exe
on a fresh german 64bit-win7-box and on german 32bit-winvista-box, I can't
reproduce these errors.

Thanks for testing. The error cannot be reproduced on your computer
because "system locale" is perhaps set to german. System local can
be changed from Contro Panel --> Region and Language --> Change system
locale.
On Japanese Windows-7 the system locale is set to "Japanese".
(Japanese/Chinese/Korean are use double byte encoding, unlike English,
German etc.). d.rast wxGUI works if I set the "system locale" to English
or German (I tried with German too).

The problem that I am reporting is peculiar to languages using double-byte
characters (Chinese, Japanese, Korean). You should be able to reproduce
the error by setting the Change system locale to Japanese,

Venka

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:15&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WX-Python GUI, menu does not work at all
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by hellik):

Replying to [comment:15 Venkat]:
>
> Thanks for testing. The error cannot be reproduced on your computer
> because "system locale" is perhaps set to german. System local can
> be changed from Contro Panel --> Region and Language --> Change system
locale.
> On Japanese Windows-7 the system locale is set to "Japanese".
(Japanese/Chinese/Korean are use double byte encoding, unlike English,
German etc.). d.rast wxGUI works if I set the "system locale" to English
or German (I tried with German too).
>
> The problem that I am reporting is peculiar to languages using double-
byte characters (Chinese, Japanese, Korean). You should be able to
reproduce the error by setting the Change system locale to Japanese,

maybe change the title that an encoding issue is here the problem?

Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:16&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WxGUI, menu does not work at all (languages using double-byte characters)
--------------------------------+-------------------------------------------
Reporter: naokiueda | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:17&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WxGUI, menu does not work at all (languages using double-byte characters)
---------------------------------------+------------------------------------
Reporter: naokiueda | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Keywords: encoding, wingrass, cp932 | Platform: MSWindows 7
      Cpu: Unspecified |
---------------------------------------+------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * keywords: encoding, wingrass => encoding, wingrass, cp932
  * status: new => assigned
  * owner: grass-dev@… => martinl

Comment:

See also #1485

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:18&gt;
GRASS GIS <http://grass.osgeo.org>

#1380: WxGUI, menu does not work at all (languages using double-byte characters)
--------------------------+-------------------------------------------------
  Reporter: naokiueda | Owner: martinl
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.1 RCs
Resolution: fixed | Keywords: encoding, wingrass, cp932
  Platform: MSWindows 7 | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

Comment:

see #1485 (comment:24)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1380#comment:19&gt;
GRASS GIS <http://grass.osgeo.org>