2019-09-10 16:05:57 UTC - Subramaniyam: @Subramaniyam has joined the channel ---- 2019-09-10 18:26:03 UTC - Subramaniyam: Hi All, When i install nodejs library - npm install pulsar-client , I am getting the below error even i have Python installed my machine and setup PYTHON environment variable in my windows machine.. [3:50 PM] node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): <https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.0.0-node-v64-win32-x64.tar.gz> node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Python\python.exe -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at maybeClose (internal/child_process.js:962:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Subu\\Pulsar\\node_modules\\pulsar-client\\build\\Release\\libpulsar.node" "--module_name=libpulsar" "--module_path=C:\\Subu\\Pulsar\\node_modules\\pulsar-client\\build\\Release" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64" "--python=C:\\Python\\python.exe" gyp ERR! cwd C:\Subu\Pulsar\node_modules\pulsar-client gyp ERR! node -v v10.12.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Subu\Pulsar\node_modules\pulsar-client\build\Release\libpulsar.node --module_name=libpulsar --module_path=C:\Subu\Pulsar\node_modules\pulsar-client\build\Release --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64 --python=C:\Python\python.exe' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Subu\Pulsar\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) node-pre-gyp ERR! System Windows_NT 10.0.17134 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Subu\\Pulsar\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Subu\Pulsar\node_modules\pulsar-client node-pre-gyp ERR! node -v v10.12.0 node-pre-gyp ERR! node-pre-gyp -v v0.12.0 node-pre-gyp ERR! not ok
[3:51 PM] My node and npm version below.. [3:51 PM] PS C:\Subu\Pulsar> node --version v10.12.0 PS C:\Subu\Pulsar> npm --version 6.4.1 ---- 2019-09-10 23:34:52 UTC - Ali Ahmed: @Sijie Guo @Matteo Merli @Jerry Peng this is a jenkins blocker and needs a quick review. <https://github.com/apache/pulsar/pull/5162> ---- 2019-09-10 23:37:39 UTC - Sijie Guo: I think we should merge the one disabling this test ---- 2019-09-10 23:38:04 UTC - Sijie Guo: It is a test that not fully pass the review process ---- 2019-09-10 23:40:00 UTC - Ali Ahmed: ok let’s merge that one. ---- 2019-09-10 23:40:21 UTC - Ali Ahmed: this can go in as well. ---- 2019-09-11 00:20:03 UTC - Sijie Guo: done ---- 2019-09-11 00:22:38 UTC - Sijie Guo: also one suggestion for the branches. when you work on a pull request, please checkout the branches on your fork. don’t push the change directly to apache. a general principle for apache projects to only maintain release branches in the apache repo, no personal or individual branches. ---- 2019-09-11 00:23:21 UTC - Sijie Guo: ---- 2019-09-11 00:24:26 UTC - Sijie Guo: I would suggest push those branches to your own branches, delete then from apache repo and resubmit the pull requests. ---- 2019-09-11 00:26:34 UTC - tuteng: You can try Python 2.7. node-gyp does not seem to support python3 yet. <https://github.com/nodejs/node-gyp#on-windows> ----
