can't start cros chrome_sdk

32 views
Skip to first unread message

Luigi Semenzato

unread,
May 21, 2018, 12:17:07 AM5/21/18
to Chromium OS dev
I am wondering if there is some known issue with the simplechrome flow
because when I try to enter the sdk I get an error from goma_ctl.py
(file not found, but no idea which file). I have also opened
https://crbug.com/845045. Thank you for any suggestion!


semenzato@luigi:~/chromium/src$ cros chrome-sdk --board cyan --log-level=info
21:15:26: INFO: Installing Goma.
21:15:27: ERROR: cros chrome-sdk failed before completing.
21:15:27: ERROR: return code: 1; command: python2 goma_ctl.py update
Traceback (most recent call last):
File "goma_ctl.py", line 2518, in <module>
sys.exit(main())
File "goma_ctl.py", line 2513, in main
goma.Dispatch(sys.argv[1:])
File "goma_ctl.py", line 1149, in Dispatch
self._CreateGomaTmpDirectory()
File "goma_ctl.py", line 1111, in _CreateGomaTmpDirectory
tmp_dir = self._env.GetGomaTmpDir()
File "goma_ctl.py", line 1469, in GetGomaTmpDir
env=env).strip()
File "/usr/lib/python2.7/subprocess.py", line 212, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

cmd=['python2', 'goma_ctl.py', 'update'], cwd=/tmp/tmpisZ7QF/goma

Mike Frysinger

unread,
May 21, 2018, 12:19:02 AM5/21/18
to Luigi Semenzato, chromium-os-dev
do you have `python2` in your $PATH ?
-mike

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

Yunlian Jiang

unread,
May 21, 2018, 12:28:08 AM5/21/18
to Mike Frysinger, seme...@chromium.org, chromium-os-dev

---
You received this message because you are subscribed to the Google Groups "Chromium OS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.

Luigi Semenzato

unread,
May 21, 2018, 12:35:01 AM5/21/18
to Mike Frysinger, chromium-os-dev
Thanks yes, I do

semenzato@luigi:~/chromium/src$ which python2
/usr/bin/python2

Luigi Semenzato

unread,
May 21, 2018, 12:48:08 AM5/21/18
to Yunlian Jiang, Mike Frysinger, chromium-os-dev
Thanks yes, it looks like it's the same bug.

Unfortunately one suggested workaround (which is to fetch a later
version of goma_ctl.py) doesn't work for me because chromite isn't
using the goma_ctl.py in GOMA_DIR and it's not obvious where it's
finding it:

File "goma_ctl.py", line 1469, in GetGomaTmpDir
env=env).strip()

it would be nice if it were invoked with the full path.

Luigi Semenzato

unread,
May 21, 2018, 1:31:57 AM5/21/18
to Yunlian Jiang, Mike Frysinger, chromium-os-dev
OK so I was looking in the wrong place, obviously I should have looked
in chromium/src/third_party/chromite.

But the scripts are still hard to follow---there are so many wrappers.
chromite/bin/cros calls chromite/scripts/cros.py which probably calls
cli/cros/cros_chrome_sdk.py

OK found the problem---every time the script runs, it downloads the
goma package instead of using the installed one. So I can't use the
workaround.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages