Home Download Buy Blog Forum Support

Build Error

Build Error

Postby marvin on Thu Aug 02, 2012 2:50 pm

I tried to build Python code, C++ and Java and I get this error anyway.
Code: Select all
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.
marvin
 
Posts: 2
Joined: Sun Jul 01, 2012 4:41 pm

Re: Build Error

Postby marvin on Thu Aug 02, 2012 3:54 pm

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
Code: Select all
proc_env[k] = os.path.expandvars(v).encode(sys.getfilesystemencoding())

with that line
Code: Select all
os.path.expandvars(v.decode(sys.getfilesystemencoding())).encode(sys.getfilesystemencoding())

works fine for me
marvin
 
Posts: 2
Joined: Sun Jul 01, 2012 4:41 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 13 guests