title: ImportError: No module named mosquitto
body: <p>I have installed mosquitto on Ubuntu 15.10 using the following command</p>
  
  <pre><code>sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
  sudo apt-get update
  </code></pre>
  
  <p>To check if Mosquitto is installed i type mosquitto and it shows all the details as follows:</p>
  
  <pre><code>1458716686: mosquitto version 1.4.8 (build date Sun, 14 Feb 2016 15:48:26 +0000) starting
  1458716686: Using default config.
  1458716686: Opening ipv4 listen socket on port 1883.
  1458716686: Opening ipv6 listen socket on port 1883.
  </code></pre>
  
  <p>Which implies mosquitto is working right?</p>
  
  <p>So i proceed with my program written in python. (Pyton version 2.7)</p>
  
  <pre><code>import mosquitto
  mqttc = mosquitto.Mosquitto("python_pub")
  mqttc.will_set("/event/dropped", "Sorry, I seem to have died.")
  mqttc.connect("127.0.0.1", 1883, 60, True)
  mqttc.publish("hello/world", "Hello, World!")
  </code></pre>
  
  <p>On running the above program i get this error</p>
  
  <pre><code>ImportError: No module named mosquitto
  </code></pre>
  
  <p>I am new to the whole mqtt concept. Please let me know where i went wrong</p>