Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with paho 2 #267

Closed
narc-Ontakac2 opened this issue Sep 7, 2024 · 2 comments · Fixed by #268
Closed

Incompatibility with paho 2 #267

narc-Ontakac2 opened this issue Sep 7, 2024 · 2 comments · Fixed by #268

Comments

@narc-Ontakac2
Copy link

narc-Ontakac2 commented Sep 7, 2024

After an upgrade to Debian trixie tdm fails to start:

$ /usr/bin/tdmgr.py
Exception ignored in: <function Client.__del__ at 0x7f46798ea980>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 874, in __del__
    self._reset_sockets()
  File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
    self._sock_close()
  File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
           ^^^^^^^^^^
AttributeError: 'Client' object has no attribute '_sock'

The likely cause is that paho has moved to version 2:

$ dpkg -l python3-paho-mqtt 
...
ii  python3-paho-mqtt 2.0.0-1      all          MQTT client class (Python 3)

This is a typical symptom which is described in this python paho issue.

@jziolkowski
Copy link
Owner

jziolkowski commented Sep 7, 2024

What a mess. Wow. They really didn't think that one through.

For now my recommendation would be to install TDM within its own venv, and not relying on system packages.

I need to think of a solution.

I'll also pin down the package requirements for paho.

@Jason2866
Copy link
Collaborator

For now my recommendation would be to install TDM within its own venv, and not relying on system packages.

Back to square one. As you recommended to do (in the beginning)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants