Ok, thank you!
Best posts made by muffinthepuff
Latest posts made by muffinthepuff
-
RE: Node-pty error!
[23.11.2022 15:54.43.904] [ERROR] [GATEWAY] node-pty Loading error! Error: The module ‘/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/build/Release/pty.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 106. This version of Node.js requires
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
the module (for instance, usingnpm rebuild
ornpm install
). -
RE: Node-pty error!
Thanks for replying! The mirror throws errors through EXT-Alert saying that node-pty and porcupine library are broken or something. Even when I run npm run rebuild in both Gateway and detector directories, I get the same output.
-
Node-pty error!
Hi! I was installing magicmirroron a fresh copy of raspbian 64-bit today and I got the following errors in Gateway and EXT-Detector installs and rebuild:-
Installing all npm libraries…Gateway@2.1.9 postinstall
installer/postinstall.sh⠋ MagicMirror Building module: node-pty, Completed: 0gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
⠙ MagicMirror Building module: node-pty, Completed: 0gyp http GET https://www.electronjs.org/headers/v19.1.0/node-v19.1.0-headers.tar.gz
⠦ MagicMirror Building module: node-pty, Completed: 0gyp http 200 https://artifacts.electronjs.org/headers/v19.1.0/node-v19.1.0-headers.tar.gz?force_headers_dist=1
⠏ MagicMirror Building module: node-pty, Completed: 0gyp http GET https://www.electronjs.org/headers/v19.1.0/SHASUMS256.txt
⠋ MagicMirror Building module: node-pty, Completed: 0gyp http 200 https://artifacts.electronjs.org/headers/v19.1.0/SHASUMS256.txt?force_headers_dist=1
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args ‘/home/pi/MagicMirror/modules/Gateway/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/Gateway/node_modules/node-pty/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/Gateway/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/19.1.0/include/node/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/19.1.0’,
gyp info spawn args ‘-Dnode_gyp_dir=/home/pi/MagicMirror/modules/Gateway/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/19.1.0/<(target_arch)/node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty’,
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 args ]
⠴ MagicMirror Building module: node-pty, Completed: 0gyp info spawn make
gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
make: Entering directory ‘/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/build’
CXX(target) Release/obj.target/pty/src/unix/pty.o
⠧ MagicMirror Building module: node-pty, Completed: 0…/src/unix/pty.cc: In function ‘void pty_after_waitpid(uv_async_t*)’:
…/src/unix/pty.cc:512:43: warning: ‘void* memset(void*, int, size_t)’ writing to an object of type ‘class Nan::Persistentv8::Function’ with no trivial copy-assignment [-Wclass-memaccess]
512 | memset(&baton->cb, -1, sizeof(baton->cb));
| ^
In file included from …/…/nan/nan.h:409,
from …/src/unix/pty.cc:20:
…/…/nan/nan_persistent_12_inl.h:12:40: note: ‘class Nan::Persistentv8::Function’ declared here
12 | template<typename T, typename M> class Persistent :
| ^~~~~~~~~~
In file included from …/…/nan/nan.h:60,
from …/src/unix/pty.cc:20:
…/src/unix/pty.cc: At global scope:
/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/19.1.0/include/node/node.h:855:7: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
855 | (node::addon_register_func) (regfunc),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/19.1.0/include/node/node.h:889:3: note: in expansion of macro ‘NODE_MODULE_X’
889 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
…/src/unix/pty.cc:734:1: note: in expansion of macro ‘NODE_MODULE’
734 | NODE_MODULE(pty, init)
| ^~~~~~~~~~~
⠼ MagicMirror Building module: node-pty, Completed: 0 SOLINK_MODULE(target) Release/obj.target/pty.node
⠧ MagicMirror Building module: node-pty, Completed: 0 COPY Release/pty.node
make: Leaving directory ‘/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/build’
MagicMirror Rebuild Complete
Support is now moved in a dedicated Server: https://forum.bugsounet.fr
@bugsounetGateway is now installed !
Installing all npm libraries…
EXT-Detector@1.0.1 postinstall
installer/postinstall.shMagicMirror Rebuild…
⠙ MagicMirror Building module: snowboy, Completed: 0gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
⠹ MagicMirror Building module: snowboy, Completed: 0gyp http GET https://www.electronjs.org/headers/v19.1.0/node-v19.1.0-headers.tar.gz
⠇ MagicMirror Building module: snowboy, Completed: 0gyp http 200 https://artifacts.electronjs.org/headers/v19.1.0/node-v19.1.0-headers.tar.gz?force_headers_dist=1
⠼ MagicMirror Building module: snowboy, Completed: 0gyp http GET https://www.electronjs.org/headers/v19.1.0/SHASUMS256.txt
⠴ MagicMirror Building module: snowboy, Completed: 0gyp http 200 https://artifacts.electronjs.org/headers/v19.1.0/SHASUMS256.txt?force_headers_dist=1
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-Detector/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/EXT-Detector/node_modules/@bugsounet/snowboy/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/19.1.0/include/node/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/19.1.0’,
gyp info spawn args ‘-Dnode_gyp_dir=/home/pi/MagicMirror/modules/EXT-Detector/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/19.1.0/<(target_arch)/node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy’,
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 args ]
⠙ MagicMirror Building module: snowboy, Completed: 0gyp info spawn make
gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
make: Entering directory ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/build’
CXX(target) Release/obj.target/snowboy/lib/snowboy.o
⠹ MagicMirror Building module: snowboy, Completed: 0<command-line>: warning: “_GLIBCXX_USE_CXX11_ABI” redefined
<command-line>: note: this is the location of the previous definition
⠧ MagicMirror Building module: snowboy, Completed: 0In file included from …/…/…/nan/nan.h:60,
from …/lib/snowboy.cc:1:
/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/19.1.0/include/node/node.h:855:7: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
855 | (node::addon_register_func) (regfunc),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/19.1.0/include/node/node.h:889:3: note: in expansion of macro ‘NODE_MODULE_X’
889 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
…/lib/snowboy.cc:183:1: note: in expansion of macro ‘NODE_MODULE’
183 | NODE_MODULE(SnowboyDetect, SnowboyDetect::Init)
| ^~~~~~~~~~~
⠋ MagicMirror Building module: snowboy, Completed: 0 SOLINK_MODULE(target) Release/obj.target/snowboy.node
⠼ MagicMirror Building module: snowboy, Completed: 0 COPY Release/snowboy.node
COPY /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/binding/Release/electron-v19.1-linux-arm64/snowboy.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/build’
MagicMirror Rebuild Complete
Support is now moved in a dedicated Server: https://forum.bugsounet.fr
@bugsounetEXT-Detector is now installed !
Can anyone please help me? I would be very thankful to you!