Hann0321 commented on PR #3681: URL: https://github.com/apache/ambari/pull/3681#issuecomment-1516194662
> ## Hi I am getting below error, while creating ambari rpms > 07:46:07,345 [ERROR] error /workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/node-sass: Command failed. 07:46:07,346 [ERROR] Exit code: 1 07:46:07,346 [ERROR] Command: sh 07:46:07,346 [ERROR] Arguments: -c node scripts/build.js 07:46:07,346 [ERROR] Directory: /workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/node-sass 07:46:07,346 [ERROR] Output: 07:46:07,346 [ERROR] Building: /workspace/ambari/contrib/views/files/src/main/resources/ui/node/node /workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= 07:46:07,347 [ERROR] gyp info it worked if it ends with ok 07:46:07,347 [ERROR] gyp verb cli [ '/workspace/ambari/contrib/views/files/src/main/resources/ui/node/node', 07:46:07,347 [ERROR] gyp verb cli '/workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/node-sass/n ode_modules/node-gyp/bin/node-gyp.js', 07:46:07,347 [ERROR] gyp verb cli 'rebuild', 07:46:07,347 [ERROR] gyp verb cli '--verbose', 07:46:07,347 [ERROR] gyp verb cli '--libsass_ext=', 07:46:07,347 [ERROR] gyp verb cli '--libsass_cflags=', 07:46:07,347 [ERROR] gyp verb cli '--libsass_ldflags=', 07:46:07,347 [ERROR] gyp verb cli '--libsass_library=' ] 07:46:07,347 [ERROR] gyp info using node-gyp@3.6.0 07:46:07,347 [ERROR] gyp info using node@4.5.0 | linux | x64 07:46:07,347 [ERROR] gyp verb command rebuild [] 07:46:07,347 [ERROR] gyp verb command clean [] 07:46:07,347 [ERROR] gyp verb clean removing "build" directory 07:46:07,347 [ERROR] gyp verb command configure [] 07:46:07,347 [ERROR] gyp verb check python checking for Python executable "python2" in the PATH 07:46:07,347 [ERROR] gyp verb `which` failed Error: not found: python2 07:46:07,347 [ERROR] gyp verb `which` failed at getNotFoundError (/workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/which/which.js:13: 12) 07:46:07,347 [ERROR] gyp verb `which` failed at F (/workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/which/which.js:68:19) 07:46:07,347 [ERROR] gyp verb `which` failed at E (/workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/which/which.js:80:29) 07:46:07,347 [ERROR] gyp verb `which` failed at /workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/which/which.js:89:16 07:46:07,347 [ERROR] gyp verb `which` failed at /workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/isexe/index.js:42:5 07:46:07,347 [ERROR] gyp verb `which` failed at /workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/isexe/mode.js:8:5 07:46:07,346 [INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 07:46:07,347 [ERROR] gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:82:15) 07:46:07,347 [ERROR] gyp verb `which` failed python2 { [Error: not found: python2] code : 'ENOENT' } 07:46:07,347 [ERROR] gyp verb check python checking for Python executable "python" in the PATH 07:46:07,347 [ERROR] gyp verb `which` succeeded python /usr/bin/python 07:46:07,347 [ERROR] gyp verb check python version `/usr/bin/python -c "import platform; print(platform.python_version());"` returned: "3.9.6\n" 07:46:07,347 [ERROR] gyp ERR! configure error 07:46:07,347 [ERROR] gyp ERR! stack Error: Python executable "/usr/bin/python" is v3.9.6, which is not supported by gyp. 07:46:07,347 [ERROR] gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. 07:46:07,347 [ERROR] gyp ERR! stack at Object.failPythonVersion (/workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:491:19) 07:46:07,347 [ERROR] gyp ERR! stack at Object. (/workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:473:14) 07:46:07,347 [ERROR] gyp ERR! stack at ChildProcess.exithandler (child_process.js:204:7) 07:46:07,347 [ERROR] gyp ERR! stack at emitTwo (events.js:87:13) 07:46:07,347 [ERROR] gyp ERR! stack at ChildProcess.emit (events.js:172:7) 07:46:07,347 [ERROR] gyp ERR! stack at maybeClose (internal/child_process.js:829:16) 07:46:07,347 [ERROR] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 07:46:07,347 [ERROR] gyp ERR! System Linux 3.10.0-1160.88.1.el7.x86_64 07:46:07,347 [ERROR] gyp ERR! command "/workspace/ambari/contrib/views/files/src/main/resources/ui/node/node" "/workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" 07:46:07,347 [ERROR] gyp ERR! cwd /workspace/ambari/contrib/views/files/src/main/resources/ui/node_modules/node-sass 07:46:07,348 [ERROR] gyp ERR! node -v v4.5.0 07:46:07,348 [ERROR] gyp ERR! n ode-gyp -v v3.6.0 07:46:07,348 [ERROR] gyp ERR! not ok Sorry, the Ambari adapts to the ARM architecture and Python3 based on the openEuler system. Currently, the code of the x86 architecture branch is not verified or adapted. Our team is considering whether to proceed with this task. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org For additional commands, e-mail: dev-h...@ambari.apache.org