New issue
Advanced search Search tips

Issue 904279 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

depot_tools does not respect virtualenv

Reported by victorvi...@gmail.com, Nov 12

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

Steps to reproduce the problem:
1. Create virtualenv to ensure python2 execution of depot_tools cli (/usr/bin/python links to python3).
2. Run `fetch v8`.
3. python3 will be invoked during the cloning, which causes the process to fail when it finds 'import urllib2'.

What is the expected behavior?
Fetch v8 successfully.

What went wrong?
...
Syncing projects: 100% (22/22), done.                                           

________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' in '/home/victorvianna/Repositories/v8'
Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for v8/buildtools/linux64/clang-format. [Err: Traceback (most recent call last):
  File "/home/victorvianna/Repositories/depot_tools/gsutil.py", line 20, in <module>
    import urllib2
ModuleNotFoundError: No module named 'urllib2'
]
0> Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for v8/buildtools/linux64/clang-format, skipping. [Err: Traceback (most recent call last):
  File "/home/victorvianna/Repositories/depot_tools/gsutil.py", line 20, in <module>
    import urllib2
ModuleNotFoundError: No module named 'urllib2'
]
Downloading 1 files took 0.169329 second(s)
Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' returned non-zero exit status 1 in /home/victorvianna/Repositories/v8
Traceback (most recent call last):
  File "/home/victorvianna/Repositories/depot_tools/fetch.py", line 306, in <module>
    sys.exit(main())
  File "/home/victorvianna/Repositories/depot_tools/fetch.py", line 301, in main
    return run(options, spec, root)
  File "/home/victorvianna/Repositories/depot_tools/fetch.py", line 295, in run
    return checkout.init()
  File "/home/victorvianna/Repositories/depot_tools/fetch.py", line 137, in init
    self.run_gclient(*sync_cmd)
  File "/home/victorvianna/Repositories/depot_tools/fetch.py", line 82, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "/home/victorvianna/Repositories/depot_tools/fetch.py", line 71, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('gclient', 'sync', '--with_branch_heads')' returned non-zero exit status 2

Did this work before? N/A 

Chrome version: 70.0.3538.102  Channel: stable
OS Version: Manjaro 18.0.0
Flash Version:
 
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET TE-NeedsTriageHelp
Thanks for filing the issue!

From comment#0, it is understood that the issue is related to v8 which would be out of scope for us to triage it from our end. Hence adding label "TE-NeedsTriageHelp" and requesting someone from respective team to have a look into this and help in further triaging it.
Components: -Platform>DevTools Build

Sign in to add a comment