Sublime Forum

Build Error

#1

I tried to build Python code, C++ and Java and I get this error anyway.

Traceback (most recent call last): File ".\sublime_plugin.py", line 337, in run_ File ".\exec.py", line 154, in run File ".\exec.py", line 45, in __init__ UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 6: ordinal not in range(128)
Google says that there is an issue with st2 path or name of pc. But it doesn’t contain any cyrillic or other non-standart symbols.
I tried several versions of ST2, regular and portable installatins, runned it on my desktop x86 os and on my laptop x64, but i still got this error. Then I tried ST 1.4 and it worked fine!
Help me, please. I’m trying to solve this problem for a long time.

0 Likes

#2

i found solution on chinese site. here is the link http://www.oschina.net/question/617565_62976
you need to replace line 45 in exec.py

proc_env[k] = os.path.expandvars(v).encode(sys.getfilesystemencoding())

with that line

os.path.expandvars(v.decode(sys.getfilesystemencoding())).encode(sys.getfilesystemencoding())

works fine for me

0 Likes