buck build gerrit failed to execute with many traceback error

108 views
Skip to first unread message

Sharath Gupta

unread,
Jun 8, 2016, 8:39:35 PM6/8/16
to Repo and Gerrit Discussion
Hi Experts

I want to develop a plugin for gerrit. I am new to gerrit. So, I want to try compiling the existing gerrit repository. Here are the things are I tried.

I cloned gerrit to my local machine home folder( I am using Mac).

spsgupta-mba:gerrit spsgupta$ pwd

/Users/spsgupta/gerrit

spsgupta-mba:gerrit spsgupta$ ls

BUCK gerrit-gpg gerrit-plugin-gwtui

COPYING gerrit-gwtdebug gerrit-plugin-js-archetype

Documentation gerrit-gwtexpui gerrit-prettify

INSTALL gerrit-gwtui gerrit-reviewdb

README.md gerrit-gwtui-common gerrit-server

ReleaseNotes gerrit-httpd gerrit-sshd

SUBMITTING_PATCHES gerrit-launcher gerrit-util-cli

VERSION gerrit-lucene gerrit-util-http

buck-out gerrit-main gerrit-util-ssl

bucklets gerrit-oauth gerrit-war

contrib gerrit-openid lib

gerrit-acceptance-framework gerrit-patch-commonsnet plugins

gerrit-acceptance-tests gerrit-patch-jgit polygerrit-ui

gerrit-antlr gerrit-pgm tools

gerrit-cache-h2 gerrit-plugin-api website

gerrit-common gerrit-plugin-archetype

gerrit-extension-api gerrit-plugin-gwt-archetype


I installed buck by cloning the buck code to my home folder and then setting my PATH .

spsgupta-mba:gerrit spsgupta$ which buck

/Users/spsgupta/bin/buck


spsgupta-mba:gerrit spsgupta$ buck -V

buck version e64a2e2ada022f81e42be750b774024469551398


Then, from my gerrit folder, I tried to execute "buck build gerrit" and I got plenty of traceback errors shown below.


--truncated--

Download http://repo1.maven.org/maven2/org/webjars/npm/codemirror/5.15.2/codemirror-5.15.2.jar


[-] PROCESSING BUCK FILES...FINISHED 3.5s [100%]

[+] DOWNLOADING... (0.00 B/S, TOTAL: 0.00 B, 0 Artifacts)

[+] BUILDING...111.9s [32%] (374/754 JOBS, 374 UPDATED, 49.5% CACHE MISS)

 |=> //lib/gwt:user__download_bin...  42.3s (running genrule[42.3s])

 |=> //lib/js:fetch__download_bower...  10.8s (running genrule[10.7s])

 |=> //lib/gwt:dev__download_bin...  43.8s (running genrule[43.8s])

 |=> //lib/js:iron-autogrow-textarea__download_bower...  9.7s (running genrule[9.7s])

env: node: No such file or directory

Traceback (most recent call last):

  File ".bootstrap/_pex/pex.py", line 320, in execute

  File ".bootstrap/_pex/pex.py", line 253, in _wrap_coverage

  File ".bootstrap/_pex/pex.py", line 285, in _wrap_profiling

  File ".bootstrap/_pex/pex.py", line 363, in _execute

  File ".bootstrap/_pex/pex.py", line 421, in execute_entry

  File ".bootstrap/_pex/pex.py", line 426, in execute_module

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 180, in run_module

    fname, loader, pkg_name)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code

    exec code in run_globals

  File "tools/js/run_npm_binary.py", line 91, in <module>

  File "tools/js/run_npm_binary.py", line 87, in main

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/Users/spsgupta/gerrit/buck-out/gen/lib/js/bower/bo...@1.7.9-b7296c2393e0d75edaa6ca39648132dd255812b0/package/bin/bower', '-l=error', '-j', 'info', 'fetch#1.0.0']' returned non-zero exit status 127

Traceback (most recent call last):

  File ".bootstrap/_pex/pex.py", line 320, in execute

  File ".bootstrap/_pex/pex.py", line 253, in _wrap_coverage

  File ".bootstrap/_pex/pex.py", line 285, in _wrap_profiling

  File ".bootstrap/_pex/pex.py", line 363, in _execute

  File ".bootstrap/_pex/pex.py", line 421, in execute_entry

  File ".bootstrap/_pex/pex.py", line 426, in execute_module

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 180, in run_module

    fname, loader, pkg_name)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code

    exec code in run_globals

  File "tools/js/download_bower.py", line 121, in <module>

  File "tools/js/download_bower.py", line 92, in main

  File "tools/js/download_bower.py", line 46, in bower_info

OSError: Command failed: ['/Users/spsgupta/gerrit/buck-out/gen/tools/js/run_npm_binary.pex', '/Users/spsgupta/gerrit/buck-out/gen/lib/js/bower/bo...@1.7.9.npm_binary.tgz', '-l=error', '-j', 'info', 'fetch#1.0.0']

env: node: No such file or directory

Traceback (most recent call last):

  File ".bootstrap/_pex/pex.py", line 320, in execute

  File ".bootstrap/_pex/pex.py", line 253, in _wrap_coverage

  File ".bootstrap/_pex/pex.py", line 285, in _wrap_profiling

  File ".bootstrap/_pex/pex.py", line 363, in _execute

  File ".bootstrap/_pex/pex.py", line 421, in execute_entry

  File ".bootstrap/_pex/pex.py", line 426, in execute_module

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 180, in run_module

    fname, loader, pkg_name)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code

    exec code in run_globals

  File "tools/js/run_npm_binary.py", line 91, in <module>

  File "tools/js/run_npm_binary.py", line 87, in main

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/Users/spsgupta/gerrit/buck-out/gen/lib/js/bower/bo...@1.7.9-b7296c2393e0d75edaa6ca39648132dd255812b0/package/bin/bower', '-l=error', '-j', 'info', 'polymer/polymer#1.4.0']' returned non-zero exit status 127

Traceback (most recent call last):


--truncated---

k-out/gen/lib/js/bower/bo...@1.7.9.npm_binary.tgz', '-l=error', '-j', 'info', 'polymerelements/iron-meta#1.1.1']

env: node: No such file or directory

Traceback (most recent call last):

  File ".bootstrap/_pex/pex.py", line 320, in execute

  File ".bootstrap/_pex/pex.py", line 253, in _wrap_coverage

  File ".bootstrap/_pex/pex.py", line 285, in _wrap_profiling

  File ".bootstrap/_pex/pex.py", line 363, in _execute

  File ".bootstrap/_pex/pex.py", line 421, in execute_entry

  File ".bootstrap/_pex/pex.py", line 426, in execute_module

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 180, in run_module

    fname, loader, pkg_name)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code

    exec code in run_globals

  File "tools/js/run_npm_binary.py", line 91, in <module>

  File "tools/js/run_npm_binary.py", line 87, in main

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/Users/spsgupta/gerrit/buck-out/gen/lib/js/bower/bo...@1.7.9-b7296c2393e0d75edaa6ca39648132dd255812b0/package/bin/bower', '-l=error', '-j', 'info', 'web-animations/web-animations-js#2.2.1']' returned non-zero exit status 127

Traceback (most recent call last):

  File ".bootstrap/_pex/pex.py", line 320, in execute

  File ".bootstrap/_pex/pex.py", line 253, in _wrap_coverage

  File ".bootstrap/_pex/pex.py", line 285, in _wrap_profiling

  File ".bootstrap/_pex/pex.py", line 363, in _execute

  File ".bootstrap/_pex/pex.py", line 421, in execute_entry

  File ".bootstrap/_pex/pex.py", line 426, in execute_module

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 180, in run_module

    fname, loader, pkg_name)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code

    exec code in run_globals

  File "tools/js/download_bower.py", line 121, in <module>

  File "tools/js/download_bower.py", line 92, in main

  File "tools/js/download_bower.py", line 46, in bower_info

OSError: Command failed: ['/Users/spsgupta/gerrit/buck-out/gen/tools/js/run_npm_binary.pex', '/Users/spsgupta/gerrit/buck-out/gen/lib/js/bower/bo...@1.7.9.npm_binary.tgz', '-l=error', '-j', 'info', 'web-animations/web-animations-js#2.2.1']

Download http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar

http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar:

expected bdc7af42581745d3d79c2efe0b514f432b998a5b

received 19939845d1e586988347513ebbea06ed2162238b




Here are some additional info incase needed. 

spsgupta-mba:gerrit spsgupta$ python -V

Python 2.7.10

spsgupta-mba:gerrit spsgupta$ java -version

java version "1.8.0_91"

Java(TM) SE Runtime Environment (build 1.8.0_91-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

spsgupta-mba:gerrit spsgupta$ 



Any help appreciated.

Thanks in advance.

-Sharath

David Pursehouse

unread,
Jun 8, 2016, 8:43:19 PM6/8/16
to Sharath Gupta, Repo and Gerrit Discussion
This is the relevant error:

env: node: No such file or directory

You need to install node.  Assuming you're using homebrew:   brew install node.

Also:

Not using buckd because watchman isn't installed.

Watchman can also be insalled using homebrew.


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sharath Gupta

unread,
Jun 9, 2016, 12:24:34 PM6/9/16
to David Pursehouse, Repo and Gerrit Discussion
Thanks David. I tried with what you suggested and it worked. Very much appreciated.

Best,
Swarth
--
-Sharath P S
Believe you can and you're halfway there.
Reply all
Reply to author
Forward
0 new messages