[GRASS-dev] Re: [GRASS GIS] #1004: WxGUI CMD fails if command contains non-latin letters

GRASS GIS trac at osgeo.org
Thu Mar 18 08:12:09 EDT 2010


#1004: WxGUI CMD fails if command contains non-latin letters
------------------------------+---------------------------------------------
  Reporter:  marisn           |       Owner:  martinl            
      Type:  defect           |      Status:  assigned           
  Priority:  major            |   Milestone:  6.4.0              
 Component:  wxGUI            |     Version:  svn-releasebranch64
Resolution:                   |    Keywords:  unicode, wingrass  
  Platform:  MSWindows Vista  |         Cpu:  x86-32             
------------------------------+---------------------------------------------
Comment (by marisn):

 WinGRASS-6.4.SVN-r41467-1

 {{{
 Exception in thread Thread-6:
 Traceback (most recent call last):
   File "C:\OSGeo4W\apps\Python25\lib\threading.py", line
 486, in __bootstrap_inner
     self.run()
   File "C:\Program
 Files\GRASS-64-SVN\etc\wxpython\gui_modules\gcmd.py", line
 539, in run
     shell=sys.platform=="win32")
   File "C:\Program
 Files\GRASS-64-SVN\etc\wxpython\gui_modules\gcmd.py", line
 139, in __init__
     targs[0] = map(utils.EncodeString, args[0])
   File "c:\osgeo4w\usr\src\grass64_release\dist.i686-pc-
 mingw32\etc\wxpython\gui_modules\utils.py", line 345, in
 EncodeString
     return string.encode(enc)
   File "C:\Program
 Files\GRASS-64-SVN\Python25\lib\encodings\cp1257.py", line
 12, in encode
     return
 codecs.charmap_encode(input,errors,encoding_table)
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in
 position 0: ordinal not in range(128)
 Exception
 Traceback (most recent call last):
 exceptions
   File "C:/Program
 Files/GRASS-64-SVN/etc/wxpython/wxgui.py", line 471, in
 OnRunCmd
 .

 AttributeError
 self.goutput.RunCmd(cmd, switchPage=True)
 :
   File "C:\Program
 Files\GRASS-64-SVN\etc\wxpython\gui_modules\goutput.py",
 line 377, in RunCmd
 "'Popen' object has no attribute '_child_created'"

  in
 stderr=self.cmd_stderr)
 <bound method Popen.__del__ of <gui_modules.gcmd.Popen
 object at 0x03F3B210>>
   File "C:\Program
 Files\GRASS-64-SVN\etc\wxpython\gui_modules\gcmd.py", line
 369, in __init__
  ignored

 _("Error: ") + self.GetError()))
   File "C:\Program
 Files\GRASS-64-SVN\etc\wxpython\gui_modules\gcmd.py", line
 458, in GetError

 return _("Unable to exectute command: '%s'") % '
 '.join(self.cmd)
 UnicodeDecodeError
 :
 'ascii' codec can't decode byte 0xe2 in position 3: ordinal
 not in range(128)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1004#comment:3>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list