Closed alezanott closed 4 years ago
Check: https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md and reinstall the plugin
Check: https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md and reinstall the plugin
Thank you @beele. Reinstalling the plugin will also fix the registration problem?
@alezanott the registration problem is because the plugin crashed due to the missing node bindings. Once that is resolved the platform registration should work fine during startup.
@beele I've followed the guide on that link but basically it didn't brought to nothing. Is possible that on HOOBS not is not running with root privileges, so I get this kind of error? Here part of the log where I get errors (running node configuration in verbose mode)
gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.97-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "configure" "--verbose"
gyp ERR! cwd /home/hoobs/.hoobs/node_modules/@tensorflow/tfjs-node
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v7.1.0
gyp ERR! not ok
@alezanott can you try with the latest beta, login on hoobs, open a terminal and execute:
sudo npm i homebridge-unifi-protect-camera-motion@0.4.2-beta.9 --unsafe-perm=true
I've formatted a backup pi with hoobs and after some trial and error got it running (hopefully I did not break it for non hoobs installs :/)
Thank you @beele. Now everything is working fine! When you will release the final version of 0.4.2 will HOOBS automatically update to the correct version or do I need to uninstall the beta and then reinstall the final one?
@alezanott It should be fine, I've release 0.4.2, can you try updating to it and see if it still works?
Closing due to inactivity
I'm running the plugin on HOOBS. I've also run the command
npm rebuild @tensorflow/tfjs-node build-addon-from-source
to rebuild Tensorflow, but nothing changed. Any clue of what's going on @beele ? Here the output: