Problème demon NOK googlecast

Bonjour,

Après restauration complète de mon système domotique, sur RPI3 + Buster, le redémarrage de tout mes plugins à correctement fonctionné hormis googlecast ou je bloque complètement …

Problème : demon NOK

J’ai essayé de supprimer et réinstaller le plugin sans succès.

J’ai besoin de votre aide svp.

Merci

[2020-01-05 14:57:17][INFO] : Lancement démon googlecast : /usr/bin/python3 /var/www/html/plugins/googlecast/resources/googlecast.py --loglevel debug --socketport 55012 --sockethost 127.0.0.1 --callback http://127.0.0.1:80/plugins/googlecast/core/php/googlecast.api.php --apikey xxxxxx–ttsweb http://192.168.1.32:80 --ttslang fr-FR --ttsengine jeedomtts --ttsspeed 1.2 --ttscache 1 --ttsgapikey none --daemonname local --cyclefactor 1 --defaultstatus ’ ’

Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)

Bod

Après une restauration il faut réinstaller les dépendances des plugins

Fait pour tout mes plugins.
Demon toujours NOK pour googlecast malheuresement

D’après le changelog, avec buster, il faut la version béta du plugin.

Merci pour ta réponse.

J’ai en effet réinstallé la version bêta.
Sans succès et même erreur

Bonjour,

A retenter avec la nouvelle version beta de hier et surtout ne pas oublier de relancer l’installation des dépendances.
SI encore en erreur, peux tu mettre les logs debug de l’installation?

Merci pour ta réponse.

Je viens de mettre la bêta a jour, et relancé les dépendances.
Résultat = demon NOK

Citation Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)
Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)
Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)

Citation

Voilà pour le log.
Merci pour ton temps et ton aide

Bod

Il faudrait le log d’installation des dépendances appelé ‹ googlecast_update ›

