open image from the web with python image library
<p>I am new to python and am working with python image library. I just want to be able to open an image from the web and get the histogram from this image. Unfortunately I get the error <code>File "new.py", line 1
    from PIL import Image import urllib</code> and it does not work. Any idea how to get this working?</p>

<pre><code>from PIL
import Image
import urllib

im = Image.open(urllib.urlopen("http://fmforums.com/forum/uploads/profile/photo-thumb-57725.jpg"))
im = im.convert("P")

print im.histogram()
</code></pre>
