title: ": No such file or directory"
body: <p>Ubuntu version:12.04
  Python version:2.7.3</p>
  
  <p>I have a script (prawn.py) that starts out:</p>
  
  <pre><code>#! /usr/bin/env python
  from random import choice
  import os
  from webbrowser import open_new
  import urllib
  print("!")
  def getsource(url): page=urllib.urlopen(url);sourcecodey=page.read();page.close;return sourcecodey
  #etc
  </code></pre>
  
  <p>When I run it in terminal:</p>
  
  <pre><code>$ ./prawn.py
  : No such file or directory
  </code></pre>
  
  <p>When I change the firstline to #! /usr/bin/python</p>
  
  <pre><code>$ which python
  /usr/bin/python
  $ ./prawn.py
  bash: ./prawn.py: /usr/bin/python^M: bad interpreter: No such file or directory
  </code></pre>
  
  <p>But when I run it using "python prawn.py", it works.</p>
  
  <p>How do I fix this?</p>