New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 799419 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: ----



Sign in to add a comment

gclient syncs failed with '.vpython is a directory'

Project Member Reported by phoglund@chromium.org, Jan 5 2018

Issue description

On my workstation, gclient syncs started failing with

Failed to fetch file gs://chromium-fonts/df8105c58d91885e7cf812488a26cdcb6363f187 for src/third_party/content_shell_fonts/content_shell_test_fonts.tar.gz. [Err: [E2018-01-05T10:30:43.7
95494+01:00 125038 0 annotate.go:242] original error: read /usr/local/google/home/phoglund/.vpython: is a directory
[E2018-01-05T10:26:46.495521+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495533+01:00 125038 0 annotate.go:242] goroutine 1:
[E2018-01-05T10:26:46.495547+01:00 125038 0 annotate.go:242] #0 go.chromium.org/luci/vpython/spec/load.go:60 - spec.Load()
[E2018-01-05T10:26:46.495557+01:00 125038 0 annotate.go:242]   reason: failed to load file from: /usr/local/google/home/phoglund/.vpython
[E2018-01-05T10:26:46.495567+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495578+01:00 125038 0 annotate.go:242] #1 go.chromium.org/luci/vpython/spec/load.go:211 - spec.(*Loader).LoadForScript()
[E2018-01-05T10:26:46.495588+01:00 125038 0 annotate.go:242] #2 go.chromium.org/luci/vpython/options.go:137 - vpython.(*Options).ResolveSpec()
[E2018-01-05T10:26:46.495597+01:00 125038 0 annotate.go:242]   reason: failed to load spec for script: {/usr/local/google/home/phoglund/dev/depot_tools/gsutil.py}
[E2018-01-05T10:26:46.495615+01:00 125038 0 annotate.go:242]   internal reason: isModule(false)
[E2018-01-05T10:26:46.495625+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495641+01:00 125038 0 annotate.go:242] #3 go.chromium.org/luci/vpython/options.go:86 - vpython.(*Options).resolve()
[E2018-01-05T10:26:46.495651+01:00 125038 0 annotate.go:242]   reason: failed to resolve Python script
[E2018-01-05T10:26:46.495660+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495670+01:00 125038 0 annotate.go:242] #4 go.chromium.org/luci/vpython/run.go:57 - vpython.Run()
[E2018-01-05T10:26:46.495683+01:00 125038 0 annotate.go:242]   reason: could not resolve options
[E2018-01-05T10:26:46.495692+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495702+01:00 125038 0 annotate.go:242] #5 go.chromium.org/luci/vpython/application/application.go:266 - application.(*application).mainImpl()
[E2018-01-05T10:26:46.495713+01:00 125038 0 annotate.go:242] #6 go.chromium.org/luci/vpython/application/application.go:354 - application.(*Config).Main.func1()
[E2018-01-05T10:26:46.495723+01:00 125038 0 annotate.go:242] #7 go.chromium.org/luci/vpython/application/support.go:45 - application.run()
[E2018-01-05T10:26:46.495734+01:00 125038 0 annotate.go:242] #8 go.chromium.org/luci/vpython/application/application.go:353 - application.(*Config).Main()
[E2018-01-05T10:26:46.495745+01:00 125038 0 annotate.go:242] #9 vpython/main.go:92 - main.mainImpl()
[E2018-01-05T10:26:46.495755+01:00 125038 0 annotate.go:242] #10 vpython/main.go:98 - main.main()
[E2018-01-05T10:26:46.495764+01:00 125038 0 annotate.go:242] #11 runtime/proc.go:185 - runtime.main()
[E2018-01-05T10:26:46.495778+01:00 125038 0 annotate.go:242] #12 runtime/asm_amd64.s:2337 - runtime.goexit()
]
0> Failed to fetch file gs://chromium-fonts/df8105c58d91885e7cf812488a26cdcb6363f187 for src/third_party/content_shell_fonts/content_shell_test_fonts.tar.gz, skipping. [Err: [E2018-01-05T10:26:46.495494+01:00 125038 0 annotate.go:242] original error: read /usr/local/google/home/phoglund/.vpython: is a directory
[E2018-01-05T10:26:46.495521+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495533+01:00 125038 0 annotate.go:242] goroutine 1:
[E2018-01-05T10:26:46.495547+01:00 125038 0 annotate.go:242] #0 go.chromium.org/luci/vpython/spec/load.go:60 - spec.Load()
[E2018-01-05T10:26:46.495557+01:00 125038 0 annotate.go:242]   reason: failed to load file from: /usr/local/google/home/phoglund/.vpython
[E2018-01-05T10:26:46.495567+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495578+01:00 125038 0 annotate.go:242] #1 go.chromium.org/luci/vpython/spec/load.go:211 - spec.(*Loader).LoadForScript()
[E2018-01-05T10:26:46.495588+01:00 125038 0 annotate.go:242] #2 go.chromium.org/luci/vpython/options.go:137 - vpython.(*Options).ResolveSpec()
[E2018-01-05T10:26:46.495597+01:00 125038 0 annotate.go:242]   reason: failed to load spec for script: {/usr/local/google/home/phoglund/dev/depot_tools/gsutil.py}
[E2018-01-05T10:26:46.495615+01:00 125038 0 annotate.go:242]   internal reason: isModule(false)
[E2018-01-05T10:26:46.495625+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495641+01:00 125038 0 annotate.go:242] #3 go.chromium.org/luci/vpython/options.go:86 - vpython.(*Options).resolve()
[E2018-01-05T10:26:46.495651+01:00 125038 0 annotate.go:242]   reason: failed to resolve Python script
[E2018-01-05T10:26:46.495660+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495670+01:00 125038 0 annotate.go:242] #4 go.chromium.org/luci/vpython/run.go:57 - vpython.Run()
[E2018-01-05T10:26:46.495683+01:00 125038 0 annotate.go:242]   reason: could not resolve options
[E2018-01-05T10:26:46.495692+01:00 125038 0 annotate.go:242] 
[E2018-01-05T10:26:46.495702+01:00 125038 0 annotate.go:242] #5 go.chromium.org/luci/vpython/application/application.go:266 - application.(*application).mainImpl()
[E2018-01-05T10:26:46.495713+01:00 125038 0 annotate.go:242] #6 go.chromium.org/luci/vpython/application/application.go:354 - application.(*Config).Main.func1()
[E2018-01-05T10:26:46.495723+01:00 125038 0 annotate.go:242] #7 go.chromium.org/luci/vpython/application/support.go:45 - application.run()
[E2018-01-05T10:26:46.495734+01:00 125038 0 annotate.go:242] #8 go.chromium.org/luci/vpython/application/application.go:353 - application.(*Config).Main()
[E2018-01-05T10:26:46.495745+01:00 125038 0 annotate.go:242] #9 vpython/main.go:92 - main.mainImpl()
[E2018-01-05T10:26:46.495755+01:00 125038 0 annotate.go:242] #10 vpython/main.go:98 - main.main()
[E2018-01-05T10:26:46.495764+01:00 125038 0 annotate.go:242] #11 runtime/proc.go:185 - runtime.main()
[E2018-01-05T10:26:46.495778+01:00 125038 0 annotate.go:242] #12 runtime/asm_amd64.s:2337 - runtime.goexit()
]

The failure to fetch a file wasn't the real problem; turns out it was the vpython problem.

I fixed it with

sudo rm -rf ~/.vpython

after that it worked.
 
This affected both my chromium and libyuv checkouts, by the way.

Comment 2 by awdf@chromium.org, Jan 5 2018

I just had the same issue, thanks for reporting your fix phoglund@!

I moved ~/.vpython somewhere else just in case it's important and I need it back (I don't remember ever installing vpython, so I guess it's probably not important though!)
Cc: achuith@chromium.org
Also ran into this, probably worth a note to chromium-dev?
Owner: iannucci@chromium.org
Status: Assigned (was: Untriaged)
this should fix the problem: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/851847 
Cc: iannucci@chromium.org
Labels: Pri-1
Owner: tandrii@chromium.org
Status: Started (was: Assigned)
Broken by https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/849663 (and corresponding roll into src.git)

Fixed by https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/851847 (and corresponding roll into src.git which hasn't happened yet)

Assigning to tandrii because he has context on this.
sending PSA.
Roll into build (not sure it's necessary, but it shouldn't hurt) https://chromium-review.googlesource.com/#/c/chromium/tools/build/+/852487 
Project Member

Comment 10 by bugdroid1@chromium.org, Jan 5 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/build/+/425e15d30d0985f1e9caaf8a20096c76f6db0f85

commit 425e15d30d0985f1e9caaf8a20096c76f6db0f85
Author: Andrii Shyshkalov <tandrii@chromium.org>
Date: Fri Jan 05 18:35:01 2018

recipe roll: update depot_tools to pick up vpython fix.

https://crrev.com/c/851847 [vpython] Roll vpython to latest version.

R=agable@chromium.org

Bug:  799419 
Change-Id: I39ee7eeb96119e859b51d66d1d88f1588a792d86
Reviewed-on: https://chromium-review.googlesource.com/852487
Reviewed-by: Aaron Gable <agable@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>

[modify] https://crrev.com/425e15d30d0985f1e9caaf8a20096c76f6db0f85/scripts/slave/README.recipes.md
[modify] https://crrev.com/425e15d30d0985f1e9caaf8a20096c76f6db0f85/infra/config/recipes.cfg

Cc: tandrii@chromium.org
Owner: iannucci@chromium.org

Comment 12 Deleted

Ah dang, I thought I had committed the depot_tools change last night to avoid this, apparently not.

Please try again (with up-to-date depot_tools) and it should be happy now.

The ~/.vpython directory is a relic of an ollld version of vpython and can be safely deleted.

Related to   issue 795146  .
/me is still booting up today, not fully awake.
Status: Fixed (was: Started)
This should be fully resolved

Sign in to add a comment