Accidentally came across this. @TrystanLea @glyn.hudson
paho-mqtt-2.0.0 client issue · Issue #814 · eclipse/paho.mqtt.python (github.com)
It looks like paho_mqtt
has just been updated to V2 with lots of changes to the API.
Migrations — Eclipse paho-mqtt documentation
On a fresh install of emonhub
(I’m getting other errors) but I am seeing this
Feb 15 22:07:40 emon-pulse systemd[1]: Starting emonHub data multiplexer...
Feb 15 22:07:40 emon-pulse systemd[1]: Started emonHub data multiplexer.
Feb 15 22:07:51 emon-pulse emonhub[4183]: Exception ignored in: <function Client.__del__ at 0xb5d6b4a8>
Feb 15 22:07:51 emon-pulse emonhub[4183]: Traceback (most recent call last):
Feb 15 22:07:51 emon-pulse emonhub[4183]: File "/home/pi/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
Feb 15 22:07:51 emon-pulse emonhub[4183]: self._reset_sockets()
Feb 15 22:07:51 emon-pulse emonhub[4183]: File "/home/pi/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
Feb 15 22:07:51 emon-pulse emonhub[4183]: self._sock_close()
Feb 15 22:07:51 emon-pulse emonhub[4183]: File "/home/pi/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
Feb 15 22:07:51 emon-pulse emonhub[4183]: if not self._sock:
Feb 15 22:07:51 emon-pulse emonhub[4183]: AttributeError: 'Client' object has no attribute '_sock'
[edit]
Immediate solution is to modify the emonhub install script to
pip install --upgrade paho-mqtt==1.6.1
As pip
is not routinely updated on the upodate script, I don’t think there should be an immediate issue to existing installs.