cgomesu / tvhlink

TVHlink (Tvheadend + Streamlink) integration
https://cgomesu.com/blog/Tvhlink
55 stars 8 forks source link

Install on Pi4 #13

Closed kingbecher closed 2 years ago

kingbecher commented 2 years ago

Hi i cant install the script

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
Setting permissions
[cont-init.d] 30-config: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] files found in /config/custom-cont-init.d executing
[custom-init] streamlink_for_tvh_container.sh: executing...
***********************************************
****** Streamlink install/upgrade script ******
***********************************************
Author: cgomesu
Repo: https://github.com/cgomesu/tvhlink
***********************************************
[TVHlink] [info] Upgrading Python3...
[TVHlink] [info] APK: Installing packages from the edge branch.
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/armv7/APKINDEX.tar.gz
OK: 294 MiB in 257 packages
[TVHlink] [info] Installing Streamlink...
[TVHlink] [info] APK and PIP3: Installing required packages.
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/armv7/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/armv7/APKINDEX.tar.gz
ERROR: unable to select packages:
  gcc (no such package):
    required by: .build-deps-19691231.235959[gcc]
  musl-dev (no such package):
    required by: .build-deps-19691231.235959[musl-dev]
***********************************************
* Finished Streamlink install/upgrade script
* Message: APK: Critical error. Unable install required packages.
***********************************************
[custom-init] streamlink_for_tvh_container.sh: exited 1
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
1970-01-01 01:00:00.000 [   INFO] main: Log started
1970-01-01 01:00:00.000 [   INFO] http: Starting HTTP server 0.0.0.0:9981
1970-01-01 01:00:00.000 [   INFO] htsp: Starting HTSP server 0.0.0.0:9982
1970-01-01 01:00:00.000 [   INFO] config: loaded
1970-01-01 01:00:00.000 [   INFO] config: scanfile (re)initialization with path <none>
1970-01-01 01:00:00.000 [   INFO] transcode: 'video' context type registered
1970-01-01 01:00:00.000 [   INFO] transcode: 'audio' context type registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHH264Decoder' decoder helper registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHTHEORADecoder' decoder helper registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHAACDecoder' decoder helper registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHVORBISDecoder' decoder helper registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHOPUSDecoder' decoder helper registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHMPEG2VIDEOEncoder' encoder helper registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHH264Encoder' encoder helper registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHHEVCEncoder' encoder helper registered
1970-01-01 01:00:00.000 [   INFO] transcode: '&TVHAACEncoder' encoder helper registered
1970-01-01 01:00:00.000 [   INFO] codec: 'mpeg2video' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'mp2' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'aac' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'vorbis' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'flac' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'libx264' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'libx265' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'libvpx' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'libvpx-vp9' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'libtheora' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'libvorbis' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'libopus' encoder registered
1970-01-01 01:00:00.000 [   INFO] codec: 'webtv-h264' codec profile created
1970-01-01 01:00:00.000 [   INFO] codec: 'webtv-aac' codec profile created
1970-01-01 01:00:00.000 [   INFO] codec: 'webtv-vp8' codec profile created
1970-01-01 01:00:00.000 [   INFO] codec: 'webtv-vorbis' codec profile created
1970-01-01 01:00:00.000 [   INFO] descrambler: adding CAID 2600/FFFF as ConstCW interval 10000ms pc 20 ep default (BISS)
1970-01-01 01:00:00.000 [   INFO] descrambler: adding CAID 0E00/FFFF as MultiPID interval 1000ms pc 2 ep default (PowerVu)
1970-01-01 01:00:00.000 [   INFO] iptv: Using 2 input thread(s)
1970-01-01 01:00:00.000 [   INFO] dvr: Creating new configuration ''
1970-01-01 01:00:00.000 [   INFO] epggrab: module uk_freesat created
1970-01-01 01:00:00.000 [   INFO] epggrab: module uk_freesat_eit created
1970-01-01 01:00:00.000 [   INFO] epggrab: module uk_freeview created
1970-01-01 01:00:00.000 [   INFO] epggrab: module nz_freeview2 created
1970-01-01 01:00:00.000 [   INFO] epggrab: module nz_freeview1 created
1970-01-01 01:00:00.000 [   INFO] epggrab: module viasat_baltic created
1970-01-01 01:00:00.000 [   INFO] epggrab: module Bulsatcom_39E created
1970-01-01 01:00:00.000 [   INFO] epggrab: module uk_cable_virgin created
1970-01-01 01:00:00.000 [   INFO] epggrab: module eit created
1970-01-01 01:00:00.000 [   INFO] epggrab: module psip created
1970-01-01 01:00:00.000 [   INFO] epggrab: module opentv-ausat created
1970-01-01 01:00:00.000 [   INFO] epggrab: module opentv-skyuk created
1970-01-01 01:00:00.000 [   INFO] epggrab: module opentv-skynz created
1970-01-01 01:00:00.000 [   INFO] epggrab: module opentv-skyit created
1970-01-01 01:00:00.000 [   INFO] epggrab: module xmltv created
1970-01-01 01:00:00.000 [   INFO] spawn: Executing "/usr/bin/tv_find_grabbers"
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_file created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_wg created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_na_dd created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_is created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_fr created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_tr created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_zz_sdjson_sqlite created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_na_dtv created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_na_tvmedia created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_uk_bleb created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_eu_xmltvse created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_combiner created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_fi_sv created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_uk_tvguide created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_dk_dr created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_huro created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_ar created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_eu_epgdata created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_it created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_zz_sdjson created
1970-01-01 01:00:00.000 [   INFO] epggrab: module /usr/bin/tv_grab_fi created
1970-01-01 01:00:00.000 [   INFO] epgdb: gzip format detected, inflating (ratio 138.6% deflated size 79)
1970-01-01 01:00:00.000 [   INFO] epgdb: parsing 57 bytes
1970-01-01 01:00:00.000 [   INFO] epgdb: loaded v3
1970-01-01 01:00:00.000 [   INFO] epgdb:   config     1
1970-01-01 01:00:00.000 [   INFO] epgdb:   broadcasts 0
1970-01-01 01:00:00.000 [   INFO] dvr: Purging obsolete autorec entries for current schedule
1970-01-01 01:00:00.000 [ NOTICE] START: HTS Tvheadend version 4.3-1986~g09a2c71ab started, running as PID:314 UID:1000 GID:1000, CWD:/run/s6/services/tvheadend CNF:/config
1970-01-01 01:00:00.000 [   INFO] mpegts: Youtube - France 24 English in Youtube - tuning on IPTV #1
1970-01-01 01:00:00.000 [   INFO] subscription: 0001: "scan" subscribing to mux "Youtube - France 24 English", weight: 6, adapter: "IPTV #1", network: "Youtube", service: "Raw PID Subscription"
1970-01-01 01:00:00.000 [   INFO] spawn: Executing "/usr/bin/env"
1970-01-01 01:00:00.000 [  ERROR] spawn: env: ‘streamlink’: No such file or directory
1970-01-01 01:00:00.000 [  ERROR] iptv: stdin pipe 32 unexpectedly closed: No data
1970-01-01 01:00:00.000 [   INFO] scanfile: DVB-S - loaded 1 regions with 115 networks
1970-01-01 01:00:00.000 [   INFO] scanfile: DVB-T - loaded 44 regions with 1124 networks
1970-01-01 01:00:00.000 [   INFO] scanfile: DVB-C - loaded 19 regions with 64 networks
1970-01-01 01:00:00.000 [   INFO] scanfile: ATSC-T - loaded 2 regions with 12 networks
1970-01-01 01:00:00.000 [   INFO] scanfile: ATSC-C - loaded 1 regions with 5 networks
1970-01-01 01:00:00.000 [   INFO] scanfile: ISDB-T - loaded 2 regions with 1297 networks

Seems like the website has an Problem ?

cgomesu commented 2 years ago

Seems like the website has an Problem ?

that is exactly what happened, @kingbecher:

[TVHlink] [info] APK and PIP3: Installing required packages.
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/armv7/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/armv7/APKINDEX.tar.gz
ERROR: unable to select packages:
 gcc (no such package):
   required by: .build-deps-19691231.235959[gcc]
 musl-dev (no such package):
   required by: .build-deps-19691231.235959[musl-dev]

it failed to reach http://dl-cdn.alpinelinux.org/alpine/v3.12/main, which is where the pkgs gcc and musl-dev are. try again (restart the container). it didn't fail while updating Python, so I think it was a temporary thing on alpine's cdn.

kingbecher commented 2 years ago

So now i have restarted the Container

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
Setting permissions
[cont-init.d] 30-config: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] files found in /config/custom-cont-init.d executing
[custom-init] streamlink_for_tvh_container.sh: executing...
***********************************************
****** Streamlink install/upgrade script ******
***********************************************
Author: cgomesu
Repo: https://github.com/cgomesu/tvhlink
***********************************************
[TVHlink] [info] Upgrading Python3...
[TVHlink] [info] APK: Installing packages from the edge branch.
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/edge/community: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/armv7/APKINDEX.tar.gz
OK: 294 MiB in 257 packages
[TVHlink] [info] Installing Streamlink...
[TVHlink] [info] APK and PIP3: Installing required packages.
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/armv7/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/community: temporary error (try again later)
ERROR: unable to select packages:
  gcc (no such package):
    required by: .build-deps-19691231.235959[gcc]
  musl-dev (no such package):
    required by: .build-deps-19691231.235959[musl-dev]
***********************************************
* Finished Streamlink install/upgrade script
* Message: APK: Critical error. Unable install required packages.
***********************************************
[custom-init] streamlink_for_tvh_container.sh: exited 1
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

but still it means no gcc and musl-dev gcc and musl-dev is installed on raspbian on Raspberry Pi 4

cgomesu commented 2 years ago

it seems that the http://dl-cdn.alpinelinux.org/alpine/ repo mirror, which is used by the script, is actually okay right now (https://mirrors.alpinelinux.org/#mirror1). I just restarted one of my containers and it is able to fetch from http://dl-cdn.alpinelinux.org/alpine/ just fine, so I'm now inclined to think that it is a network issue on your end. as an alternative, you might want to try one of the other official mirrors (https://mirrors.alpinelinux.org/) or try connecting via a proxy/vpn or both.

gcc and musl-dev is installed on raspbian on Raspberry Pi 4

the host OS is independent of the container though, and the latter runs on Alpine and usually does not include such packages.

kingbecher commented 2 years ago

ok now i have checked there is no itstalled pyton3 n the root system Is that ok so ?

cgomesu commented 2 years ago

ok now i have checked there is no itstalled pyton3 n the root system Is that ok so ?

no, it's not okay. latest python3 version is required and is installed from the edge Alpine branch. gcc and musl-dev are only required to build a few dependencies from streamlink.

kingbecher commented 2 years ago

Python 3.7.3 is installed now

im installing streamlink now on the host maschine via pip3

kingbecher commented 2 years ago

pipe:///usr/bin/env streamlink --stdout --default-stream best --url https://www.youtube.com/user/france24english/live

the i have this problem

2021-12-26 20:11:11.943 [ INFO] spawn: Executing "/usr/local/bin" 2021-12-26 20:11:11.943 [ INFO] subscription: 0008: "scan" subscribing to mux "youtube", weight: 6, adapter: "IPTV #1", network: "Youtube", service: "Raw PID Subscription" 2021-12-26 20:11:12.751 [ ERROR] iptv: stdin pipe 37 unexpectedly closed: No data 2021-12-26 20:11:26.938 [ INFO] mpegts: youtube in Youtube - scan no data, failed 2021-12-26 20:11:26.938 [ INFO] subscription: 0008: "scan" unsubscribing

no stream ...

But when i start this

streamlink --stdout --default-stream worst --url https://www.youtube.com/user/france24english/live

it works inside the putty comand...

cgomesu commented 2 years ago

