0dp / generator-wp-bones

Yeoman generator to quickly install Bones Wordpress starter theme into your Wordpress theme folder
Other
68 stars 31 forks source link

Error with Python #16

Open karneaud opened 9 years ago

karneaud commented 9 years ago

I installed your package using yo and got this message

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable. gyp ERR! stack at failNoPython (E:\SERVER\nodejs\node_modules\npm\node_modul es\node-gyp\lib\configure.js:103:14) gyp ERR! stack at E:\SERVER\nodejs\node_modules\npm\node_modules\node-gyp\li b\configure.js:64:11 gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:95:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "E:\SERVER\nodejs\node_modules\npm\node_modules\no de-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd c:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grun t\node_modules\grunt-sass\node_modules\node-sass gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok Build failed npm ERR! Windows_NT 6.1.7601 npm ERR! argv "E:\SERVER\nodejs\node.exe" "E:\SERVER\nodejs\node_modules \npm\bin\npm-cli.js" "install" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code ELIFECYCLE

npm ERR! node-sass@0.7.0 install: node build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@0.7.0 install script 'node build.js'. npm ERR! This is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node build.js npm ERR! You can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! c:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grun t\npm-debug.log bower ENOENT No bower.json present

Local Npm module "grunt-sass" not found. Is it installed?

karneaud commented 9 years ago

i did not have "python" installed so I installed it and set PYTHON path env variable

karneaud commented 9 years ago

after python was installed I ran it again and got

C:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grunt\node_module s\grunt-sass\node_modules\node-sass>if not defined npm_config_node_gyp (node "E: \SERVER\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bi n\node-gyp.js" rebuild ) else (rebuild) gyp ERR! configure error gyp ERR! stack Error: spawn E:\SERVER\Python ENOENT gyp ERR! stack at exports._errnoException (util.js:746:11) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1053 :32) gyp ERR! stack at child_process.js:1144:20 gyp ERR! stack at process._tickCallback (node.js:355:11) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "E:\SERVER\nodejs\node_modules\npm\node_modules\no de-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grun t\node_modules\grunt-sass\node_modules\node-sass gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok Build failed npm ERR! Windows_NT 6.1.7601 npm ERR! argv "E:\SERVER\nodejs\node.exe" "E:\SERVER\nodejs\node_modules \npm\bin\npm-cli.js" "install" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code ELIFECYCLE

npm ERR! node-sass@0.7.0 install: node build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@0.7.0 install script 'node build.js'. npm ERR! This is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node build.js npm ERR! You can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above.

0dp commented 9 years ago

Do you receive any errors when you try out other generators? On May 24, 2015 7:18 PM, "karneaud" notifications@github.com wrote:

after python was installed I ran it again and got

C:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grunt\node_module s\grunt-sass\node_modules\node-sass>if not defined npm_config_node_gyp (node "E:

\SERVER\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bi n\node-gyp.js" rebuild ) else (rebuild) gyp ERR! configure error gyp ERR! stack Error: spawn E:\SERVER\Python ENOENT gyp ERR! stack at exports._errnoException (util.js:746:11) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1053 :32) gyp ERR! stack at child_process.js:1144:20 gyp ERR! stack at process._tickCallback (node.js:355:11) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "E:\SERVER\nodejs\node_modules\npm\node_modules\no de-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grun t\node_modules\grunt-sass\node_modules\node-sass gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok Build failed npm ERR! Windows_NT 6.1.7601 npm ERR! argv "E:\SERVER\nodejs\node.exe" "E:\SERVER\nodejs\node_modules \npm\bin\npm-cli.js" "install" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code ELIFECYCLE

npm ERR! node-sass@0.7.0 install: node build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@0.7.0 install script 'node build.js'. npm ERR! This is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node build.js npm ERR! You can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above.

— Reply to this email directly or view it on GitHub https://github.com/0dp/generator-wp-bones/issues/16#issuecomment-105040613 .

karneaud commented 9 years ago

@0dp I have implemented other yo generators in the past without errors but was't using anything with python... I'm trying to trace the source of the problem and maybe on to something concerning node here https://github.com/TooTallNate/node-gyp/wiki/Error%3A-%22pre%22-versions-of-node-cannot-be-installed Will let you know

karneaud commented 9 years ago

so i installed python 2.7.9 then I run into this

MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua l Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [c:\Users\ME\git\globatech\wp-content\themes\globa-tec h\library\grunt\node_modules\grunt-sass\node_modules\node-sass\build\binding.sl n] gyp ERR! build error gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (E:\SERVER\nodejs\node_modules\npm\nod e_modules\node-gyp\lib\build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074 :12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "E:\SERVER\nodejs\node_modules\npm\node_modules\no de-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd c:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grun t\node_modules\grunt-sass\node_modules\node-sass gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok Build failed

Seems now to be an error because i don't have visual studio installed...

looking into it via https://github.com/TooTallNate/node-gyp/issues/307

karneaud commented 9 years ago

Well,

I tried but i got as far as being able to get the msbuild to work then generating errors of its own. I give up. this was more time consuming than beneficial. I suggest you find some alternative to including the sass into your generator. Maybe to add a sass generator as a dependency?

0dp commented 9 years ago

I can inform you that this generator have worked very well for me and others since I first released it. I last looked at adding some features about a month ago;still doing its thing. These errors that you address are new to me and I also can confirm that something has changed since last time.

So I thank you for letting me know and I'm sorry that it didn't do its job.

If you find any fixes or get ideas don't hesitate to send a PR On May 25, 2015 4:04 PM, "karneaud" notifications@github.com wrote:

Well,

I tried but i got as far as being able to get the msbuild to work then generating errors of its own. I give up. this was more time consuming than beneficial. I suggest you find some alternative to getting the sass build to work. Maybe to add a sass generator as a dependency?

— Reply to this email directly or view it on GitHub https://github.com/0dp/generator-wp-bones/issues/16#issuecomment-105239381 .

karneaud commented 9 years ago

@0dp no bigee man. you did a good job and it was a good try. I'm glad I had the chance to help and hope things improve as I use the barebones framework a lot and would like to have this as part of my toolkit some day.