[GRASS-dev] [GRASS GIS] #2532: TypeError: environment can only contain string when launching script on Windows

GRASS GIS trac at osgeo.org
Tue Jan 13 07:48:05 PST 2015


#2532: TypeError: environment can only contain string when launching script on
Windows
-------------------------+--------------------------------------------------
 Reporter:  annakrat     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Default      |     Version:  svn-trunk                
 Keywords:  encoding     |    Platform:  MSWindows 8              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by annakrat):

 Replying to [comment:8 annakrat]:
 > Replying to [comment:7 glynn]:
 > > Can you get any more debug output?
 > Will try.
 With debug messages on I get in the GUI console:

 {{{
 Launching script 'C:\Users\akratoc\Desktop\test_workshopá.py'...
 (Thu Jan 08 12:04:24 2015)
 C:\Users\akratoc\Desktop\test_workshopá.py
 D2/5: filename = C:\Users\akratoc\Desktop\test_workshopá.py
 D1/5: G_set_program_name(): test_workshopá
 D2/5: G_file_name(): path =
 C:\Users\akratoc\grassdata/nc_basic_spm_grass7/user1
 Description:
 ... and the same as above
 }}}

 and in the terminal window:

 {{{
 GUI D5/5: EncodeString(): enc=cp1252
 D1/5: grass.script.core.start_command(): g.gisenv -n
 D1/5: G_set_program_name(): g.gisenv
 D2/5: G_option_to_separator(): key = separator -> sep = '
 '
 GUI D1/5: gcmd.CommandThread(): C:\Users\akratoc\Desktop\test_workshopá.py
 GUI D5/5: EncodeString(): enc=cp1252
 GUI D5/5: EncodeString(): enc=cp1252
 }}}

 It doesn't seem particularly helpful but I don't know what else I can do.

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



More information about the grass-dev mailing list