TypeError: environment can only contain string when launching script on Windows
|Reported by:||annakrat||Owned by:|
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