eschava / node-red-contrib-xiaomi-ble

Xiaomi Bluetooth4 (BLE) sensors
MIT License
19 stars 15 forks source link

Flows stopped due to missing node types #9

Closed quito96 closed 5 years ago

quito96 commented 5 years ago

Hi Eschava,

today i install your node on my pi3+ with NodeRed an get after installation the message and Flow Deploy: Flows stopped due to missing node types See Information below: How can i fix that?

BR Quito

pi@quitos_rpi3:~ $ npm install node-red-contrib-xiaomi-ble

usb@1.5.0 install /home/pi/node_modules/usb node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.5.0/usb_bindings-v1.5.0-node-v64-linux-arm.tar.gz node-pre-gyp WARN Pre-built binaries not found for usb@1.5.0 and node@10.15.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) make: Verzeichnis ?/home/pi/node_modules/usb/build? wird betreten CC(target) Release/obj.target/libusb/libusb/libusb/core.o CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o CC(target) Release/obj.target/libusb/libusb/libusb/io.o CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o CC(target) Release/obj.target/libusb/libusb/libusb/sync.o CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o AR(target) Release/obj.target/usb.a COPY Release/usb.a CXX(target) Release/obj.target/usb_bindings/src/node_usb.o ../src/node_usb.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE SetDebugLevel(Nan::NAN_METHOD_ARGS_TYPE)': ../src/node_usb.cc:99:73: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] if (info.Length() != 1 || !info[0]->IsUint32() || info[0]->Uint32Value() > 4) { ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0, from ../src/node_usb.h:12, from ../src/node_usb.cc:1: /home/pi/.node-gyp/10.15.0/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ ../src/node_usb.cc:103:53: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] libusb_set_debug(usb_context, info[0]->Uint32Value()); ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0, from ../src/node_usb.h:12, from ../src/node_usb.cc:1: /home/pi/.node-gyp/10.15.0/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ ../src/node_usb.cc: In function 'void handleHotplug(std::pair<libusb_device, libusb_hotplug_event>)': ../src/node_usb.cc:151:58: warning: 'v8::Local Nan::MakeCallback(v8::Local, const char, int, v8::Local)' is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../node_modules/nan/nan.h:1001:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~ ../src/node_usb.cc: In function 'v8::Local libusbException(int)': ../src/node_usb.cc:301:14: warning: 'v8::Local v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] e->ToObject()->Set(Nan::New("errno").ToLocalChecked(), Nan::New(errorno)); ^ In file included from ../src/node_usb.h:12:0, from ../src/node_usb.cc:1: /home/pi/.node-gyp/10.15.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ CXX(target) Release/obj.target/usb_bindings/src/device.o ../src/device.cc: In static member function 'static void Req::default_after(uv_work_t)': ../src/device.cc:237:64: warning: 'v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)' is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/device.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~ CXX(target) Release/obj.target/usb_bindings/src/transfer.o ../src/transfer.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE Transfer_Submit(Nan::NAN_METHOD_ARGS_TYPE)': ../src/transfer.cc:58:47: warning: 'v8::Local v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] Local buffer_obj = info[0]->ToObject(); ^ In file included from ../src/node_usb.h:12:0, from ../src/transfer.cc:1: /home/pi/.node-gyp/10.15.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ ../src/transfer.cc: In function 'void handleCompletion(Transfer)': ../src/transfer.cc:126:72: warning: 'v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)' is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~ SOLINK_MODULE(target) Release/obj.target/usb_bindings.node COPY Release/usb_bindings.node COPY /home/pi/node_modules/usb/src/binding/usb_bindings.node TOUCH Release/obj.target/action_after_build.stamp make: Verzeichnis ?/home/pi/node_modules/usb/build? wird verlassen

bluetooth-hci-socket@0.5.1 install /home/pi/node_modules/bluetooth-hci-socket node-gyp rebuild

