Hi,
I am also facing the same issue. Using
pyenv , I have installed the python version (2.7), still getting the same error. Please help me with this.
C:\epic84\chromium>fetch chromium
Running: 'C:\Users\Administrator\.vpython-root\5217f6\Scripts\python.exe' 'C:\sr
c\depot_tools\gclient.py' root
Running: 'C:\Users\Administrator\.vpython-root\5217f6\Scripts\python.exe' 'C:\sr
c\depot_tools\gclient.py' config --spec 'solutions = [
{
"name": "src",
"managed": False,
"custom_deps": {},
"custom_vars": {},
},
]
'
Running: 'C:\Users\Administrator\.vpython-root\5217f6\Scripts\python.exe' 'C:\sr
c\depot_tools\gclient.py' sync
src (ERROR)
----------------------------------------
[0:00:00] Started.
[0:00:00]
Traceback (most recent call last):
File "C:\src\depot_tools\gclient_scm.py", line 1043, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File "C:\src\depot_tools\gclient_scm.py", line 1411, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File "C:\src\depot_tools\gclient_utils.py", line 616, in CheckCallAndFilter
show_header_if_necessary(needs_header, attempt)
File "C:\src\depot_tools\gclient_utils.py", line 566, in show_header_if_necess
ary
stdout_write(header.encode())
File "C:\src\depot_tools\third_party\colorama\ansitowin32.py", line 41, in wri
te
self.__convertor.write(text)
File "C:\src\depot_tools\third_party\colorama\ansitowin32.py", line 162, in wr
ite
self.write_and_convert(text)
File "C:\src\depot_tools\third_party\colorama\ansitowin32.py", line 184, in wr
ite_and_convert
text = self.convert_osc(text)
File "C:\src\depot_tools\third_party\colorama\ansitowin32.py", line 246, in co
nvert_osc
for match in self.ANSI_OSC_RE.finditer(text):
TypeError: cannot use a string pattern on a bytes-like object
[0:00:00] _____ removing non-empty tmp dir C:\epic84\chromium\_gclient_src_mhrgr
kd0
----------------------------------------
Traceback (most recent call last):
File "C:\src\depot_tools\metrics.py", line 267, in print_notice_and_exit
yield
File "C:\src\depot_tools\gclient.py", line 3195, in <module>
sys.exit(main(sys.argv[1:]))
File "C:\src\depot_tools\gclient.py", line 3181, in main
return dispatcher.execute(OptionParser(), argv)
File "C:\src\depot_tools\subcommand.py", line 252, in execute
return command(parser, args[1:])
File "C:\src\depot_tools\gclient.py", line 2737, in CMDsync
ret = client.RunOnDeps('update', args)
File "C:\src\depot_tools\gclient.py", line 1779, in RunOnDeps
work_queue.flush(revision_overrides, command, args, options=self._options,
File "C:\src\depot_tools\gclient_utils.py", line 947, in flush
reraise(e[0], e[1], e[2])
File "C:\src\depot_tools\gclient_utils.py", line 66, in reraise
raise value
File "C:\src\depot_tools\gclient_utils.py", line 1024, in run
self.item.run(*self.args, **self.kwargs)
File "C:\src\depot_tools\gclient.py", line 925, in run
self._got_revision = self._used_scm.RunCommand(command, options, args,
File "C:\src\depot_tools\gclient_scm.py", line 132, in RunCommand
return getattr(self, command)(options, args, file_list)
File "C:\src\depot_tools\gclient_scm.py", line 546, in update
self._Clone(revision, url, options)
File "C:\src\depot_tools\gclient_scm.py", line 1043, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File "C:\src\depot_tools\gclient_scm.py", line 1411, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File "C:\src\depot_tools\gclient_utils.py", line 616, in CheckCallAndFilter
show_header_if_necessary(needs_header, attempt)
File "C:\src\depot_tools\gclient_utils.py", line 566, in show_header_if_necess
ary
stdout_write(header.encode())
stdout_write(header.encode())
File "C:\src\depot_tools\third_party\colorama\ansitowin32.py", line 41, in wri
te
self.__convertor.write(text)
File "C:\src\depot_tools\third_party\colorama\ansitowin32.py", line 162, in wr
ite
self.write_and_convert(text)
File "C:\src\depot_tools\third_party\colorama\ansitowin32.py", line 184, in wr
ite_and_convert
text = self.convert_osc(text)
File "C:\src\depot_tools\third_party\colorama\ansitowin32.py", line 246, in co
nvert_osc
for match in self.ANSI_OSC_RE.finditer(text):
TypeError: cannot use a string pattern on a bytes-like object
Subprocess failed with return code 1.
C:\epic84\chromium>python -V
Python 2.7