Rise - install decktape in winpython

136 views
Skip to first unread message

LucK

unread,
Sep 29, 2018, 2:33:30 PM9/29/18
to WinPython
I'm trying to add the ability to print a rise slideshow via "decktape" to pdf according to the following approach shown at jupytercon and it fails (see log below). 
Has anyone tried to install this in winpython with success?

Capture.JPG


ErroLog:

> hum...@1.0.87 install C:\WinPython\WPy-3702\t\n\node_modules\decktape\node_modules\hummus
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Pre-built binaries not found for hum...@1.0.87 and no...@8.11.4 (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\WinPython\WPy-3702\python-3.7.0.amd64\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\WinPython\WPy-3702\t\n\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\WinPython\WPy-3702\t\n\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at C:\WinPython\WPy-3702\t\n\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\WinPython\\WPy-3702\\python-3.7.0.amd64\\..\\t\\n\\node.exe" "C:\\WinPython\\WPy-3702\\t\\n\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\WinPython\\WPy-3702\\t\\n\\node_modules\\decktape\\node_modules\\hummus\\binding\\hummus.node" "--module_name=hummus" "--module_path=C:\\WinPython\\WPy-3702\\t\\n\\node_modules\\decktape\\node_modules\\hummus\\binding" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd C:\WinPython\WPy-3702\t\n\node_modules\decktape\node_modules\hummus
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\WinPython\WPy-3702\python-3.7.0.amd64\..\t\n\node.exe C:\WinPython\WPy-3702\t\n\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\WinPython\WPy-3702\t\n\node_modules\decktape\node_modules\hummus\binding\hummus.node --module_name=hummus --module_path=C:\WinPython\WPy-3702\t\n\node_modules\decktape\node_modules\hummus\binding --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\WinPython\WPy-3702\t\n\node_modules\decktape\node_modules\hummus\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\\WinPython\\WPy-3702\\python-3.7.0.amd64\\..\\t\\n\\node.exe" "C:\\WinPython\\WPy-3702\\t\\n\\node_modules\\decktape\\node_modules\\hummus\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\WinPython\WPy-3702\t\n\node_modules\decktape\node_modules\hummus
node-pre-gyp ERR! node -v v8.11.4
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\WinPython\WPy-3702\python-3.7.0.amd64\..\t\n\node.exe C:\WinPython\WPy-3702\t\n\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\WinPython\WPy-3702\t\n\node_modules\decktape\node_modules\hummus\binding\hummus.node --module_name=hummus --module_path=C:\WinPython\WPy-3702\t\n\node_modules\decktape\node_modules\hummus\binding --napi_version=3 --node_abi_napi=napi' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hum...@1.0.87 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hum...@1.0.87 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

stonebig

unread,
Sep 30, 2018, 9:34:42 AM9/30/18
to WinPython
node-gyp doesn't work well, requires dying python-2.7.

suggested options to get a pdf from rise, as of now:
- or maybe experiment this (didn't try)  ? https://github.com/felixrieseberg/windows-build-tools

LucK

unread,
Sep 30, 2018, 12:46:01 PM9/30/18
to WinPython

Thanks for the info. I've noticed that these tools already caused  some problems but didn't find a good reason for the problem I faced.
I'll stick to the first solution for the time being (must deliver my slides for a presentation in the coming week so no time to experiment anymore). 
I'll keep you posted if the second option works.  

stonebig

unread,
Sep 30, 2018, 1:34:02 PM9/30/18
to WinPython

stonebig

unread,
Sep 30, 2018, 2:20:11 PM9/30/18
to WinPython
I'm not a fan of the idea to install anything python-2.7. 

LucK

unread,
Sep 30, 2018, 2:42:05 PM9/30/18
to WinPython
Thanks a lot, I'll try it out. Can't believe I missed this.
I agree regarding python-2.7.

Reply all
Reply to author
Forward
0 new messages