hasscc / hass-edge-tts

🗣️ Microsoft Edge TTS for Home Assistant, no need for app_key
338 stars 57 forks source link

Error showing in portainer #48

Open BerserkeR-Git opened 3 months ago

BerserkeR-Git commented 3 months ago
2024-06-18T14:52:22.322376342Z 2024-06-18 16:52:22.321 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'edge_tts' at custom_components/edge_tts/tts.py, line 408: async for chunk in tts.stream(): (offender: /usr/local/lib/python3.12/netrc.py, line 74: with open(file, encoding="utf-8") as fp:), please create a bug report at https://github.com/hasscc/hass-edge-tts/issues
2024-06-18T14:52:22.322425492Z Traceback (most recent call last):
2024-06-18T14:52:22.322437222Z   File "<frozen runpy>", line 198, in _run_module_as_main
2024-06-18T14:52:22.322469893Z   File "<frozen runpy>", line 88, in _run_code
2024-06-18T14:52:22.322479863Z   File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
2024-06-18T14:52:22.322487973Z     sys.exit(main())
2024-06-18T14:52:22.322496533Z   File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
2024-06-18T14:52:22.322505533Z     exit_code = runner.run(runtime_conf)
2024-06-18T14:52:22.322514613Z   File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
2024-06-18T14:52:22.322524323Z     return loop.run_until_complete(setup_and_run_hass(runtime_config))
2024-06-18T14:52:22.322533243Z   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
2024-06-18T14:52:22.322541123Z     self.run_forever()
2024-06-18T14:52:22.322549674Z   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
2024-06-18T14:52:22.322558704Z     self._run_once()
2024-06-18T14:52:22.322567434Z   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
2024-06-18T14:52:22.322576754Z     handle._run()
2024-06-18T14:52:22.322585004Z   File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
2024-06-18T14:52:22.322593944Z     self._context.run(self._callback, *self._args)
2024-06-18T14:52:22.322602474Z   File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 727, in get_tts_data
2024-06-18T14:52:22.322611454Z     extension, data = await engine_instance.async_get_tts_audio(
2024-06-18T14:52:22.322619844Z   File "/config/custom_components/edge_tts/tts.py", line 408, in async_get_tts_audio
2024-06-18T14:52:22.322628214Z     async for chunk in tts.stream():

This error simply comes up when you run TTS in an automation, latest HA version docker install.