Skip to content

docs: CallbackAPIVersion is not exported from module paho.mqtt.client#852

Open
GNITOAHC wants to merge 1 commit into
eclipse-paho:masterfrom
GNITOAHC:master
Open

docs: CallbackAPIVersion is not exported from module paho.mqtt.client#852
GNITOAHC wants to merge 1 commit into
eclipse-paho:masterfrom
GNITOAHC:master

Conversation

@GNITOAHC

Copy link
Copy Markdown

Running README sample will occer this error: "CallbackAPIVersion" is not exported from module "paho.mqtt.client"
It can be fixed by importing CallbackAPIVersion from paho.mqtt.enums

+from paho.mqtt.enums import CallbackAPIVersion

-mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)
+mqttc = mqtt.Client(CallbackAPIVersion.VERSION2)

@PierreF

PierreF commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Thanks for your (long) patience. In order to merge your PR, could you sign ECA (so this check should become green)

@GNITOAHC

Copy link
Copy Markdown
Author

Thanks! I’ve signed the ECA, and the check is green now.

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.

2 participants