[GRASS-dev] [GRASS GIS] #2532: TypeError: environment can only contain string when launching script on Windows
GRASS GIS
trac at osgeo.org
Mon Jan 5 07:01:33 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 |
-------------------------+--------------------------------------------------
When launching python script in GUI - File - Launch script, I am asked to
add the path to `GRASS_ADDON_PATH`. I did it and ran the script
successfully. However, I am not able to run any command afterwards because
of the python error (TypeError: environment can only contain string). The
problem is the script path is unicode type (although I am using only ascii
letters). The solution is to encode the script path, but with which
encoding? And how it is going to be decoded?
A temporary solution is to reject any scripts with path with non-ascii
letters and just use `str()`.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2532>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list