hoobs-org / HOOBS

Build your Smart Home with HOOBS. Connect over 2,000 Accessories to your favorite Ecosystem.
https://hoobs.org
GNU General Public License v3.0
553 stars 51 forks source link

installation on macOS #1720

Closed ravedoglv closed 2 years ago

ravedoglv commented 2 years ago

Honestly. I don’t have the time or the patience or mostly the intellect to fix a problem. Someone fucked my install of HOOBS 3.x by installing Scrypted on my Mac. HOOBS is broken. Don’t know how to fix. I will pay someone from HOOBS to help me sort this out.

I have saved config and system setting from 3.x

I have 22 devices offline and just would rather pay someone to help. I am not in a position to solve this on my own.

please help

ravedoglv commented 2 years ago

Tried reinstalling HOOBS for. The Mac cli using

npm install -g --unsafe-perm @hoobs/hoobs

Got this:

npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/@hoobs/hoobs/node_modules/node-pty npm ERR! command failed npm ERR! command sh -c node scripts/install.js npm ERR! CXX(target) Release/obj.target/pty/src/unix/pty.o npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.1 | darwin | x64 npm ERR! gyp info find Python using Python version 3.9.9 found at "/usr/local/opt/python@3.9/bin/python3.9" npm ERR! gyp http GET https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz npm ERR! gyp http 200 https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz npm ERR! gyp http GET https://nodejs.org/download/release/v16.13.1/SHASUMS256.txt npm ERR! gyp http 200 https://nodejs.org/download/release/v16.13.1/SHASUMS256.txt npm ERR! gyp info spawn /usr/local/opt/python@3.9/bin/python3.9 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/node-pty/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/jmn/Library/Caches/node-gyp/16.13.1/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/jmn/Library/Caches/node-gyp/16.13.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/jmn/Library/Caches/node-gyp/16.13.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/node-pty', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from ../src/unix/pty.cc:20: npm ERR! In file included from ../../nan/nan.h:58: npm ERR! In file included from /Users/jmn/Library/Caches/node-gyp/16.13.1/include/node/node.h:63: npm ERR! In file included from /Users/jmn/Library/Caches/node-gyp/16.13.1/include/node/v8.h:30: npm ERR! /Users/jmn/Library/Caches/node-gyp/16.13.1/include/node/v8-internal.h:492:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'? npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ~^~~ npm ERR! remove_cv npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:710:50: note: 'remove_cv' declared here npm ERR! template struct _LIBCPP_TEMPLATE_VIS remove_cv npm ERR! ^ npm ERR! 1 error generated. npm ERR! make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Darwin 21.1.0 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/@hoobs/hoobs/node_modules/node-pty npm ERR! gyp ERR! node -v v16.13.1 npm ERR! gyp ERR! node-gyp -v v8.3.0 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /Users/jmn/.npm/_logs/2021-12-20T00_54_41_971Z-debug.log

ravedoglv commented 2 years ago

So I did some googling. Apparently Node was too far ahead. And after digging thru old closed issues, I found this command

wget -q -O - http://bit.ly/get-hoobs | sudo bash /dev/stdin --node lts

Then I ran

sudo npm install -g --unsafe-perm @hoobs/hoobs

Which seemed to work. Everything is running on 3.3.12 on Monterey.

But honestly, this shouldn’t be this hard. There is no documentation on any of this. Mac stuff has been scrubbed from the docs and I literally had to sift thru dozens of issues here to glean commands here and there. This gives me no faith in HOOBS. If you are going to create such an architecture, then charge for it then support it. I can’t tell you how many issues that are similar that go unanswered both here and on Reddit. Charge money, hire support. Otherwise you are crating a system for geeks by geeks just like HomeAssistant. I’m not insterested in having this as a hobby. I want things to work.

Now granted I created this problem in the first place, but when I tried to fix it, there’s no docs or support. I literally couldn’t find the original docs that help me start this thing to begin with.

If you are trying to push people to buying your box and move to 4 then removing any reference to 3.x installs isn’t gonna make people happy.

BobbySlope commented 2 years ago

Heres the link to an macOS installation package:

https://github.com/hoobs-org/image/releases/download/v4.1.17/hoobs-v4.1.17-darwin.pkg

Try to install this one.

GoWithitRoger commented 2 years ago

@ravedoglv — Did you ever find a better solution to this? I'm trying to install on a Mac, as well.

The MacOS package @bobbyslope posted installs just fine, but I don't see that it's installing the server/service, just the HOOBS Desktop application, which reports "No devices".

That wget command sequence you posted eventually worked for me. And simply running the command 'hoobs' works: HOOBS listening on port 80. No plugins installed. Bridge is running on port 51826.

I can raise the admin interface in a browser on the machine's IP and port 80. But it's v3.xsomething, not the v4 I've seen is the current version.