homebridge-cmd-television icon indicating copy to clipboard operation
homebridge-cmd-television copied to clipboard

unable to run altered synology install

Open iogitio opened this issue 2 years ago • 4 comments

mkdir /homebridge/python apk add gcc openssh python3-dev rust pip3 install --upgrade pip pip3 install --target /homebridge/python cryptography pip3 install --target /homebridge/python pyatv npm config set ssl-strict=false npm i --prefix /homebridge https://github.com/NorthernMan54/homebridge-cmd-television

the 2nd command responds with... "bash: apk: command not found" ... did this the first time and it worked months ago, but now it doesn't? stumped

iogitio avatar Jul 17 '22 10:07 iogitio

homebridge log:

[7/7/2022, 4:37:40 PM] ==================== [7/7/2022, 4:37:40 PM] ERROR LOADING PLUGIN homebridge-cmd-television: [7/7/2022, 4:37:40 PM] Error: Cannot find module 'request' Require stack:

  • /homebridge/node_modules/homebridge-cmd-television/index.js
  • /homebridge/node_modules/homebridge/lib/plugin.js
  • /homebridge/node_modules/homebridge/lib/pluginManager.js
  • /homebridge/node_modules/homebridge/lib/server.js
  • /homebridge/node_modules/homebridge/lib/cli.js
  • /homebridge/node_modules/homebridge/bin/homebridge at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/homebridge/node_modules/homebridge-cmd-television/index.js:1:15) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) [7/7/2022, 4:37:40 PM] ====================

iogitio avatar Jul 17 '22 23:07 iogitio

Same problem here. Any idea to resolve this?

icho911 avatar Apr 15 '23 19:04 icho911

@justinmm2 any thoughts ?

NorthernMan54 avatar Apr 16 '23 13:04 NorthernMan54

It looks like the base container changed to an Ubuntu-based image last May: https://github.com/oznu/docker-homebridge/commit/c819c29e3cd996de70e7c7dc473bad45e9d383f6#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557L4

This basically means that instead of using "apk" to add packages, the container now uses apt-get to install packages. I can't come up with full instructions this week, but anyone (@iogitio @icho911 ) experiencing this might want to replace the "apk add" step with something like this:

apt-get install gcc openssh-client python3-dev

I found those using "apt-cache search "; sadly, I don't see anything relevant for rust. If those aren't enough some other packages you might want to try with apt-get install are: python3.8-dev, libssh-4, openssl.

Hope this helps; I can try to look more at this soon, but I know I have my hands full at the moment

justinmm2 avatar Apr 16 '23 14:04 justinmm2