After a fresh install of Enthought Canopy 184.108.40.2065 win x86 version, it starts with a welcome error.
A possible solution is mentioned on the enthought blog in a reply of this post.
The solution is to change the code in file
254 i += 1 255 256 default_encoding = sys.getdefaultencoding()
254 i += 1 255 256 if sys.getdefaultencoding()!='gbk': 257 reload(sys) 258 sys.setdefaultencoding('gbk') 259 260 default_encoding = sys.getdefaultencoding()
I am still inexperienced to know why this solution works.
However, from the code, it can be found that the windows xp doesn’t provide a proper return string ‘gbk’. In the solution, the system default encoding is set manually to ‘gbk’.
The problem could be the system - windows xp, but also could be the python function, which provides the system settings.