title: Error importing hashlib with python 2.7 but not with 2.6
body: <p>I'm on Solaris 10 (x86).</p>
  
  <p>Until now, I was using python2.6. Today, I installed python2.7 and I have a weird error occuring when importing hashlib on 2.7, but not on 2.6:</p>
  
  <p>Python 2.6:</p>
  
  <pre><code>root@myserver [PROD] # python2.6 -c "import hashlib"
  root@myserver [PROD] # 
  </code></pre>
  
  <p>Python 2.7:</p>
  
  <pre><code>root@myserver [PROD] # python2.7 -c "import hashlib"
  ERROR:root:code for hash md5 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 ' + name)
  ValueError: unsupported hash type md5
  ERROR:root:code for hash sha1 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 ' + name)
  ValueError: unsupported hash type sha1
  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 ' + 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 ' + 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 ' + 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 ' + name)
  ValueError: unsupported hash type sha512
  </code></pre>
  
  <p>I don't understand why I have this error since I'm trying the import <strong>ON THE SAME MACHINE</strong>.</p>
  
  <p>Thanks in advance for your help!</p>