Hello,
I’m new to the Losant platform, and recently I’ve been working through the getting started guide for using Losant and the Onion Omega2 (Getting Started with Onion Omega2 and Losant Using Python). As the title suggests I ran into a Python ImportError, the “paho.mqtt” module was not found. The module’s import was traced back from the “losantmqtt” module to the “losantmqtt/device.py” file with the module import request from paho.mqtt import client as mqtt.
How would I solve this problem? Would something like pip paho.mqtt work?
I’ve followed everything from the tutorial exactly, including git cloning the example code files and “losantmqtt” module from GitHub.

Hello again,
Strangely, I have ran into another issue with installing paho-mqtt. I needed to install paho-mqtt again (on a different device), so i did it with the command on the (updated) tutorial: pip install paho-mqtt. It ran into an error though while installing: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-YJGsbF/paho-mqtt/. How can I fix this problem?