make: Verzeichnis ?/home/pi/node_modules/bluetooth-hci-socket/build? wird betreten CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o In file included from ../../nan/nan.h:190:0, from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan_maybe_43_inl.h: In function 'Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)': ../../nan/nan_maybe_43_inl.h:88:15: error: 'class v8::Object' has no member named 'ForceSet' return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^~~~ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../nan/nan.h: In function 'v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)': ../../nan/nan.h:817:60: warning: 'v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/node_buffer.h:25:0, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.node-gyp/10.15.0/include/node/node.h:177:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /home/pi/.node-gyp/10.15.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../nan/nan.h: In function 'v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)': ../../nan/nan.h:831:62: warning: 'v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/node_buffer.h:25:0, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.node-gyp/10.15.0/include/node/node.h:170:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /home/pi/.node-gyp/10.15.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../nan/nan.h: In function 'v8::Local Nan::MakeCallback(v8::Local, const char, int, v8::Local)': ../../nan/nan.h:845:62: warning: 'v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char, int, v8::Local)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/node_buffer.h:25:0, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.node-gyp/10.15.0/include/node/node.h:163:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /home/pi/.node-gyp/10.15.0/include/node/node.h:91:42: note: in definition of macro 'NODEDEPRECATED' attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../nan/nan.h: In member function 'v8::Local Nan::Callback::Call(v8::Isolate, v8::Local, int, v8::Local) const': ../../nan/nan.h:1463:5: warning: 'v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/node_buffer.h:25:0, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.node-gyp/10.15.0/include/node/node.h:177:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /home/pi/.node-gyp/10.15.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' attribute((deprecated(message))) declarator ^~~~~~ ../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::emitErrnoError()': ../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to 'v8::Function::NewInstance(int, v8::Local [1])' Local error = errorConstructor->NewInstance(1, constructorArgs); ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/node.h:63:0, from /home/pi/.node-gyp/10.15.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.node-gyp/10.15.0/include/node/v8.h:3993:44: note: candidate: v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~ /home/pi/.node-gyp/10.15.0/include/node/v8.h:3993:44: note: candidate expects 3 arguments, 2 provided /home/pi/.node-gyp/10.15.0/include/node/v8.h:3996:44: note: candidate: v8::MaybeLocal v8::Function::NewInstance(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~ /home/pi/.node-gyp/10.15.0/include/node/v8.h:3996:44: note: candidate expects 1 argument, 2 provided ../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)': ../src/BluetoothHciSocket.cpp:395:34: warning: 'int64_t v8::Value::IntegerValue() const' is deprecated: Use maybe version [-Wdeprecated-declarations] devId = arg0->IntegerValue(); ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.15.0/include/node/node.h:63, from /home/pi/.node-gyp/10.15.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.node-gyp/10.15.0/include/node/v8.h:2476:46: note: declared here V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const); ^ /home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ ../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)': ../src/BluetoothHciSocket.cpp:417:34: warning: 'int64_t v8::Value::IntegerValue() const' is deprecated: Use maybe version [-Wdeprecated-declarations] devId = arg0->IntegerValue(); ^ In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.15.0/include/node/node.h:63, from /home/pi/.node-gyp/10.15.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.node-gyp/10.15.0/include/node/v8.h:2476:46: note: declared here V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const); ^ /home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ binding.target.mk:99: die Regel f?r Ziel ?Release/obj.target/binding/src/BluetoothHciSocket.o? scheiterte make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Fehler 1 make: Verzeichnis ?/home/pi/node_modules/bluetooth-hci-socket/build? wird verlassen gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Linux 4.14.93-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/node_modules/bluetooth-hci-socket gyp ERR! node -v v10.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN json@1.0.0 No description npm WARN json@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

  • node-red-contrib-xiaomi-ble@1.2.3 updated 1 package, moved 2 packages and audited 214 packages in 55.43s found 20 vulnerabilities (8 low, 7 moderate, 5 high) run npm audit fix to fix them, or npm audit for details pi@quitos_rpi3:~ $
eschava commented 5 years ago
quito96 commented 5 years ago

If it recommend to install node-bluetooth-hci-socket, i have no chance to install this packet on my pi 3 :-( // the solution in issue 4 dosen´t work for me.

eschava commented 5 years ago

You need to resolve issues with installation of node-bluetooth-hci-socket first Otherwise, you will not be able to install this component