embyt / enocean-mqtt

Receives messages from an enOcean serial interface (USB) and provides selected messages to an MQTT broker.
GNU General Public License v3.0
42 stars 21 forks source link

Incompatible with paho-mqtt 2.0 #46

Closed rogiervandergeer closed 7 months ago

rogiervandergeer commented 7 months ago

I'm getting the following.

Traceback (most recent call last):
  File "/usr/local/bin/enoceanmqtt", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/enoceanmqtt/enoceanmqtt.py", line 114, in main
    com = Communicator(conf, sensors)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/enoceanmqtt/communicator.py", line 43, in __init__
    self.mqtt = mqtt.Client(client_id=client_id)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Client.__init__() missing 1 required positional argument: 'callback_api_version'

Running with the latest version <2.0 of paho-mqtt works fine.