Problème installation TV LG

bonjoèur a tous

j’ai un souci sur l’installation de ma TV lg, lors de l’appairage j’ai une erreur me disant que
je n’ai pas accepté le demande de connexion, mais cela ne m’a demandé l’appairage.
je pense que c’est lié a ma nouvelle installation en debian 11.
j’ai trouvé des erreurs lors de l’installation des dépendances, elle s’arrête a 40% mais le démon passe quand même au vert.

voici les erreurs

********************************************************
*             Installation des dépendances             *
********************************************************
10
***** Commande: sudo apt-get update **********
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 https://download.docker.com/linux/debian bullseye InRelease
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease
Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
net-tools is already the newest version (1.60+git20181103.0eebece-1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/setup.py found.
Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    from setuptools import setup
ImportError: No module named setuptools
Collecting wakeonlan==0.2.2
  Using cached wakeonlan-0.2.2-py3-none-any.whl
DEPRECATION: gpg 1.14.0-unknown has a non-standard version number. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: wakeonlan
  Attempting uninstall: wakeonlan
    Found existing installation: wakeonlan 3.1.0
    Uninstalling wakeonlan-3.1.0:
      Successfully uninstalled wakeonlan-3.1.0
Successfully installed wakeonlan-0.2.2
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
********************************************************
*                 Installation terminée                *
********************************************************

[2023-12-09 16:27:18][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient
[2023-12-09 16:27:48][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient
[2023-12-09 16:28:01][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient
[2023-12-09 16:34:38][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient
[2023-12-09 16:35:02][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient
[2023-12-09 16:37:43][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient
[2023-12-09 16:38:25][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient
[2023-12-09 17:40:35][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient
[2023-12-09 17:41:56][ERROR] : Erreur sur sudo python /var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py auth 192.168.1.54 2>&1 valeur retournée : 1. Détails : Traceback (most recent call last):   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/lgtv.py", line 6, in <module>     from LGTV import LGTVScan, LGTVClient, getCommands   File "/var/www/html/plugins/webosTv/3rdparty/LGWebOSRemote/LGTV/__init__.py", line 2, in <module>     from ws4py.client.threadedclient import WebSocketClient ImportError: No module named ws4py.client.threadedclient

merci pour votre aide CARI

Bonsoir,

Tu as bien activé la fonction dans le menu de la TV ?

J’ai la même erreur au lancement du démon.

La tv répond bien avec Hello World.

Bonjour,

J’ai galéré pas mal de temps à lire d’autres postes et j’ai finalement trouvé le soucis. Avec les dernières version Python 2 n’est pas installé. Et le paquet n’est plus non plus disponible.

Il s’agit donc de l’installer via ailleur:

sudo apt install curl
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py

sudo python2 get-pip.py

Ensuite
pip --version

doit vous sortir Python 2.7 à la fin.

Et enfin il suffit de faire
sudo python2 -m pip install --upgrade --force pip

Voilà… relancez l’installation des dépendances et ça doit rouler comme sur des roulettes.

1 « J'aime »

Si Sudo ne marche pas, passez en su

merci Kop mais cela ne fonctionne pas pour moi
voici l’erreur

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_lgthinq
+ echo 1
+ echo 2
++ find /usr/local/lib/python2.7/dist-packages/ /usr/local/lib/python3.7/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
++ awk '$1 <= 4'
++ cut -f 2-
+ RESULTTODELETE=
++ echo ''
++ sed 's, ,\ ,g'
+ RESULTTODELETE2=
+ echo ''
+ xargs rm -rf
+ echo 3
+ sudo pip3 cache purge
Files removed: 4
+ echo 4
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (24.0)
DEPRECATION: reportbug 7.5.3-deb10u1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of reportbug or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
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
+ echo 5
+ sudo pip3 install --force-reinstall --upgrade Flask==2.3.2
ERROR: Ignored the following versions that require a different python version: 2.3.0 Requires-Python >=3.8; 2.3.1 Requires-Python >=3.8; 2.3.2 Requires-Python >=3.8; 2.3.3 Requires-Python >=3.8; 3.0.0 Requires-Python >=3.8; 3.0.1 Requires-Python >=3.8; 3.0.2 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement Flask==2.3.2 (from versions: 0.1, 0.2, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.5.2, 0.6, 0.6.1, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.9, 0.10, 0.10.1, 0.11, 0.11.1, 0.12, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5)
ERROR: No matching distribution found for Flask==2.3.2
+ echo 6
+ sudo chmod +x /var/www/html/core/class/../../plugins/lgthinq/resources/post_install.sh
+ sudo /var/www/html/core/class/../../plugins/lgthinq/resources/post_install.sh
[2024-02-05 19:32:31] clone wideq lib from github in /var/www/html/core/class/../../plugins/lgthinq/resources
Cloning into 'wideq'...
[2024-02-05 19:32:32] Everything is successfully installed!
+ echo 7
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end lgthinq
+ rm /tmp/jeedom_install_in_progress_lgthinq
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Hello
Fais une recherche, il me semble que c’est mort pour ce plugin.

ok merci je vais regarder s’il est obsolète

Salut,

Ma solution est pour le plug in WebOSTV. Ce plug in fonctionne si tu veux commander une télé/VP LG pas trop vieux.

1 « J'aime »

Possible de mettre à jours le Plugin sur une version récente de Python ?
Car actuellement aucune solution pour contrôler une TV LG récente :frowning:

Merci beaucoup ca marche au top :wink: