Suggestions on how to fix this build issue?

Skip to first unread message

Richard Wilkes

Mar 27, 2022, 6:14:50 PMMar 27
to skia-discuss
Last year, I was able to successfully build the skia source from these two commits:


A few months have gone by and I wanted to update to the latest source. However, I get the following failure when running the "python tools/git-sync-deps" step. Newer code much beyond the commit referenced above seems to insist on installing its own copy of python 3.9.x, then complaining bitterly because it isn't python 3.8.x:

ERROR at // Script returned non-zero exit code.
Current dir: /Users/rich/code/cskia/skia/build/
Command: vpython /Users/rich/code/cskia/skia/skia/gn/ ../skia/third_party/externals/libgifcodec/libgifcodec.gni
Returned 1.

[E2022-03-27T15:03:40.212575-07:00 32432 0 annotate.go:273] goroutine 1:
#0 - venv.(*Config).resolvePythonInterpreter()
  reason: none of [/Users/rich/code/cskia/skia/depot_tools/boots...@3.8.10.chromium.23_bin/python/bin/python] matched specification 3.8.0

#1 - venv.(*Config).resolveRuntime()
  reason: failed to resolve system Python interpreter

#2 - venv.With()
  reason: failed to resolve python runtime

#3 - vpython.Run()
#4 - application.(*application).mainImpl()
#5 - application.(*Config).Main.func1()
#6 -
#7 - application.(*Config).Main()
#8 vpython/main.go:112 - main.mainImpl()
#9 vpython/main.go:118 - main.main()
#10 runtime/proc.go:225 - runtime.main()
#11 runtime/asm_amd64.s:1371 - runtime.goexit()

I can't seem to find how to get it to stop doing... nor provide python 3.8 in a way it can find and use. Note this is on macOS 12.3, but I've also tried older versions of the OS (as far back as 10.13) and have hit the exact same issue.

Does anyone have suggestions on how I might solve this? Better yet, does anyone know of a way to build Skia that doesn't rely on things like python?

Thanks for any help!

- Rich
Reply all
Reply to author
0 new messages