Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#76269 - [home-assistant] Package mqtt setup failed. Integration mqtt No module named 'paho'
Attached to Project:
Community Packages
Opened by Max Pray (synthead) - Sunday, 23 October 2022, 00:03 GMT
Last edited by Alexander Epaneshnikov (alex19EP) - Sunday, 23 October 2022, 10:10 GMT
Opened by Max Pray (synthead) - Sunday, 23 October 2022, 00:03 GMT
Last edited by Alexander Epaneshnikov (alex19EP) - Sunday, 23 October 2022, 10:10 GMT
|
DetailsDescription:
With a MQTT integration set up, this error is displayed in the logs: 2022-10-22 04:08:25.118 ERROR (MainThread) [homeassistant.config] Package mqtt setup failed. Integration mqtt No module named 'paho' (See /var/lib/hass/packages/mqtt.yaml:0). 2022-10-22 04:08:39.629 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 127.0.0.1 for mqtt File "/usr/lib/python3.10/site-packages/homeassistant/components/mqtt/__init__.py", line 480, in async_setup_entry File "/usr/lib/python3.10/site-packages/homeassistant/components/mqtt/__init__.py", line 447, in async_forward_entry_setup_and_setup_discovery File "/usr/lib/python3.10/site-packages/homeassistant/components/mqtt/device_automation.py", line 8, in <module> File "/usr/lib/python3.10/site-packages/homeassistant/components/mqtt/device_trigger.py", line 28, in <module> from . import debug_info, trigger as mqtt_trigger File "/usr/lib/python3.10/site-packages/homeassistant/components/mqtt/trigger.py", line 23, in <module> vol.Required(CONF_TOPIC): mqtt.util.valid_subscribe_topic_template, AttributeError: module 'homeassistant.components.mqtt' has no attribute 'util' It looks like we're missing paho while building home-assistant's package. Setting this as high as MQTT is a very common protocol in Home Assistant. Additional info: * home-assistant 1:2022.10.4-1 Steps to reproduce: 1. Install home-assistant 1:2022.10.4-1. 2. Configure an MQTT integration. 3. Observe the above error in the logs (or via your-home-assistant-host.com/config/logs/?filter=mqtt). |
This task depends upon
Closed by Alexander Epaneshnikov (alex19EP)
Sunday, 23 October 2022, 10:10 GMT
Reason for closing: Fixed
Additional comments about closing: home-assistant-1:2022.10.5-1
Sunday, 23 October 2022, 10:10 GMT
Reason for closing: Fixed
Additional comments about closing: home-assistant-1:2022.10.5-1
Comment by Toolybird (Toolybird) -
Sunday, 23 October 2022, 00:29 GMT
What happens if you install python-paho-mqtt?
Comment by Max Pray (synthead) -
Sunday, 23 October 2022, 03:44 GMT
@Toolybird, the problem goes away! Perhaps we should add this as an optional dependency?