title: Heroku app crashed after pushing small change. Very confused
body: <p>I am using Heroku with python and Flask. My app was working fine until I updated a few lines in my python application file. The app runs fine locally, but I now have the following error when I try to access my app:</p>
  
  <p><em>"An error occurred in the application and your page could not be served. Please try again in a few moments.
  If you are the application owner, check your logs for details."</em> </p>
  
  <p>My logs look something like this:</p>
  
  <pre><code>2012-10-03T17:40:26+00:00 heroku[web.1]: Process exited with status 1
  2012-10-03T17:40:26+00:00 heroku[web.1]: State changed from starting to crashed
  2012-10-03T17:51:25+00:00 heroku[web.1]: State changed from crashed to starting
  2012-10-03T17:51:26+00:00 heroku[web.1]: Starting process with command `python presentation.py`
  2012-10-03T17:51:26+00:00 app[web.1]: ImportError: No module named site
  </code></pre>
  
  <p>I am also no longer able to run python through heroku:</p>
  
  <pre><code>Cinnas-MacBook-Pro:infinite-fortress-4866 cinna$ heroku run python
  Running `python` attached to terminal... up, run.1
  ImportError: No module named site
  </code></pre>
  
  <p>The next thing I have tried to do is check my environment variables:</p>
  
  <pre><code>Cinnas-MacBook-Pro:infinite-fortress-4866 cinna$ heroku config
  === infinite-fortress-4866 Config Vars
  LANG:             en_US.UTF-8 
  LD_LIBRARY_PATH:  /app/.heroku/vendor/lib
  LIBRARY_PATH:     /app/.heroku/vendor/lib
  PATH:             /app/.heroku/venv/bin:/bin:/usr/local/bin:/usr/bin
  PYTHONHASHSEED:   random
  PYTHONHOME:       /app/.heroku/venv/
  PYTHONPATH:       /app/
  PYTHONUNBUFFERED: true
  </code></pre>
  
  <p>However, when I try to look inside the library directories, I get something like this:</p>
  
  <pre><code>Cinnas-MacBook-Pro:infinite-fortress-4866 cinna$ heroku run ls /app/.heroku/vendor/lib
  Running `ls /app/.heroku/vendor/lib` attached to terminal... up, run.1
  ls: cannot access /app/.heroku/vendor/lib: No such file or directory
  </code></pre>
  
  <p>I am not sure where to proceed at this moment. I miss my app, please help!</p>
  
  <p>Additional information:</p>
  
  <p>The problems all started when I added the following lines to my app.py code:</p>
  
  <pre><code> @app.route('/my_fb_graph',methods=['GET','POST'])
   def my_fb_graph():
   return render_template('my_fb_graph.html')
  </code></pre>
  
  <p>When I pushed the code and the app no longer worked. I then removed these lines of code, pushed the code again, and still got the same errors. The next thing I did was to completely remove the app.py file and try to a small test code which still did not work.</p>
  
  <p>The root of the problem seems to be the error:</p>
  
  <pre><code> 2012-10-03T17:51:26+00:00 app[web.1]: ImportError: No module named site
  </code></pre>