You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Getting TypeError: Client.__init__() missing 1 required positional argument: 'callback_api_version' at startup
Seems like the issue is origniating from an updated version of the paho mqtt library
frompaho.mqtt.clientimportClient
where the Client class now has an required attribute callback_api_version.
To Reproduce
Steps to reproduce the behavior:
Start isar locally with python main.py with isar v1.16.10
Expected behavior
ISAR should start as normal
Screenshots
Exception ignored in: <function Client.__del__ at 0x7f0187bb2ef0>
Traceback (most recent call last):
File "/opt/venv/lib/python3.10/site-packages/paho/mqtt/client.py", line 874, in __del__
self._reset_sockets()
File "/opt/venv/lib/python3.10/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
self._sock_close()
File "/opt/venv/lib/python3.10/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
Using environment variable for AZURE_CLIENT_ID
Traceback (most recent call last):
File "/app/main.py", line 53, in <module>
mqtt_client: MqttClient = MqttClient(mqtt_queue=queues.mqtt_queue)
File "/opt/venv/lib/python3.10/site-packages/isar/services/service_connections/mqtt/mqtt_client.py", line 56, in __init__
self.client: Client = Client()
TypeError: Client.__init__() missing 1 required positional argument: 'callback_api_version'
Old version:
New version:
The text was updated successfully, but these errors were encountered:
Describe the bug
Getting
TypeError: Client.__init__() missing 1 required positional argument: 'callback_api_version'
at startupSeems like the issue is origniating from an updated version of the paho mqtt library
where the
Client
class now has an required attributecallback_api_version
.To Reproduce
Steps to reproduce the behavior:
Start isar locally with
python main.py
with isar v1.16.10Expected behavior
ISAR should start as normal
Screenshots
Old version:
New version:
The text was updated successfully, but these errors were encountered: