ImportError: no module named mqtt


#1

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?


#2

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.


#3

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