are you running the arm64 image? (see https://docs.linuxserver.io/images/docker-tvheadend#supported-architectures). I have an SBC running that container and I didn't have any issue with it a couple of days ago. maybe something changed since then but I cannot check everything now and try to replicate your issue. I'll take a look at it this week though. in the meantime, I suggest trying to solve the initial issue first and let the script run without errors.

cgomesu commented 2 years ago

I'm unable to replicate this issue on a fresh arm64 container:

***********************************************
****** Streamlink install/upgrade script ******
***********************************************
Author: cgomesu
Repo: https://github.com/cgomesu/tvhlink
***********************************************
[TVHlink] [info] Upgrading Python3...
[TVHlink] [info] APK: Installing packages from the edge branch.
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz
(1/48) Upgrading musl (1.1.24-r10 -> 1.2.2-r7)
(2/48) Upgrading libcrypto1.1 (1.1.1l-r0 -> 1.1.1m-r1)
(3/48) Upgrading libssl1.1 (1.1.1l-r0 -> 1.1.1m-r1)
(4/48) Upgrading ca-certificates-bundle (20191127-r4 -> 20191127-r7)
(5/48) Upgrading readline (8.0.4-r0 -> 8.1.1-r0)
(6/48) Upgrading expat (2.2.9-r1 -> 2.4.2-r0)
(7/48) Upgrading libffi (3.3-r2 -> 3.4.2-r1)
(8/48) Upgrading p11-kit (0.23.22-r0 -> 0.24.0-r1)
(9/48) Upgrading wayland-libs-client (1.18.0-r4 -> 1.20.0-r0)
(10/48) Upgrading libgcc (9.3.0-r2 -> 11.2.1_git20211128-r3)
(11/48) Upgrading libstdc++ (9.3.0-r2 -> 11.2.1_git20211128-r3)
(12/48) Upgrading libxml2 (2.9.12-r0 -> 2.9.12-r3)
(13/48) Upgrading libgpg-error (1.37-r0 -> 1.42-r1)
(14/48) Upgrading libgcrypt (1.8.8-r1 -> 1.9.4-r0)
(15/48) Upgrading libxslt (1.1.34-r0 -> 1.1.34-r1)
(16/48) Installing py3-lxml (4.7.1-r1)
(17/48) Upgrading gdbm (1.13-r1 -> 1.22-r0)
(18/48) Installing mpdecimal (2.5.1-r1)
(19/48) Upgrading sqlite-libs (3.32.1-r1 -> 3.37.0-r0)
(20/48) Upgrading python3 (3.8.10-r0 -> 3.10.1-r0)
(21/48) Upgrading py3-appdirs (1.4.4-r1 -> 1.4.4-r3)
(22/48) Upgrading py3-certifi (2020.4.5.1-r0 -> 2020.12.5-r2)
(23/48) Installing py3-charset-normalizer (2.0.7-r1)
(24/48) Upgrading py3-idna (2.9-r0 -> 3.3-r1)
(25/48) Upgrading py3-urllib3 (1.25.9-r0 -> 1.26.7-r1)
(26/48) Upgrading py3-requests (2.23.0-r0 -> 2.26.0-r2)
(27/48) Purging py3-chardet (3.0.4-r4)
(28/48) Installing py3-msgpack (1.0.2-r2)
(29/48) Installing py3-lockfile (0.12.2-r5)
(30/48) Installing py3-cachecontrol (0.12.10-r1)
(31/48) Installing py3-colorama (0.4.4-r2)
(32/48) Installing py3-contextlib2 (21.6.0-r2)
(33/48) Installing py3-distlib (0.3.4-r1)
(34/48) Installing py3-distro (1.6.0-r1)
(35/48) Upgrading py3-six (1.15.0-r0 -> 1.16.0-r1)
(36/48) Installing py3-webencodings (0.5.1-r5)
(37/48) Installing py3-html5lib (1.1-r2)
(38/48) Upgrading py3-parsing (2.4.7-r0 -> 2.4.7-r3)
(39/48) Upgrading py3-packaging (20.4-r0 -> 21.3-r0)
(40/48) Installing py3-tomli (2.0.0-r1)
(41/48) Installing py3-pep517 (0.12.0-r1)
(42/48) Installing py3-progress (1.6-r1)
(43/48) Installing py3-retrying (1.3.3-r3)
(44/48) Upgrading py3-ordered-set (4.0.1-r0 -> 4.0.2-r3)
(45/48) Upgrading py3-setuptools (47.0.0-r0 -> 52.0.0-r5)
(46/48) Installing py3-toml (0.10.2-r3)
(47/48) Installing py3-pip (21.3.1-r0)
(48/48) Upgrading python2 (2.7.18-r0 -> 2.7.18-r4)
Executing busybox-1.31.1-r21.trigger
Executing ca-certificates-20191127-r4.trigger
OK: 326 MiB in 258 packages
[TVHlink] [info] Installing Streamlink...
[TVHlink] [info] APK and PIP3: Installing required packages.
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz
(1/12) Downgrading musl (1.2.2-r7 -> 1.1.24-r10)
(2/12) Downgrading libgcc (11.2.1_git20211128-r3 -> 9.3.0-r2)
(3/12) Installing binutils (2.34-r2)
(4/12) Installing isl (0.18-r0)
(5/12) Installing libgomp (9.3.0-r2)
(6/12) Installing libatomic (9.3.0-r2)
(7/12) Installing libgphobos (9.3.0-r2)
(8/12) Installing mpfr4 (4.0.2-r4)
(9/12) Installing mpc1 (1.1.0-r1)
(10/12) Installing gcc (9.3.0-r2)
(11/12) Installing musl-dev (1.1.24-r10)
(12/12) Installing .build-deps (20211228.124657)
Executing busybox-1.31.1-r21.trigger
OK: 435 MiB in 268 packages
Requirement already satisfied: setuptools in /usr/lib/python3.10/site-packages (52.0.0)
Collecting setuptools
  Downloading setuptools-60.1.0-py3-none-any.whl (952 kB)
Requirement already satisfied: pip in /usr/lib/python3.10/site-packages (21.3.1)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 52.0.0
    Uninstalling setuptools-52.0.0:
      Successfully uninstalled setuptools-52.0.0
Successfully installed setuptools-60.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[TVHlink] [info] PIP3: Installing Streamlink.
Collecting streamlink
  Downloading streamlink-3.0.3-py3-none-any.whl (327 kB)
Collecting websocket-client<2.0,>=1.2.1
  Downloading websocket_client-1.2.3-py3-none-any.whl (53 kB)
Collecting PySocks!=1.5.7,>=1.5.6
  Downloading PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting isodate
  Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)
Requirement already satisfied: requests<3.0,>=2.26.0 in /usr/lib/python3.10/site-packages (from streamlink) (2.26.0)
Collecting pycryptodome<4,>=3.4.3
  Downloading pycryptodome-3.12.0.zip (3.7 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: lxml<5.0,>=4.6.4 in /usr/lib/python3.10/site-packages (from streamlink) (4.7.1)
Collecting pycountry
  Downloading pycountry-20.7.3.tar.gz (10.1 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.10/site-packages (from requests<3.0,>=2.26.0->streamlink) (1.26.7)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.10/site-packages (from requests<3.0,>=2.26.0->streamlink) (2020.12.5)
Requirement already satisfied: charset_normalizer~=2.0.0 in /usr/lib/python3.10/site-packages (from requests<3.0,>=2.26.0->streamlink) (2.0.7)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.10/site-packages (from requests<3.0,>=2.26.0->streamlink) (3.3)
Requirement already satisfied: six in /usr/lib/python3.10/site-packages (from isodate->streamlink) (1.16.0)
Using legacy 'setup.py install' for pycryptodome, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pycountry, since package 'wheel' is not installed.
Installing collected packages: websocket-client, PySocks, pycryptodome, pycountry, isodate, streamlink
    Running setup.py install for pycryptodome: started
    Running setup.py install for pycryptodome: finished with status 'done'
    Running setup.py install for pycountry: started
    Running setup.py install for pycountry: finished with status 'done'
Successfully installed PySocks-1.7.1 isodate-0.6.1 pycountry-20.7.3 pycryptodome-3.12.0 streamlink-3.0.3 websocket-client-1.2.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[TVHlink] [info] APK: Removing packages no longer required.
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/main: No such file or directory
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/community: No such file or directory
(1/10) Purging .build-deps (20211228.124657)
(2/10) Purging gcc (9.3.0-r2)
(3/10) Purging binutils (2.34-r2)
(4/10) Purging libatomic (9.3.0-r2)
(5/10) Purging libgomp (9.3.0-r2)
(6/10) Purging libgphobos (9.3.0-r2)
(7/10) Purging musl-dev (1.1.24-r10)
(8/10) Purging isl (0.18-r0)
(9/10) Purging mpc1 (1.1.0-r1)
(10/10) Purging mpfr4 (4.0.2-r4)
Executing busybox-1.31.1-r21.trigger
OK: 326 MiB in 258 packages
[TVHlink] [info] Streamlink version: streamlink 3.0.3.
***********************************************
* Finished Streamlink install/upgrade script
* Message: Reached EOF without critical errors.
***********************************************

and then the same container can play https://www.youtube.com/user/france24english/live via TVHeadend just fine:

2021-12-28 09:50:59.128 mpegts: youtube.m3u - France 24 English in Youtube Repo - tuning on IPTV #1
2021-12-28 09:50:59.141 subscription: 000B: "HTTP" subscribing on channel "France 24 English", weight: 100, adapter: "IPTV #1", network: "Youtube Repo", mux: "youtube.m3u - France 24 English", service: "France 24 English", profile="webtv-vp8-vorbis-webm", hostname="removed", client="Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
2021-12-28 09:50:59.152 spawn: Executing "/usr/bin/env"
2021-12-28 09:51:03.599 spawn: [cli][info] Found matching plugin youtube for URL https://youtube.com/user/france24english
2021-12-28 09:51:06.599 spawn: [cli][info] Available streams: 144p (worst), 240p, 360p, 480p, 720p, 1080p (best)
2021-12-28 09:51:06.599 spawn: [cli][info] Opening stream: 720p (hls)
2021-12-28 09:51:08.659 transcode: 0001: 02:H264: ==> Using profile webtv-vp8
2021-12-28 09:51:08.659 transcode: 0001: 01:AAC: ==> Using profile webtv-vorbis
2021-12-28 09:51:08.659 transcode: 0001: 03:PCR: ==> Filtered out
2021-12-28 09:51:08.847 libav: AVCodecContext: v1.8.2
2021-12-28 09:51:27.959 subscription: 000B: "HTTP" unsubscribing from "France 24 English", hostname="removed", client="Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"

couple of things to notice:

I'm closing this issue because it is not an issue with the docker script.