title: Error from urlopen "code for hash not found" on linux
body: <p>I've tried a couple of searches and I don't think this has been asked, but if this is a duplicate please forgive me. I'm trying to use urllib on python-2.7 to read from a web page. Very simple application, all I want to do is get some text from a page. Unfortunately the following code:</p>
  
  <pre><code>import urllib
  address = "http://google.co.uk"
  page = urllib.urlopen(address)
  </code></pre>
  
  <p>returns an error talking about the "hash code" not being found:</p>
  
  <pre><code> ERROR:root:code for hash sha224 was not found.
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/hashlib.py", line 139, in &lt;module&gt;
      globals()[__func_name] = __get_hash(__func_name)
    File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type %s' % name)
  ValueError: unsupported hash type sha224
  ERROR:root:code for hash sha256 was not found.
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/hashlib.py", line 139, in &lt;module&gt;
      globals()[__func_name] = __get_hash(__func_name)
    File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type %s' % name)
  ValueError: unsupported hash type sha256
  ERROR:root:code for hash sha384 was not found.
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/hashlib.py", line 139, in &lt;module&gt;
      globals()[__func_name] = __get_hash(__func_name)
    File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type %s' % name)
  ValueError: unsupported hash type sha384
  ERROR:root:code for hash sha512 was not found.
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/hashlib.py", line 139, in &lt;module&gt;
      globals()[__func_name] = __get_hash(__func_name)
    File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type %s' % name)
  ValueError: unsupported hash type sha512
  </code></pre>
  
  <p>I've tried a lot of Google searching but nothing that's turned up so far has been very useful. Any ideas?</p>