NorthernMan54 / homebridge-cmd-television

20 stars 1 forks source link

unable to run altered synology install #19

Open iogitio opened 1 year ago

iogitio commented 1 year ago

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 commented 1 year ago

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:

icho911 commented 1 year ago

Same problem here. Any idea to resolve this?

NorthernMan54 commented 1 year ago

@justinmm2 any thoughts ?

justinmm2 commented 1 year ago

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