Python Syntax error while running "fetch chromium"

666 views
Skip to first unread message

Dario Dorando

unread,
May 28, 2015, 2:47:20 PM5/28/15
to Chromium-dev

Hello devs,
Since i refetched everything, because of a broken computer, i got an error from python: "SyntaxError: invalid syntax".
I made the steps from the site https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up and also readable in the transscript.

[root@ArchPC ~]# cd /usb
[root@ArchPC usb]# git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Cloning into 'depot_tools'...
remote: Sending approximately 14.04 MiB ...
remote: Total 12423 (delta 7931), reused 12423 (delta 7931)
Receiving objects: 100% (12423/12423), 14.04 MiB | 1.21 MiB/s, done.
Resolving deltas: 100% (7934/7934), done.
Checking connectivity... done.
[root@ArchPC usb]# export PATH=$PATH:/usb/depot_tools/
[root@ArchPC usb]# mkdir chromium/
[root@ArchPC usb]# cd chromium/
[root@ArchPC chromium]# fetch chromium
File "/usb/depot_tools/fetch.py", line 63
print 'Running: %s' % (' '.join(pipes.quote(x) for x in cmd))
^
SyntaxError: invalid syntax
---------------------------------

Does someone know, why this happen and how to solve it?

Thanks in advance,
Dario

Scott Graham

unread,
May 28, 2015, 2:48:25 PM5/28/15
to chrde...@gmail.com, Chromium-dev
You need to use python 2.x, not 3.x.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Dario Dorando

unread,
May 28, 2015, 2:54:10 PM5/28/15
to Scott Graham, Chromium-dev

Thank you Scott, that solved it :).
Greetings,
Dario

Reply all
Reply to author
Forward
0 new messages