nwjs / nw-gyp

native addon build tool for node-webkit
MIT License
195 stars 46 forks source link

error in configuring greenworks in gyp #144

Closed Titanor-Soulstone closed 3 years ago

Titanor-Soulstone commented 3 years ago

I am having an error in gyp where it won't configure my setup

can anyone help

here is my cmd log C:\Users\sirti\greenworks>nw-gyp configure --target=0.44.5 --arch=ia32 gyp info it worked if it ends with ok gyp info using nw-gyp@3.6.5 gyp info using node@15.0.1 | win32 | x64 gyp info spawn C:\Python27\python.exe gyp info spawn args [ gyp info spawn args 'C:\\Users\\sirti\\AppData\\Roaming\\npm\\node_modules\\nw-gyp\\gyp\\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-G', gyp info spawn args 'msvs_version=2015', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\sirti\\greenworks\\build\\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\sirti\\AppData\\Roaming\\npm\\node_modules\\nw-gyp\\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\sirti\\.nw-gyp\\0.44.5\\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\\Users\\sirti\\.nw-gyp\\0.44.5', gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\sirti\\AppData\\Roaming\\npm\\node_modules\\nw-gyp', gyp info spawn args '-Dnode_lib_file="C:\\Users\\sirti\\.nw-gyp\\0.44.5\\<(target_arch)\\node.lib"', gyp info spawn args '-Dnw_lib_file="C:\\Users\\sirti\\.nw-gyp\\0.44.5\\<(target_arch)\\nw.lib"', gyp info spawn args '-Dmodule_root_dir=C:\\Users\\sirti\\greenworks', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '-Dv13=1', gyp info spawn args '--generator-output', gyp info spawn args 'C:\\Users\\sirti\\greenworks\\build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] File "<string>", line 1 import sys; print sys.byteorder ^ SyntaxError: invalid syntax gyp: Call to 'python -c "import sys; print sys.byteorder"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:gypfailed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Users\sirti\AppData\Roaming\npm\node_modules\nw-gyp\lib\configure.js:368:16) gyp ERR! stack at ChildProcess.emit (node:events:327:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12) gyp ERR! System Windows_NT 10.0.18363 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\sirti\\AppData\\Roaming\\npm\\node_modules\\nw-gyp\\bin\\nw-gyp.js" "configure" "--target=0.44.5" "--arch=ia32" gyp ERR! cwd C:\Users\sirti\greenworks gyp ERR! node -v v15.0.1 gyp ERR! nw-gyp -v v3.6.5 gyp ERR! not ok

Titanor-Soulstone commented 3 years ago

it does not matter i fixed the issue I just installed the windows-build-tools and ran cmd as an admin