Bug with automate.py

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Bug with automate.py

Postby Arie » Wed Sep 03, 2014 8:04 am

Hi,
I have launched
Code: Select all
python C:\CEF3\automate-git.py --download-dir=C:\CEF3\download --branch=1916

and I get this error:
Code: Select all
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 16: ordinal
 not in range(128)

Traceback (most recent call last):
  File "tools\gclient_hook.py", line 39, in <module>
    RunAction(cef_dir, gyper)
  File "C:\CEF3\download\chromium\src\cef\tools\gclient_util.py", line 39, in Ru
nAction
    command, cwd=dir, always=True)
  File "C:\CEF3\download\depot_tools\gclient_utils.py", line 286, in CheckCallAn
dFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "C:\CEF3\download\depot_tools\gclient_utils.py", line 531, in CheckCallAn
dFilter
    rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command C:\CEF3\download\depot_tools\python276_b
in\python.exe ../build/gyp_chromium cef.gyp -I cef.gypi returned non-zero exit s
tatus 1 in C:\CEF3\download\chromium\src\cef
Traceback (most recent call last):
  File "C:\CEF3\automate-git.py", line 868, in <module>
    run(path, cef_src_dir, depot_tools_dir)
  File "C:\CEF3\automate-git.py", line 73, in run
    shell=(sys.platform == 'win32'))
  File "C:\Python26\lib\subprocess.py", line 462, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\CEF3\\download\\chromium\\src\\cef
\\cef_create_projects.bat']' returned non-zero exit status 1


How to fix this issue ?
Arie
Newbie
 
Posts: 7
Joined: Tue Jul 15, 2014 4:23 am

Re: Bug with automate.py

Postby magreenblatt » Wed Sep 03, 2014 8:27 am

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Bug with automate.py

Postby Arie » Wed Sep 03, 2014 11:02 am

It works with this solution.
The solution, which worked for me, is:
add file named sitecustomize.py in depot_tools\python276_bin\Lib\site-packages folder.

The contents of the file:
import sys
sys.setdefaultencoding("cp1251")

Thanks.
Arie
Newbie
 
Posts: 7
Joined: Tue Jul 15, 2014 4:23 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 42 guests

cron