Skip to content

AttributeError: module 'paho.mqtt.client' has no attribute 'Mosquitto' #86

@MagnusThome

Description

@MagnusThome

On Raspberry Pi Bullseye, fresh install I get:

AttributeError: module 'paho.mqtt.client' has no attribute 'Mosquitto'

Changing line 56 in swutil/pwmqtt.py from
self.mqttc = mosquitto.Mosquitto(self.name)
to
self.mqttc = mosquitto.Client(self.name)

then it works :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions