fetch chromium fail

361 views
Skip to first unread message

Elie B

unread,
Sep 15, 2019, 6:04:54 PM9/15/19
to Chromium-dev
hello

Here what I get when execute fetch chromium (Under Windows) , what's wrong ?


c:\sources\chromium2>fetch chromium
Running: 'C:\Users****\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' 'C:\sources\depot_tools\gclient.py' root
Running: 'C:\Users****\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' 'C:\sources\depot_tools\gclient.py' config --spec 'solutions = [
  {
    "name": "src",
    "url": "https://chromium.googlesource.com/chromium/src.git",
    "managed": False,
    "custom_deps": {},
    "custom_vars": {},
  },
]
'
Running: 'C:\Users****\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' 'C:\sources\depot_tools\gclient.py' sync

src (ERROR)
----------------------------------------
[0:00:00] Started.
[0:00:00]
Traceback (most recent call last):
  File "C:\sources\depot_tools\gclient_scm.py", line 1046, in _Clone
    print_stdout=print_stdout, filter_fn=filter_fn)
  File "C:\sources\depot_tools\gclient_scm.py", line 1370, in _Run
    gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
  File "C:\sources\depot_tools\gclient_utils.py", line 581, in CheckCallAndFilter
    show_header_if_necessary(needs_header, attempt)
  File "C:\sources\depot_tools\gclient_utils.py", line 531, in show_header_if_necessary
    stdout_write(header.encode())
  File "C:\sources\depot_tools\gclient_utils.py", line 390, in write
    obj[0] += out
TypeError: can only concatenate str (not "bytes") to str
[0:00:00] _____ removing non-empty tmp dir c:\sources\chromium2\_gclient_src_a91jdqt3
----------------------------------------
Traceback (most recent call last):
  File "C:\sources\depot_tools\metrics.py", line 267, in print_notice_and_exit
    yield
  File "C:\sources\depot_tools\gclient.py", line 3157, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\sources\depot_tools\gclient.py", line 3143, in main
    return dispatcher.execute(OptionParser(), argv)
  File "C:\sources\depot_tools\subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "C:\sources\depot_tools\gclient.py", line 2700, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "C:\sources\depot_tools\gclient.py", line 1738, in RunOnDeps
    patch_refs=patch_refs, target_branches=target_branches)
  File "C:\sources\depot_tools\gclient_utils.py", line 911, in flush
    reraise(e[0], e[1], e[2])
  File "C:\sources\depot_tools\gclient_utils.py", line 72, in reraise
    raise value
  File "C:\sources\depot_tools\gclient_utils.py", line 988, in run
    self.item.run(*self.args, **self.kwargs)
  File "C:\sources\depot_tools\gclient.py", line 915, in run
    file_list)
  File "C:\sources\depot_tools\gclient_scm.py", line 133, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "C:\sources\depot_tools\gclient_scm.py", line 548, in update
    self._Clone(revision, url, options)
  File "C:\sources\depot_tools\gclient_scm.py", line 1046, in _Clone
    print_stdout=print_stdout, filter_fn=filter_fn)
  File "C:\sources\depot_tools\gclient_scm.py", line 1370, in _Run
    gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
  File "C:\sources\depot_tools\gclient_utils.py", line 581, in CheckCallAndFilter
    show_header_if_necessary(needs_header, attempt)
  File "C:\sources\depot_tools\gclient_utils.py", line 531, in show_header_if_necessary
    stdout_write(header.encode())
  File "C:\sources\depot_tools\gclient_utils.py", line 390, in write
    obj[0] += out
TypeError: can only concatenate str (not "bytes") to str
Subprocess failed with return code 1.

Christian Biesinger

unread,
Sep 15, 2019, 6:08:17 PM9/15/19
to ebr...@gmail.com, chromium-dev
Depot_tools needs to be first in your path. Python 3 is not yet supported.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/27411607-ee74-4c4f-9c18-af773d89f318%40chromium.org.

Bruce Dawson

unread,
Sep 16, 2019, 6:26:03 PM9/16/19
to Chromium-dev, ebr...@gmail.com
Windows 10 1903 "installs" Python 3 which can cause a previously correctly configured machine to start misbehaving. By default it only installs a stub python.exe which does nothing or takes you to the Windows Store when run. In this case an actual running implementation of Python 3 was installed.

In all cases the fix is as Christian says - adjust your path so that depot_tools is in your path ahead of AppData\Local\Microsoft\WindowsApps.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

Elie B

unread,
Sep 17, 2019, 2:07:33 PM9/17/19
to Chromium-dev, ebr...@gmail.com
thanks ! It works
now still Following the blog in order to compile with " autoninja -C out\Default chrome" in output I've got the error : build.ninja cannot find the file Could you please also help on this ? Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to chromi...@chromium.org.

Bruce Dawson

unread,
Sep 17, 2019, 2:22:51 PM9/17/19
to ebr...@gmail.com, Chromium-dev
Did you run "gn gen out\Default" or "gn args out\Default" to create an output directory? That is the step that generates the build.ninja file. I recommending using "gn args out\Default" (or whatever directory name you want, I use out\release, out\debug, etc.) and specifying some of the args from here:


Note that use_jumbo_build is deprecated. 

You received this message because you are subscribed to a topic in the Google Groups "Chromium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-dev/JHgC1cN9uUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/a008311d-9b03-4770-9413-de959e8c7d3d%40chromium.org.
Reply all
Reply to author
Forward
0 new messages