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

Paho-mqtt v2 not working #17

Open
tarmacalastair opened this issue Apr 17, 2024 · 0 comments
Open

Paho-mqtt v2 not working #17

tarmacalastair opened this issue Apr 17, 2024 · 0 comments

Comments

@tarmacalastair
Copy link

Hello, thanks for this great utility.

Initially I could not get it to work:

glowmarkt-mqtt -u 'username' -p 'password' --host 192.x.x.x
Exception ignored in: <function Client.del at 0x75e07928>
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in del
self._reset_sockets()
File "/home/pi/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
self._sock_close()
File "/home/pi/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
init() missing 1 required positional argument: 'callback_api_version'

A bit of investigation revealed that some things have stopped working with the update of paho-mqtt and your utility (currently) needs an older version.
Use:
pip3 uninstall paho-mqtt to uninstall v2 and
pip3 install "paho-mqtt<2.0.0" (quotes are needed around the package name)

After this glowmarkt-mqtt now works.

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

No branches or pull requests

1 participant