Read the statement by Michael Teeuw here.
MMM-AssistantMk2 problems when using electron-rebuild
-
Thanks for the replay, I will try that and will let you know :)
-
Thanks for the link! After updating with the stretch gcc-5, its working:) but I see I have to move on to the Stretch distro.
-
@logen563
If you leave details here, I’ll add it to github repository for others. Thanks. -
Hi, im not expert!
Someone can help me?
Thanks!I have downgrade node js and npm;
pi@raspberrypi:~/MagicMirror $ node -v
v8.11.4pi@raspberrypi:~/MagicMirror $ npm -v
5.6.0pi@raspberrypi:~/MagicMirror $ node-gyp -v
v3.8.0Then
npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuildThen -> Error!
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.o
make: *** No hay ninguna regla para construir el objetivo ‘Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o’, necesario para ‘Release/obj.target/libgrpc.a’. Alto.
make: se sale del directorio ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.14.62-v7+
gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp” “rebuild” “–target=2.0.0” “–arch=arm” “–dist-url=https://atom.io/download/electron” “–build-from-source” “–module_name=grpc_node” “–module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc” “–host=https://node-precompiled-binaries.grpc.io/” “–remote_path={name}/v1.14.1” “–package_name=electron-v2.0-linux-arm-glibc.tar.gz”
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not okFailed with exit code: 1
Error: gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@8.11.4 | linux | arm
gyp info spawn /usr/bin/python2
gyp info spawn args [ ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/gyp/gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘make’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0’,
gyp info spawn args ‘-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0/<(target_arch)/iojs.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc’,
gyp info spawn args ‘-Dnode_engine=v8’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘build’,
gyp info spawn args ‘-Goutput_dir=.’ ]
gyp info spawn make
gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
make: se entra en el directorio ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.oCXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.o
make: *** No hay ninguna regla para construir el objetivo ‘Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o’, necesario para ‘Release/obj.target/libgrpc.a’. Alto.
make: se sale del directorio ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.14.62-v7+
gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp” “rebuild” “–target=2.0.0” “–arch=arm” “–dist-url=https://atom.io/download/electron” “–build-from-source” “–module_name=grpc_node” “–module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc” “–host=https://node-precompiled-binaries.grpc.io/” “–remote_path={name}/v1.14.1” “–package_name=electron-v2.0-linux-arm-glibc.tar.gz”
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not okFailed with exit code: 1
at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:277:84)
at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:242:16)
at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:201:26)
at Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
at Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:251:65)
at SafeSubscriber.__tryOrSetError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:251:16)
at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:191:27)Something idea whats wrong?
Thanks! -
@mrega
Dear buddy,
After some research, I’ve found something. a few days ago,grpc
was updated, but proper binaries are not provided yet. That’s why rebuild-from-source doesn’t work.Here is an urgent but experimental fix.
I cannot give a guarantee to work, but think there is worthy of trying.first,
cd node_modules rm -rf grpc cd .. npm install @grpc/grpc-js
I wish
grpc
release proper target binaries ASAP. -
Hi @Sean
I have the same problem trying to build from scratch. It fails at grpc, I tried your solution but is the samegyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:180:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) gyp ERR! System Linux 4.14.62-v7+ gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp" "rebuild" "--target=2.0.0" "--arch=arm" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=grpc_node" "--module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--host=https://node-precompiled-binaries.grpc.io/" "--remote_path={name}/v1.14.1" "--package_name=electron-v2.0-linux-arm-glibc.tar.gz" gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc gyp ERR! node -v v9.11.2 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok
-
@yep_dd
Here is the answer fromgrpc-node
community
https://github.com/grpc/grpc-node/issues/507#issuecomment-414465022So, wait for a while… It’s not the fault of my module… T_T
-
@sean said in MMM-AssistantMk2 problems when using electron-rebuild:
rm -rf grpc
Hi @Sean,
cool that helps. You you just advice for some of the not so advanced npm and node users how to downgrade?
Thank you so much,
Stephan
-
@yep_dd
Currently, I’m not in front of my device, so I write this without test.npm install [package]@[version]
That is a usual form.
Thus,
cd ~/MagicMirror/modules/MMM-AssistantMk2 rm -rf ./node_modules/grpc npm install grpc@1.13
would work, I think.
-
if anybody needs a working raspie3b+ image with hotword/notification/assistant installed drop a pm
:-)