metisvela / sailtrack-core

Central component of the SailTrack system, it manages connections and gathers data.
GNU General Public License v3.0
12 stars 0 forks source link

Paho MQTT Python v2.0.0 causing issues in sailtrack-core processes #27

Closed Magform closed 4 months ago

Magform commented 4 months ago

Issue Overview:

When attempting to run sailtrack-core, I observed that the processes sailtrack-processor, sailtrack-timesync, and sailtrack-status are offline. Further investigation revealed the following error:

Traceback (most recent call last):
  File "/boot/sailtrack/sailtrack-processor", line 73, in <module>
    mqtt = Client(MQTT_CLIENT_ID)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/paho/mqtt/client.py", line 766, in __init__
    raise ValueError(
ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details

The issue is attributed to the recent release of Paho MQTT Python v2.0.0, introducing changes that disrupt the existing functionality. The error indicates an unsupported callback API version.

To address this, a migration process is necessary, guided by the instructions outlined in the Paho MQTT Python v2.0.0 migrations documentation.