Breaks on paho-mqtt version 1.3
ways opened this issue · 0 comments
ways commented
Hi
I've used your program for a long time and couldn't understand why it didn't work on a new machine. Turns out it works fine on ubuntu with paho-mqtt 1.2 from pip, but fails with paho-mqtt 1.3.
Error:
:~/mqtt-launcher-master$ ./mqtt-launcher.py
Traceback (most recent call last):
File "./mqtt-launcher.py", line 155, in <module>
mqttc.loop_forever()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1470, in loop_forever
rc = self.loop(timeout, max_packets)
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 995, in loop
rc = self.loop_read(max_packets)
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1273, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1838, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 2291, in _packet_handle
return self._handle_connack()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 2349, in _handle_connack
self.on_connect(self, self._userdata, flags_dict, result)
TypeError: on_connect() takes exactly 3 arguments (4 given)