Description
The problem
I've used the Google Could TTS integration for all my TTS needs for a few months now without issue. I recently switched to 0.115 beta and did not notice any issues with this integration (that I recall). However, the integration now fails to load at startup, each time reporting the same error in the logs. The google_cloud_say service also fails, even though I can reach my google homes through a change volume service call, for example.
Environment
I'm running Home Assistant Container in Docker on Raspberry Pi OS
arch | armv7
dev | false
docker | true
hassio | false
installation_type | Home Assistant Container
os_name | Linux
os_version | 5.4.51-v7l+
python_version | 3.8.5
timezone | America/Chicago
version | 0.115.0b11
virtualenv | false
- Home Assistant Core release with the issue: 0.115.0b3 to 0.115.0b5 maybe? Not 100% sure when it popped up
- Last working Home Assistant Core release (if known): 0.115.0b1 maybe? I'm pretty sure it was working in the initial 0.115 release.
- Operating environment (OS/Container/Supervised/Core): Container in Docker on Raspberry PI OS, RPI4b 4GB
- Integration causing this issue: Google Cloud TTS
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/google_cloud/
Problem-relevant configuration.yaml
tts:
- platform: google_cloud
key_file: googlecloud.json
Traceback/Error logs
Logger: homeassistant.config
Source: components/google_cloud/tts.py:7
First occurred: 11:01:33 AM (1 occurrences)
Last logged: 11:01:33 AM
Platform error: tts
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config.py", line 815, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 401, in get_platform
cache[full_name] = importlib.import_module(
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/google_cloud/tts.py", line 7, in <module>
from google.cloud import texttospeech
File "/usr/local/lib/python3.8/site-packages/google/cloud/texttospeech.py", line 19, in <module>
from google.cloud.texttospeech_v1 import TextToSpeechClient
File "/usr/local/lib/python3.8/site-packages/google/cloud/texttospeech_v1/__init__.py", line 21, in <module>
from google.cloud.texttospeech_v1.gapic import text_to_speech_client
File "/usr/local/lib/python3.8/site-packages/google/cloud/texttospeech_v1/gapic/text_to_speech_client.py", line 22, in <module>
import google.api_core.gapic_v1.client_info
File "/usr/local/lib/python3.8/site-packages/google/api_core/gapic_v1/__init__.py", line 18, in <module>
from google.api_core.gapic_v1 import config
File "/usr/local/lib/python3.8/site-packages/google/api_core/gapic_v1/config.py", line 23, in <module>
import grpc
File "/usr/local/lib/python3.8/site-packages/grpc/__init__.py", line 23, in <module>
from grpc._cython import cygrpc as _cygrpc
ImportError: Error relocating /usr/local/lib/python3.8/site-packages/grpc/_cython/cygrpc.cpython-38-arm-linux-gnueabihf.so: backtrace: symbol not found
Additional information
I'm in over my head here, but googling led me to a few other examples of this issue:
zeromq/pyzmq#1323
grpc/grpc#6126