How do I import the Paho MQTT Library to Komodo IDE?

Posted by kvin on 2018-03-29 01:15

I've been trying to import the Paho MQTT Library (https://github.com/eclipse/paho.mqtt.python) into Komodo IDE.

What I have done so far:
> Copied the Paho folder into python>lib>site-packages>
> In Komodo preferences, I set the path under Python language to add the folder.
> Changed/tried different paths for Python, Pip, etc.

Nothing seems to work so far. Whenever I run a python script, I see this error:

Traceback (most recent call last):
  File "C:\Users\kvin\workspace\paho_projects\mqtt_test0.py", line 1, in <module>
    import paho.mqtt.client as mqtt
ImportError: No module named paho.mqtt.client

Can someone tell me if I'm doing something wrong here? Thanks

grahams
ActiveState Staff
Tue, 2018-04-03 08:04

Copying source code isn't the correct process to install this module:
https://github.com/eclipse/paho.mqtt.python#installation