cgomesu / tvhlink

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

Python 3.10.1 changes package diretories #12

Closed cgomesu closed 2 years ago

cgomesu commented 2 years ago

Python version 3.10.1 from the edge branch changes the directory of Python packages, which causes the following error while trying to install streamlink 3.0.3:

***********************************************
****** Streamlink install/upgrade script ******
***********************************************
Author: cgomesu
Repo: https://github.com/cgomesu/tvhlink
***********************************************
[TVHlink] [info] Installing Streamlink...
[TVHlink] [info] APK and PIP3: Installing required packages.
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/10) Installing binutils (2.34-r2)
(2/10) Installing isl (0.18-r0)
(3/10) Installing libgomp (9.3.0-r2)
(4/10) Installing libatomic (9.3.0-r2)
(5/10) Installing libgphobos (9.3.0-r2)
(6/10) Installing mpfr4 (4.0.2-r4)
(7/10) Installing mpc1 (1.1.0-r1)
(8/10) Installing gcc (9.3.0-r2)
(9/10) Installing musl-dev (1.1.24-r10)
(10/10) Installing .build-deps (20211222.051242)
Executing busybox-1.31.1-r20.trigger
OK: 578 MiB in 282 packages
[TVHlink] [error] PIP3: Critical error. pip3 should be installed but is not.
[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 (20211222.051242)
(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-r20.trigger
OK: 446 MiB in 272 packages
***********************************************
* Finished Streamlink install/upgrade script
* Message: PIP3: Critical error. Cannot find Streamlink. Check above for installation errors.
***********************************************

This is related to pip missing, owing to the dir change caused by the new Python version.


One solution is to always force Python and related packages upgrade (python3_upgrade) during the container initialization, instead of conditional upgrade.

Will test this alternative today.

cgomesu commented 2 years ago

if anyone continues to have this issue, just recreate the container with the updated streamlink installation script (/tools/docker/streamlink_for_tvh_container.sh).