title: Python ImportError: No module named Dropbox, when launching from executable
body: <p>My Python 2.7 application is using the dropbox api as remote storage. As well, I'm using the flask framework to create a RESTful API. </p>
  
  <p>The issue I'm having seems to be stemming from running program as an executable, i.e. after doing a </p>
  
  <blockquote>
    <p>chmod a+x run.py</p>
  </blockquote>
  
  <p>and trying to run my application using </p>
  
  <blockquote>
    <p>./run.py</p>
  </blockquote>
  
  <p>I'm getting the following error: </p>
  
  <blockquote>
    <p>ImportError: No module named dropbox</p>
  </blockquote>
  
  <p>Along with the call stack leading to the module where dropbox is imported. I should note that before creating the executable, I had no issues. Also, I've tried creating a dummy file with the exact same code, and running it from the command line using </p>
  
  <blockquote>
    <p>python run.py</p>
  </blockquote>
  
  <p>and I've had no issues. I could link my code, but I don't think its a coding error to be honest. </p>
  
  <p>Is this a known issue with the dropbox api? I haven't found any documentation to support it, and I'd like to know whats going on to avoid or circumvent in the future. Maybe something is no longer supported, or needs to be upgraded that I'm not aware of? </p>
  
  <p>SOLUTION: 
  Thanks to Karl C below for leading me towards the solution. I had installed flask later on in the project, and had previously installed the dropbox api using a different interpreter. The solution was to run </p>
  
  <pre><code>flask/bin/pip install dropbox
  </code></pre>