swetoast / steamlink-launcher

Steamlink launcher for OSMC
GNU General Public License v2.0
155 stars 19 forks source link

Package python is not installed #47

Closed regseb closed 2 years ago

regseb commented 2 years ago

When steamlink is installed, the python dependency isn't found:

dpkg: dependency problems prevent configuration of steamlink:
 steamlink depends on python:any; however:
  Package python is not installed.

dpkg: error processing package steamlink (--install):
 dependency problems - leaving unconfigured

log

Then Steam Link starts. I can Start Playing. The screen is black, but I can hear the sound as I move through the menus. And on my computer, there is Steam in Big Picture.

Environment

swetoast commented 2 years ago

seems like something is broken with your installation, run apt --fix-broken install

regseb commented 2 years ago

With apt --fix-broken install, the steamlink package is uninstalled. When I restart Steamlink Launcher, the package is reinstalled with the same error.

$ sudo apt --fix-broken install
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Correction des dépendances... Fait
Les paquets suivants seront ENLEVÉS :
  steamlink
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 74,8 ko d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] n
Annulation.

$ sudo apt-get install python
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Note : sélection de « python-is-python2 » au lieu de « python »
Vous pouvez lancer « apt --fix-broken install » pour corriger ces problèmes.
Les paquets suivants contiennent des dépendances non satisfaites :
 python-is-python2 : Dépend: python2 mais ne sera pas installé
                     Casse: python-is-python3 mais 3.9.2-1 devra être installé
 python-is-python3 : Casse: python
                     Casse: python-is-python2 mais 2.7.18-9 devra être installé
                     Casse: python:arm64
E: Dépendances non satisfaites. Essayez « apt --fix-broken install » sans paquet
   (ou indiquez une solution).

$ sudo apt --fix-broken install
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Correction des dépendances... Fait
Les paquets suivants seront ENLEVÉS :
  steamlink
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 74,8 ko d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] o
(Lecture de la base de données... 56155 fichiers et répertoires déjà installés.)
Suppression de steamlink (1.0.10) ...
Traitement des actions différées (« triggers ») pour mailcap (3.69) ...
Traitement des actions différées (« triggers ») pour hicolor-icon-theme (0.17-2) ...

$ sudo apt-get install python
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Note : sélection de « python-is-python2 » au lieu de « python »
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  armv7-libbluray-osmc armv7-librtmp-osmc armv7-libshairplay-osmc
  armv7-libsqlite-osmc libaacs0 libass9 libavahi-compat-libdnssd1 libcdio19
  libcrossguid0 libevdev2 libfmt7 libfstrcmp0 libgif7 libimagequant0 libinput-bin
  libinput10 libiso9660-11 libjansson4 libldb2 libmad0 libmariadb3 libmicrohttpd12
  libmtdev1 libnfs13 libpcrecpp0v5 libplist3 libpython3.9 libsamplerate0
  libsmbclient libssh-4 libtag1v5-vanilla libtdb1 libtinyxml2.6.2v5 libudfread0
  libwacom-common libwacom2 libyajl2 mariadb-common mediacenter-addon-osmc
  mediacenter-eventclients-common-osmc mediacenter-send-osmc mediacenter-skin-osmc
  mysql-common python-apt-common python3-apt python3-certifi python3-chardet
  python3-idna python3-ldb python3-pexpect python3-pil python3-pkg-resources
  python3-ptyprocess python3-requests python3-samba python3-six python3-talloc
  python3-tdb python3-unidecode python3-urllib3 rbp2-libcec-osmc rbp2-mesa-osmc
  samba-common samba-common-bin samba-libs
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés : 
  libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python2
  python2-minimal python2.7 python2.7-minimal
Paquets suggérés :
  python2-doc python-tk python2.7-doc binutils binfmt-support
Les paquets suivants seront ENLEVÉS :
  python-is-python3 rbp4-device-osmc rbp4-mediacenter-osmc
Les NOUVEAUX paquets suivants seront installés :
  libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-is-python2
  python2 python2-minimal python2.7 python2.7-minimal
0 mis à jour, 8 nouvellement installés, 3 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 3 737 ko dans les archives.
Après cette opération, 254 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] n
Annulation.

$ python --version
Python 3.9.2

$ sudo apt-get install python3
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
python3 est déjà la version la plus récente (3.9.2-3).
python3 passé en « installé manuellement ».
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

I think there is a problem with Python (maybe due to the migration to Debian 11 Bullseye). I will try to analyze this problem.

swetoast commented 2 years ago

ok, reinstalling the package doesn't work ?

swetoast commented 2 years ago

so i saw one of your post on osmc forums, your running a rpi4 the aarch64, wonder since the core is 64 and userland is 32 if its looking for the wrong python version cause its installed but not working as intended

strugee commented 2 years ago

OSMC based on Bullseye does not ship Python 2, at all (at least by my reading of the testing release notes). Presumably this is the problem you're running into.

swetoast commented 2 years ago

Deadwrong, this project uses python3 since kodi 19

https://github.com/swetoast/steamlink-launcher/blob/9ab0cf153af27cbe0c97e22087cbdbf3b8e5d826/plugin.program.steamlink/addon.xml#L4

-- | -- | -- | -- | -- | -- Matrix 19.x | 3.0.0 (ABI 3.0.0) | 5.15.0 (ABI 5.14.0) | 11.2.0 (ABI 6.0.0) | 2.1.0 (ABI 1.0) | 18.9.701 (ABI 12.0.0) -- | -- | -- | -- | -- | --
strugee commented 2 years ago

Yes but that's the Kodi addon. The very first code snippet in the description:

dpkg: dependency problems prevent configuration of steamlink:
 steamlink depends on python:any; however:
  Package python is not installed.

dpkg: error processing package steamlink (--install):
 dependency problems - leaving unconfigured

shows a problem with the steamlink APT package. I.e. an upstream Valve problem.

regseb commented 2 years ago

In Debian 11 Bullseye (Python in Debian), there are no more python packages (without number). You now have to specify the version using either python3 or python2.

The steamlink package has the dependency python:any. Valve should replace with the python3 dependency. And use the shebang #! /usr/bin/python3 for the steamlink.deb/data.tar.xz/usr/bin/steamlinkdeps file. I don't think steamlink-launcher can fix this problem.

Despite this problem, Steam Link works because the python command (using version 3.9.2) exists in OSMC.

swetoast commented 2 years ago

Raise the issue on steam forum, we can also ping @slouken, see if comes alive to see this issue

regseb commented 2 years ago

I have opened a discussion in Steam: https://steamcommunity.com/app/353380/discussions/6/3416557114768625399/

regseb commented 2 years ago

slouken has released a new version of the package with pyhton3.