I recently hit this issue when gclient syncing to an older revision (8 months ago):
ValueError: unexpected AST node: <_ast.Import object at 0x7f463380a850> Import(names=[alias(name='os', asname=None)]) (file '/usr/local/google/home/ijamardo/Coding/chromium/src/third_party/skia/DEPS', line 51)
I found this issue was reported to chromium-dev:
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/TsMy80N6cZw
Using --disable-syntax-validation, I was able to successfully sync to my old revision.
Can gclient sync automatically use --disable-syntax-validation for syncing to old revisions? I think many folks are likely to hit this same issue and it is quite difficult to debug if you don't happen to go to google first.
Comment 1 by qyears...@chromium.org
, Aug 21 2017Labels: -Type-Bug Type-Feature