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

Fix no attribute '_sock' error when using paho-mqtt >=2.0.0 #163

Closed
wants to merge 1 commit into from

Conversation

vindolin
Copy link

paho-mqtt >=2.0.0 made braking changes and now needs the CallbackAPIVersion parameter when calling Client().

Calling Client() without it leads to the AttributeError: 'Client' object has no attribute '_sock'

https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html

paho-mqtt >=2.0.0 made braking changes and now needs the CallbackAPIVersion parameter when calling Client().

Calling Client() without it leads to the AttributeError: 'Client' object has no attribute '_sock'

https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html
@samjt
Copy link

samjt commented Feb 12, 2024

Just hit this issue as well, in theory paho-mqtt is pinned to 1.6.1 which should avoid this, but on a fresh installation my application won't start because pano has been upgraded to 2.0.0

@ibrahimuslu
Copy link

Did work great for me.
But I have used

CallbackAPIVersion.VERSION2
thanks for solution.
Please merge as soon as possible.

@tonsmets
Copy link

Please merge this @stlehmann

@stlehmann
Copy link
Owner

Thanks for bringing this in. But as I'm not actively maintaining this project anymore I will go by locking the paho-mqtt version as < 2.0 with #165

@stlehmann stlehmann closed this Mar 15, 2024
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 this pull request may close these issues.

5 participants