Citation Launch install of googlecast dependancies
– Updating repo…
Hit:1 Index of /debian buster InRelease
Get:2 Index of /raspbian buster InRelease [15.0 kB]
Get:3 Index of /debian buster InRelease [25.2 kB]
Hit:4 https://deb.nodesource.com/node_12.x buster InRelease
Get:5 Index of /debian buster/main armhf Packages [260 kB]
Fetched 300 kB in 2s (175 kB/s)
Reading package lists…
– Installation of python3 and dependancies
Reading package lists…
Building dependency tree…
Reading state information…
build-essential is already the newest version (12.6).
python-dev is already the newest version (2.7.16-1).
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Installed version of Python :
Python 3.7.3
Your version of python is compatible with this plugin.
– Installation of pip for python3 and necessary libraries
Reading package lists…
Building dependency tree…
Reading state information…
python-requests is already the newest version (2.21.0-1).
python3-dev is already the newest version (3.7.3-1).
python3-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Installation of audio sox library
Reading package lists…
Building dependency tree…
Reading state information…
sox is already the newest version (14.4.2+git20190427-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Installation of TTS libraries
Reading package lists…
Building dependency tree…
Reading state information…
libttspico-utils is already the newest version (1.0+git20130326-9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Installation of libav/ffmpeg libraries
Reading package lists…
Building dependency tree…
Reading state information…
/var/www/html/plugins/googlecast/core/class/…/…/resources/install.sh: line 40: 4692 Segmentation fault sudo apt-get install -y ffmpeg
– Upgrade setuptools with command pip3 if not up to date
Traceback (most recent call last):
File « /usr/lib/python3/dist-packages/pip/_vendor/init.py », line 33, in vendored
import(vendored_name, globals(), locals(), level=0)
ModuleNotFoundError: No module named ‹ pip._vendor.cachecontrol ›
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File « /usr/bin/pip3 », line 9, in
from pip._internal import main
File « /usr/lib/python3/dist-packages/pip/_internal/init.py », line 19, in
from pip._vendor.urllib3.exceptions import DependencyWarning
File « /usr/lib/python3/dist-packages/pip/_vendor/init.py », line 64, in
vendored(« cachecontrol »)
File « /usr/lib/python3/dist-packages/pip/_vendor/init.py », line 36, in vendored
import(modulename, globals(), locals(), level=0)
File «  », line 983, in _find_and_load
File «  », line 967, in _find_and_load_unlocked
File «  », line 668, in _load_unlocked
File «  », line 638, in _load_backward_compatible
File « /usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/init.py », line 9, in
File «  », line 983, in _find_and_load
File «  », line 967, in _find_and_load_unlocked
File «  », line 668, in _load_unlocked
File «  », line 638, in _load_backward_compatible
File « /usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/wrapper.py », line 1, in
File «  », line 983, in _find_and_load
File «  », line 967, in _find_and_load_unlocked
File «  », line 668, in _load_unlocked
File «  », line 638, in _load_backward_compatible
File « /usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py », line 4, in
File «  », line 983, in _find_and_load
File «  », line 967, in _find_and_load_unlocked
File «  », line 668, in _load_unlocked
File «  », line 638, in _load_backward_compatible
File « /usr/share/python-wheels/requests-2.21.0-py2.py3-none-any.whl/requests/init.py », line 44, in
File «  », line 983, in _find_and_load
File «  », line 967, in _find_and_load_unlocked
File «  », line 668, in _load_unlocked
File «  », line 638, in _load_backward_compatible
File « /usr/share/python-wheels/chardet-3.0.4-py2.py3-none-any.whl/chardet/init.py », line 20, in
File «  », line 983, in _find_and_load
File «  », line 967, in _find_and_load_unlocked
File «  », line 668, in _load_unlocked
File «  », line 638, in _load_backward_compatible
File « /usr/share/python-wheels/chardet-3.0.4-py2.py3-none-any.whl/chardet/universaldetector.py », line 48, in
File «  », line 983, in _find_and_load
File «  », line 967, in _find_and_load_unlocked
File «  », line 668, in _load_unlocked
File «  », line 638, in _load_backward_compatible
File « /usr/share/python-wheels/chardet-3.0.4-py2.py3-none-any.whl/chardet/sbcsgroupprober.py », line 40, in
File «  », line 983, in _find_and_load
File «  », line 967, in _find_and_load_unlocked
File «  », line 668, in _load_unlocked
File «  », line 638, in _load_backward_compatible
SystemError: unhandled expr: 323
– Installed version of pip :
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
– Installation of python library ‹ requests › with command pip3
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: requests>=2.21.0 in /usr/lib/python3/dist-packages (2.21.0)
– Installation of python library ‹ protobuf › with command pip3
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: protobuf>=3.11.0 in /usr/local/lib/python3.7/dist-packages (3.11.2)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf>=3.11.0) (40.8.0)
Requirement already satisfied: six>=1.9 in /usr/lib/python3/dist-packages (from protobuf>=3.11.0) (1.12.0)
– Installation of python library ‹ zeroconf › with command pip3
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: zeroconf<0.24.4,>=0.22.0 in /usr/local/lib/python3.7/dist-packages (0.24.3)
Requirement already satisfied: ifaddr in /usr/local/lib/python3.7/dist-packages (from zeroconf<0.24.4,>=0.22.0) (0.1.6)
– Installation of python library ‹ click, bs4 and six › for TTS with command pip3
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: click in /usr/local/lib/python3.7/dist-packages (7.0)
Requirement already satisfied: bs4 in /usr/local/lib/python3.7/dist-packages (0.0.1)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (1.12.0)
– Installation of python library ‹ tqdm, websocket-client › for plex with command pip3
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: tqdm in /usr/local/lib/python3.7/dist-packages (4.41.1)
Requirement already satisfied: websocket-client in /usr/local/lib/python3.7/dist-packages (0.57.0)
– Installation of dependencies is done !

Voilà.

Il y a quelque chose de louche avec pip3.

sudo python3 -m pip uninstall -y pip
sudo apt-get -y --reinstall install python3-pip
pip3 uninstall -y requests zeroconf click bs4 six tqdm websocket-client

Puis relancer l’installation des dépendances.

Egalement un petit soucis avec ffmpeg donc commande a tester

sudo apt-get install -y ffmpeg

1 « J'aime »

Merci, j’essaye ça ce soir! Je croise les doigts.

J’ai exécuté les commandes.
Le log a l’ai plus « propre » mais demon NOK toujours

Citationaunch install of googlecast dependancies
– Current OS version :
Description: Raspbian GNU/Linux 10 (buster)
– Updating repo…
Hit:1 Index of /raspbian buster InRelease
Hit:2 Index of /debian buster InRelease
Hit:3 Index of /debian buster InRelease
Hit:4 https://deb.nodesource.com/node_12.x buster InRelease
Reading package lists…
– Installation of python3 and dependancies
Reading package lists…
Building dependency tree…
Reading state information…
build-essential is already the newest version (12.6).
python-dev is already the newest version (2.7.16-1).
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Installed version of Python :
Python 3.7.3
Your version of python is compatible with this plugin.
– Installation of pip for python3 and necessary libraries
Reading package lists…
Building dependency tree…
Reading state information…
python-requests is already the newest version (2.21.0-1).
python3-dev is already the newest version (3.7.3-1).
python3-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Installation of audio sox library
Reading package lists…
Building dependency tree…
Reading state information…
sox is already the newest version (14.4.2+git20190427-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Installation of TTS libraries
Reading package lists…
Building dependency tree…
Reading state information…
libttspico-utils is already the newest version (1.0+git20130326-9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Installation of libav/ffmpeg libraries
Reading package lists…
Building dependency tree…
Reading state information…
ffmpeg is already the newest version (7:4.1.4-1+rpt1~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Upgrade setuptools with command pip3.7 if not up to date
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: setuptools>=42.0.0 in /usr/local/lib/python3.7/dist-packages (44.0.0)
– Installed version of pip :
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
– Installation of python library ‹ requests › with command pip3.7
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: requests>=2.21.0 in /usr/lib/python3/dist-packages (2.21.0)
– Installation of python library ‹ protobuf › with command pip3.7
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: protobuf>=3.11.0 in /usr/local/lib/python3.7/dist-packages (3.11.2)
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (from protobuf>=3.11.0) (44.0.0)
Requirement already satisfied: six>=1.9 in /usr/lib/python3/dist-packages (from protobuf>=3.11.0) (1.12.0)
– Installation of python library ‹ zeroconf › with command pip3.7
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: zeroconf<0.24.4,>=0.22.0 in /usr/local/lib/python3.7/dist-packages (0.24.3)
Requirement already satisfied: ifaddr in /usr/local/lib/python3.7/dist-packages (from zeroconf<0.24.4,>=0.22.0) (0.1.6)
– Installation of python library ‹ click, bs4 and six › for TTS with command pip3.7
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: click in /usr/local/lib/python3.7/dist-packages (7.0)
Requirement already satisfied: bs4 in /usr/local/lib/python3.7/dist-packages (0.0.1)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (1.12.0)
– Installation of python library ‹ tqdm, websocket-client › for plex with command pip3.7
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: tqdm in /usr/local/lib/python3.7/dist-packages (4.41.1)
Requirement already satisfied: websocket-client in /usr/local/lib/python3.7/dist-packages (0.57.0)
– Installation of dependencies is done !

Log du demon stp?

c’est bien le log qui est ici : googlecast_local

non celui ci-dessus c’est googlecast_update. Il faut googlecast_local

ah ! ben il est comme d’habitude celui là ! :confused:

CitationTraceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)
Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)
Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)
Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)
Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)
Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)
Traceback (most recent call last):
File « /var/www/html/plugins/googlecast/resources/googlecast.py », line 37, in
from gtts import gTTS
File « /var/www/html/plugins/googlecast/resources/gtts/init.py », line 3, in
from .tts import gTTS, gTTSError
File « /var/www/html/plugins/googlecast/resources/gtts/tts.py », line 4, in
from gtts.lang import tts_langs
File « /var/www/html/plugins/googlecast/resources/gtts/lang.py », line 2, in
from bs4 import BeautifulSoup
ImportError: cannot import name ‹ BeautifulSoup › from ‹ bs4 › (/usr/local/lib/python3.7/dist-packages/bs4/init.py)

Essaie ça

pip3 install 'beautifulsoup4>=4.8.0'

toujours pas… je vais chercher un peu, tu penses que c’est un problème au niveau de beautifulsoup4?

CitationLooking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: beautifulsoup4>=4.8.0 in /usr/local/lib/python3.7 /dist-packages (4.8.2)

bizarre… Je pense que c’est lié a ton installation plutôt qu’au plugin

sudo pip3 uninstall -y bs4 beautifulsoup4
sudo pip3 install 'beautifulsoup4>=4.8.0'
1 « J'aime »

T’es un génie ! Merci beaucoup ! :kissing_heart: