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

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.
  • Tried both Python 2.7 & 3.5

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

What path are you adding to the preferences? I believe this should be the src path, not the main root folder as per the repository.

Pointing it at site-packages might not suffice if pip installed it as a wheel.

I fixed it. All I had to do was install the paho package with the help of Python Pip. The manual installation didn’t seem to pick the Paho folder for Python.