Skip to content

Old paho-mqtt version generates: No module named 'paho.mqtt.enums' #2

@yellowonblack

Description

@yellowonblack

Using the actual Dockerfile to build 0.1.1 is installing paho-mqtt 1.5.0 which does not contain enums.py. and generates the following error:

ModuleNotFoundError: No module named 'paho.mqtt.enums'
Traceback (most recent call last):
  File "/app/device_tracker.py", line 6, in <module>
    import paho.mqtt.enums as mqtt_enums

Removing "apt install python3-paho-mqtt --yes && " and updating "RUN python3 -m pip install paho-mqtt unifi-tracker" will install paho-mqtt 2.1.0 from pip repository which will fix the issue.

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