ImportError: no module named mqtt


Question about the third party libraries for Codey.

Python API for Third-Party Libraries page mentions mqtt module. But when I’m trying the example on that page (e.g. upload it to Codey), I’m getting “ImportError: no module named mqtt” message. Do I need to do something to “enable” mqtt module?


I found the answer :slight_smile:. The module should be imported like this:
from cloud_message.mqtt import MQTTClient

cloud_message. part is missed in the example in the documentation.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.