[GRASS-dev] [GRASS GIS] #2532: TypeError: environment can only contain string when launching script on Windows
GRASS GIS
trac at osgeo.org
Thu Jan 8 09:13:19 PST 2015
#2532: TypeError: environment can only contain string when launching script on
Windows
-------------------------+--------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: encoding | Platform: MSWindows 8
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by annakrat):
I used `EncodeString` in r63997, r63998. I tested it successfully on
Windows (cp1252) with ascii characters and non-ascii characters which are
not present in cp1252 result in error dialog with message how to avoid
that. However, I failed to run the script when the name contained non-
ascii characters present in cp1252 (á). I don't get any error, but in gui
console I get:
{{{
Launching script 'C:\Users\akratoc\Desktop\test_workshopá.py'...
(Thu Jan 08 12:04:24 2015)
Description:
Adds the values of two rasters (A + B)
Keywords:
raster, algebra, sum
Usage:
test_workshopá.py araster=name braster=name output=name
[--overwrite]
[--help] [--verbose] [--quiet] [--ui]
Flags:
--o Allow output files to overwrite existing files
--h Print usage summary
--v Verbose module output
--q Quiet module output
--ui Force launching GUI dialog
Parameters:
araster Name of input raster A in an expression A + B
braster Name of input raster B in an expression A + B
output Name for output raster map
ERROR: Required parameter <araster> not set:
(Name of input raster A in an expression A + B)
ERROR: Required parameter <braster> not set:
(Name of input raster B in an expression A + B)
ERROR: Required parameter <output> not set:
(Name for output raster map)
(Thu Jan 08 12:04:25 2015) Command finished (0 sec)
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2532#comment:5>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list