Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

[mqtt.py:126] AttributeError: 'NoneType' object has no attribute 'connect' #225

Open
Da-LiFe opened this issue May 11, 2020 · 0 comments
Open

Comments

@Da-LiFe
Copy link

Da-LiFe commented May 11, 2020

After enabling MQTT in settings, I get the following error in the log every 5 seconds:

[DEBUG:4142033] HermesMqtt: Reconnecting in 5 second(s)
[ERROR:4142032] HermesMqtt: connecting
Traceback (most recent call last):
  File "/usr/share/rhasspy/rhasspy/mqtt.py", line 126, in do_connect
    ret = self.client.connect(self.host, self.port)
AttributeError: 'NoneType' object has no attribute 'connect'

I don't find

self._logger.debug("Connecting to MQTT broker %s:%s", self.host, self.port)

in the logs, so I assume to_connecting is not executed (correctly), but I don't see any additonal messages in the log.

My settings are:

    "mqtt": {
        "enabled": true,
        "host": <internal ip address>
    },

Rhasspy version 2.4.20 running in docker setup on raspberry 3b+, debian buster

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant