Weiwei Yang created YUNIKORN-1193:
-------------------------------------

             Summary: Release build failed on arm64
                 Key: YUNIKORN-1193
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1193
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: webapp
    Affects Versions: 1.0.0
            Reporter: Weiwei Yang


Download the released tarball, and build the docker images from source with 
"make", I got the following error on M1 chip Mac with arm64 arch.

{code}
 => ERROR [buildstage 5/6] RUN yarn install                                     
                                                                                
                                                                        74.7s
------
 > [buildstage 5/6] RUN yarn install:
#11 0.467 yarn install v1.22.18
#11 0.602 [1/4] Resolving packages...
#11 0.963 [2/4] Fetching packages...
#11 54.52 [3/4] Linking dependencies...
#11 72.57 [4/4] Building fresh packages...
#11 73.85 info Visit https://yarnpkg.com/en/docs/cli/install for documentation 
about this command.
#11 73.85 error /usr/uiapp/node_modules/puppeteer: Command failed.
#11 73.85 Exit code: 1
#11 73.85 Command: node install.js
#11 73.85 Arguments:
#11 73.85 Directory: /usr/uiapp/node_modules/puppeteer
#11 73.85 Output:
#11 73.85 The chromium binary is not available for arm64.
#11 73.85 If you are on Ubuntu, you can install with:
#11 73.85
#11 73.85  sudo apt install chromium
#11 73.85
#11 73.85
#11 73.85  sudo apt install chromium-browser
#11 73.85
#11 73.85 
/usr/uiapp/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119
#11 73.85                     throw new Error();
#11 73.85                     ^
#11 73.85
#11 73.85 Error
#11 73.85     at 
/usr/uiapp/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119:27
#11 73.85     at FSReqCallback.oncomplete (node:fs:198:21)
#11 73.93 warning Error running install script for optional dependency: 
"/usr/uiapp/node_modules/nice-napi: Command failed.
#11 73.93 Exit code: 1
#11 73.93 Command: node-gyp-build
#11 73.93 Arguments:
#11 73.93 Directory: /usr/uiapp/node_modules/nice-napi
#11 73.93 Output:
#11 73.93 gyp info it worked if it ends with ok
#11 73.93 gyp info using node-gyp@8.4.1
#11 73.93 gyp info using node@16.14.2 | linux | arm64
#11 73.93 gyp ERR! find Python
#11 73.93 gyp ERR! find Python Python is not set from command line or npm 
configuration
#11 73.93 gyp ERR! find Python Python is not set from environment variable 
PYTHON
#11 73.93 gyp ERR! find Python checking if \"python3\" can be used
#11 73.93 gyp ERR! find Python - \"python3\" is not in PATH or produced an error
#11 73.93 gyp ERR! find Python checking if \"python\" can be used
#11 73.93 gyp ERR! find Python - \"python\" is not in PATH or produced an error
#11 73.93 gyp ERR! find Python
#11 73.93 gyp ERR! find Python 
**********************************************************
#11 73.93 gyp ERR! find Python You need to install the latest version of Python.
#11 73.93 gyp ERR! find Python Node-gyp should be able to find and use Python. 
If not,
#11 73.93 gyp ERR! find Python you can try one of the following options:
#11 73.93 gyp ERR! find Python - Use the switch 
--python=\"/path/to/pythonexecutable\"
#11 73.93 gyp ERR! find Python   (accepted by both node-gyp and npm)
#11 73.93 gyp ERR! find Python - Set the environment variable PYTHON
#11 73.93 gyp ERR! find Python - Set the npm configuration variable python:
#11 73.93 gyp ERR! find Python   npm config set python 
\"/path/to/pythonexecutable\"
#11 73.93 gyp ERR! find Python For more information consult the documentation 
at:
#11 73.93 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#11 73.93 gyp ERR! find Python 
**********************************************************
#11 73.93 gyp ERR! find Python
#11 73.93 gyp ERR! configure error
#11 73.93 gyp ERR! stack Error: Could not find any Python installation to use
#11 73.93 gyp ERR! stack     at PythonFinder.fail 
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
#11 73.93 gyp ERR! stack     at PythonFinder.runChecks 
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
#11 73.93 gyp ERR! stack     at PythonFinder.<anonymous> 
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
#11 73.93 gyp ERR! stack     at PythonFinder.execFileCallback 
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
#11 73.93 gyp ERR! stack     at exithandler (node:child_process:406:5)
#11 73.93 gyp ERR! stack     at ChildProcess.errorhandler 
(node:child_process:418:5)
#11 73.93 gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
#11 73.93 gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(node:internal/child_process:289:12)
#11 73.93 gyp ERR! stack     at onErrorNT (node:internal/child_process:478:16)
#11 73.93 gyp ERR! stack     at processTicksAndRejections 
(node:internal/process/task_queues:83:21)
#11 73.93 gyp ERR! System Linux 5.10.104-linuxkit
#11 73.93 gyp ERR! command \"/usr/local/bin/node\" 
\"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" 
\"rebuild\"
#11 73.93 gyp ERR! cwd /usr/uiapp/node_modules/nice-napi
#11 73.93 gyp ERR! node -v v16.14.2
#11 73.93 gyp ERR! node-gyp -v v8.4.1
#11 73.93 gyp ERR! not ok"
#11 73.94 info This module is OPTIONAL, you can safely ignore this error
------
executor failed running [/bin/sh -c yarn install]: exit code: 1
make[2]: *** [image] Error 1
make[1]: *** [image] Error 2
make: *** [all] Error 2{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: dev-h...@yunikorn.apache.org

Reply via email to